Repository navigation
feat(docs-site): add Nextra docs + demo site - #259
Merged
Merged
Conversation
…perseded by apps/docs)
…erseded by apps/docs)
…rseded by apps/docs)
…ded by apps/docs)
Add a bold npm text icon for the navbar's npm chatLink, since the official npm wordmark reads thinner than the other solid-silhouette navbar icons.
… nav The generated API reference sidebar already lists every method, making this hand-maintained index page duplicate upkeep.
Pad the icon-only logo to a square canvas with a transparent background and downscale to 64x64, replacing the old asset that had an opaque black background baked in and showed as a visible box on dark browser tabs.
This file never actually resolved - the (docs) route group's catch-all [[...mdxPath]] route intercepted /favicon.ico before Next's special-file convention could serve it. Replaced by the top-level app/icon.png instead.
michaeljymsgutierrez
force-pushed
the
feat/nextra-docs-site
branch
from
November 5, 2026 17:21
221cbe6 to
954075e
Compare
michaeljymsgutierrez
marked this pull request as ready for review
November 5, 2026 17:28
Owner
Author
|
🎉 This PR is included in version 2.10.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Replaces the project's old demo app and 1000-line README with a proper documentation + live demo site built on Next.js and Nextra, deployed separately from the library package itself.
apps/docsnow serves hand-written guides, a 47-page API reference generated straight from the library's own JSDoc comments, and 22 interactive demo pages that exercise the real library against local API routes. The oldapps/create-next-appdemo is deleted outright,README.mdis trimmed down to a short pitch that links out to the new site, and the rootDOCS.md(a static JSDoc-to-Markdown dump) is retired entirely now that the live API reference supersedes it. Along the way this also fixes a handful of real bugs found while building the site: four internal methods were missing@privateJSDoc tags and showed up as public API, the site's favicon never actually resolved at runtime, and the homepage's status badges were rendering broken.Github Issue: none - no GitHub issue was filed for this work (confirmed via
gh search issues/gh search prsbefore starting; this is a self-directed docs/site initiative, not tracked work).Changes
New
apps/docssite (Next.js + Nextra)apps/docsserving/docs/*guides, a/docs/api-reference/*reference, and/demo/*live demos.apps/docs/content/docs/guides/(collection-records.mdx,collections.mdx,request-functions.mdx,root-scope.mdx,utility-functions.mdx), plusgetting-started.mdxandconfiguration.mdx.apps/docs/scripts/generate-api-reference.mjs, which generates the API reference from the JSDoc onApiResourceManagerviajsdoc-to-markdown, producing 47.mdxfiles underapps/docs/content/docs/api-reference/(45 per-method pages,types.mdx, andindex.mdx); private/internal (_-prefixed) methods are excluded by design.apps/docs/app/demo/**/page.jsx, backed by real Next.js API routes (apps/docs/app/api/v1/{addresses,users}/route.jsand[id]/route.js) and fixture data (apps/docs/src/data/{addresses,users}.js).apps/docs/content/docs/guides/request-functions.mdxlinks to/demo/request-functions-from-server/query).apps/docs/app/sitemap.js,apps/docs/app/robots.js, andapps/docs/app/llms.txt/route.js.apps/docs/app/demo/page.jsx, the/demolanding/index page - demos are reached only via each guide's "Try it live" link, so/demoitself now has no page and 404s intentionally.Deleted the old demo app
apps/create-next-appin its entirety (the appapps/docsreplaces), including itssrc/app/demo/**pages, API routes,yarn.lock, and config.README / CONTRIBUTING
README.mdfrom ~1000 lines to a short pitch: badges, a "Quick example" snippet, a credits table, and links out to the new docs site, removing the old inline Table of Contents / full API walkthrough.README.mdwith the self-hosted./assets/arm-js-logo.png.CONTRIBUTING.mdwith instructions for runningapps/docs(yarn devon port 3002), a note thatcontent/docs/api-reference/*.mdxis generated from JSDoc and should never be hand-edited, and dropped the retiredDOCS.mdrebuild step from the release-pipeline description.Retired
DOCS.mdDOCS.md(2258 lines of static JSDoc-to-Markdown output).packages/package.json'sbuild:jsdocsscript andjsdoc-to-markdowndevDependency (and itsjsdoc-to-markdown/**/lodashresolution), and droppedDOCS.mdfromfiles.DOCS.md/build:jsdocsfrom.releaserc.json'sprepareCmdand releaseassetslist.yarn build:jsdocs) from.github/workflows/ci-cd.yml- CI was still calling the removed script directly and failing every run withCommand "build:jsdocs" not found.until this was caught and fixed.JSDoc polish in
packages/src/lib/api-resource-manager.js@privatetag to 4 methods that were wrongly documented as public:_request,_processRequestPayload,_processRequestURL,_processRequestOverride._processRequestURL's@paramorder (was documented asrequestOptions, resourceName, resourceId; now matches the real signatureresourceName, resourceId, requestOptions).Logo / favicon / badge fixes
apps/docs/public/logo-icon.png,apps/docs/public/logo-landscape.png,apps/docs/app/icon.png, and rootassets/arm-js-logo.png.apps/docs/src/components/arm-logo.jsx(sharedArmLogocomponent,icon/landscapevariants), used in the docs navbar (apps/docs/app/(docs)/layout.jsx, replacing a plain<b>ARM JS Library</b>text logo) and the demo page header (apps/docs/src/components/demo/demo-page.jsx, which had no logo before this branch).apps/docs/app/(docs)/favicon.icoandapps/docs/app/demo/favicon.iconever resolved at runtime - the(docs)route group's[[...mdxPath]]catch-all route intercepted/favicon.icobefore Next's special-file convention could serve it. Both were deleted and replaced by a single top-levelapps/docs/app/icon.png, generated with a transparent background (the prior icon asset had an opaque black background that showed as a visible box on dark browser tabs).apps/docs/content/index.mdxto lay out the CI/CD, npm version, and license badges in an explicitflexcontainer, avoiding the stacking/wrapping that inline badge images are prone to.Rebuilt the dist bundle
packages/dist/arm-js-library.js(297 lines changed) to bring the committed bundle back in sync with the JSDoc changes inapi-resource-manager.js.Screenshots/Images
How Has This Been Tested?
packagestest suite: 83/83 passing (yarn testinsidepackages/), run multiple times this session after the JSDoc and dist changes - always green.packagesbuild:yarn buildsucceeds and producesdist/arm-js-library.js.apps/docs:yarn lint(eslint) is clean, andyarn buildsucceeds, producing all static docs/demo pages with no errors - confirmed multiple times across the session.apps/docsdev server was manually smoke-tested: curl checks plus interactive browser automation clicking through the homepage, several demo pages, navigation, the badges, and the logo, confirming they render correctly. This is manual/interactive verification, not an automated test suite.apps/docsitself - it's a docs/demo Next.js app with no existing test setup in this repo.Checklist
Reviewer Guidance
npm installsnippet, and three links - "Get started", "API reference", "Guides".query()section and click its "Try it live" link. Confirm it navigates to/demo/request-functions-from-server/queryand the page shows a table of addresses loaded from the local API route (not an error or blank state)./demo/collection-records/request-retrieve-functions/save. Edit the address field and click "Save". Confirm it round-trips: the button shows a "Saving" busy state, then returns to normal with no error, confirming thesave()call actually hit the localPUT /api/v1/addresses/:idroute./docs/api-reference. Open a couple of method pages (e.g.findRecord,pushPayload). Confirm each shows a signature, parameter table, and example - and that no page exposes an internal (_-prefixed) method./demodirectly (not through a guide link). Confirm it 404s - this is intentional, there is no/demolanding page in this PR.michaeljymsgutierrez/arm-js-libraryrepo on GitHub, on this branch, and confirmREADME.mdrenders correctly: the logo image loads (served from./assets/arm-js-logo.png, not a broken external link), the badges and the "Quick example" code block render, and the credits table displays properly.