Skip to content

rapidocui.com on RapiDoc Portal, and the RapiDoc sites restructured - #1242

Merged
mrin9 merged 45 commits into
masterfrom
portal-pages-and-rapidoc-site
Nov 22, 2026
Merged

mrin9 merged 45 commits into
masterfrom
portal-pages-and-rapidoc-site

Conversation

@mrin9

@mrin9 mrin9 commented Nov 22, 2026

Copy link
Copy Markdown
Collaborator

rapidocui.com moves from the Starlight site in docs/ to sites/rapidoc, built with RapiDoc Portal, and the RapiDoc family's docs are split across four sites with one header, footer and theme.

What goes live on merge

  • rapidocui.com: deploy-docs.yml builds sites/rapidoc (npm run build:rapidoc-site) and deploys it with GitHub Pages. docs/ stays in the repository, no longer published.
    • A feature page per product (RapiDoc, RapiDoc Mini, RapiFlow, RapiPdf, RapiMock, RapiDoc Portal, CLI).
    • /docs: a page of cards for every product, tool and integration; RapiDoc's docs under /docs/rapidoc/.
    • Element API references as docs pages (/api/… kept as redirect pages).
    • noindex removed.
  • flow.rapidocui.com, mock.rapidocui.com, portal.rapidocui.com: published by their own workflows, with the shared header, footer, navy dark and orange light themes, the reviewed quickstarts, and "OpenAPI spec" / "Arazzo spec" naming.
  • The preview workflow (preview.rapidocui.com) is retired.

Not carried over

Old rapidocui.com addresses that moved in the restructure (/docs/get-started/…, /docs/theming/…, /docs/ai/mcp-server/, …) have no redirects, as decided; links to them in this repository's sites and READMEs are rewritten. READMEs on npm keep the old links until the next release.

Packages

12 changesets (mostly @rapidoc/portal, one each for rapidoc, @rapidoc/mock, @rapidoc/server, create-rapidoc): the release pull request opens after the merge.

Checked

npm run build:rapidoc-site passes; 8,810 internal links and their anchors checked (4 broken spec links on example and test pages are already broken on the live site); npm run test:unit (729) and npm run test:portal (726) pass; lint and format clean.

🤖 Generated with Claude Code

mrin9 and others added 30 commits November 20, 2026 17:34
Pages: every .astro file in a project's pages/ folder is a route. A page takes
the portal's frame from PortalLayout, or brings its own document and takes the
head tags from components/PortalHead.astro. projectDir (virtual:rapidoc-portal/project)
is the project's folder, for reading its files at build time. With
pages/index.astro as the home page, docs/index.* is the page at /docs.

Header: a dropdown of plain links is a simple list; items with an icon or a
description are cards, columns across (default 2); groups are columns with
headings; footer is a link under a menu. A link takes a badge and
position: start. site.logo.badge is a label next to the logo, and
header.tabs: sidebar lists the tabs above the sidebar's pages.

Fixes: a header link's icon is shown, a card's { text, variant } badge shows
its text, and the search index lists a folder's index page at the folder's
address.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Every page of the site built from docs/: the 50 documentation pages, the home
and product pages, the sandbox, the API reference, the examples and the test
pages, as copies. The docs pages use the portal's header and sidebar, styled
as the live site's (styles/portal.css); the site's own pages keep their own
layout. The live site is still built from docs/, and nothing publishes this
folder yet.

npm run dev:rapidoc-site, npm run build:rapidoc-site.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Builds sites/rapidoc and pushes the built files to rapi-doc/rapidoc-site-preview
for GitHub Pages at preview.rapidocui.com, on pushes to master and to this
branch. The site build now builds rapipdf too, which the RapiPdf page loads.

Needs the repository, the secret RAPIDOC_SITE_PREVIEW_DEPLOY_KEY and the DNS
record to exist.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
… the panel

The header links were one line tall, so the pointer crossed a strip of the
header that belonged to neither the link nor its menu, and the menu closed.
The links are now as tall as the header.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…ne header on the rapidocui.com clone

@rapidoc/portal/components/PortalHeader.astro gives a page that brings its own
document the portal's header, with the theme tokens it needs. Such a page is
marked with data-portal-own-document, and the theme's two bare-element rules
(body, inline code) skip it, so its content keeps its own look. In the
narrow-screen menu, a grouped menu's plain links have no default icon.

sites/rapidoc: the site's own pages place the portal's header instead of
SiteNavbar, which is removed with its links file. The header takes those
pages' darker surface, and sits at the same place on every page: the same
sizes and width steps as the live site's, with the theme switcher's width
balanced after the logo.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…osest

When two links cover the page's address (/docs and /docs/quickstart on the
quickstart page), both were marked active. Only the one with the longest
matching address is now, and it carries aria-current.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…nd a wider hover area

The 'menu is open' state kept the portal's grey button background. The hover
area is 12px wider on each side of the label, and the strip between the header
and the menu that still counts as the menu is 30px tall, for a pointer coming
down at an angle.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…ternal links and the menu card

config/doc-paths.js: which files of docs/ are pages and each one's slug and
address, used by the config, the docs sync, the search index and the llms
output (each had its own). config/doc-source.js: one frontmatter reader for
the search index and the llms output. config/links.js: isExternal and
externalAttrs, defined nine times before. PortalMenuCard.astro: the header
dropdown's card, written three times in PortalHeaderMenu.

Fixes a navigation tab with autogenerate whose first page is a folder's index
file: it linked to an address ending in /index/.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The build writes 404.html: 'Page not found' in the portal's frame, with links
to the home page, the search and the navigation tabs. A project's own
pages/404.astro replaces it (the address is no longer reserved). With sign-in
the page is always public.

rapidoc serve answers a browser's request for a missing page with it, where
it answered 'Not found' in plain text; other requests, and readers who may not
see the default zone, get what they got before.

sites/rapidoc: the live site's own 404 page.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Own pages: the search index gets them from their HTML, after a build
(indexBuiltPages) and in rapidoc dev from the running server just after it
starts. A Pages filter shows them; a page opts out with
<meta name="portal-search" content="off">.

The dialog: a query is split into words (a doubled backslash in its inline
script made it look for the whole query as one phrase), a name is found with
or without its hyphens, a word with special characters no longer breaks the
highlighting, and a filter is offered only for a kind of result the site has.

Indexed text: an MDX page's import lines are left out, and a name written as
code (`<rapi-doc>`) is kept in titles and text instead of being dropped as a tag.

sites/rapidoc: pages hidden from search engines stay out of the site's search.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…tab it is in

The label of a docs result (and of its headings) is its page's tab, "Guides"
or "Reference", where every one said "Documentation"; a page in no tab keeps
that. The label is searched, so a tab's name finds its pages.

The search section of the portal's docs described a Pagefind index the search
box does not use; it now says what is searched and what each result shows.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
scripts/sync-version.mjs sets site.logo.badge to v<major>.<minor> of
packages/rapidoc before every preview and build of the site (the two npm
commands run it), rewriting that one line only when the version changed. The
preview is republished when the version changes.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The same tag the live site puts on its docs pages: the page title as
"Docs / <title>" and the content group "Docs", through head: in the
config. The site's own pages keep sending theirs from their layout.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
brand/README.md has a "Names" section (RapiDoc, RapiDoc Mini, RapiFlow,
RapiPdf, RapiMock, RapiDoc Portal, RapiDoc CLI), and AGENTS.md points to it.
"Rapi Mock" becomes "RapiMock" everywhere but the changelogs, RapiPDF becomes
RapiPdf, and the clone names the portal "RapiDoc Portal", not "Developer Portal".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
sites/rapi-flow is the RapiFlow documentation site, built with RapiDoc Portal
like the RapiMock site (npm run dev:flow-site, build:flow-site; port 4330), and
the home of RapiDoc's Arazzo support. publish-flow-site.yml pushes the built
site to rapi-doc/rapi-flow-doc. The five RapiFlow pages move there from the
rapidocui.com clone, whose RapiFlow tab and links now point to the new site;
the feature page, API reference and examples stay on rapidocui.com.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
/docs is a page of cards for every product, tool and integration, with
"Which package do I need?" (the Packages page) below them. RapiDoc's docs move
under /docs/rapidoc/. MCP and pre-rendering become tool tabs: /docs/mcp/ (how
operations become tools, the manifest) and /docs/mcp/server/ (export, run,
connect), with the Export button at /docs/rapidoc/mcp-export/, and
/docs/prerender/. The mocking overview folds into the in-browser mock page and
the mock-server page gives way to mock.rapidocui.com. RapiDoc Mini gets a
Recipes page. RapiMock has its own sidebar tab, and the Products menu names it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Its tags are plain grey monospace and its arrows small, as on the main site,
instead of the portal's amber badges, and "Mock Server" is RapiMock.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The old home page becomes RapiDoc's feature page at /rapidoc/. The new home
page is the family: a "which one do I need" grid, the products and tools, and
a start snippet. /rapi-mock/ and /portal/ are new feature pages, from the
content of their sites' home pages. The Products menu, the footer and
products.ts group Products (RapiDoc, Mini, RapiFlow, RapiPdf, RapiMock,
RapiDoc Portal), Tools (CLI, MCP, pre-rendering) and Integrations, and every
product links to its feature page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The RapiFlow, RapiMock and Portal sites get rapidocui.com's header: the
Products menu (Products, Tools, Integrations, with absolute links and the
main site's menu styles), Docs and GitHub. The RapiMock and Portal home pages
become docs introductions, their feature content now on rapidocui.com's
/rapi-mock/ and /portal/. The Portal site's validate, lint and bundle pages
become one page, tools/spec-checks.md, linking to rapidocui.com's CLI docs.

The menus link to addresses only the rebuilt rapidocui.com has, so this goes
to master at the switch-over.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A cover, the contents and an operation page of the Petstore PDF, made with
today's rapipdf/node, under "What Goes in the PDF". They were the one thing
the old RapiPdf site had that the new pages lacked.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
One HTML file pairs <rapi-flow> with a <rapi-doc> running the in-browser
mock, on rapidocui.com's Petstore spec and Arazzo file: run adoptPet, make
placeOrder retry and findAvailable fail from the Mock Response Status table,
then point it at your own files. It is second in the RapiFlow sidebar,
replaces the overview's "Load it" snippet, and is the RapiFlow page's
Quickstart button.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The RapiDoc quickstart uses rapidocui.com's Petstore spec and gains "Without a
CDN" (the bundle from npm, and the nginx sample that was a tab on /rapidoc/);
framework setup is a link to the framework guide. /rapidoc/'s four tabs become
the quickstart's HTML file with links. page-data/snippets.ts holds the script
tags, the sample spec and the snippets the home, /rapidoc/, /rapi-flow/,
/rapidoc-mini/ and /rapipdf/ show, and the current docs use the same spec
(the migration guides and the methods page's server picker keep theirs).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The build check looked for docs/get-started/quickstart/, which moved to
docs/rapidoc/get-started/quickstart/ with the docs by product, so every
publish since failed. It also checks for /rapidoc/, the feature page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
In place of the header's Quickstart link: the quickstarts of RapiDoc,
RapiFlow, RapiMock and RapiDoc Portal, then RapiDoc Mini, RapiPdf and the CLI,
which start in one step, and "Which package do I need?". Each site links its
own quickstart by path. The clone's header gives the wider links room: the
space after the logo only from 1200px, the search as an icon below 1100px.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
RAPIDOC_DEV_LINKS="https://example.com=http://localhost:4321,..." makes
rapidoc dev rewrite links (href attributes inside tags) that start with a
mapped address in every page it serves, so sites that link to each other can
be tested together. Spec URLs, images and code samples keep their addresses,
and builds are not affected. npm run dev:sites runs the four RapiDoc sites
with the mapping set.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…idebar

With many tabs, the list above the sidebar's pages pushes them down.
header.tabs: sidebar-select shows the current tab in one row, a disclosure
whose list of every tab opens over the pages (Escape and a click elsewhere
close it). The rapidocui.com clone uses it, and lists only the sections
documented on the site: RapiFlow, RapiMock and RapiDoc Portal are in the
Products and Get started menus and on the /docs card page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…menu

Each web component's reference is a docs page in its product's docs, drawn
from the element's source by one shared component (sites/shared): RapiDoc,
RapiDoc Mini and RapiPdf on rapidocui.com, RapiFlow on flow.rapidocui.com.
Tables per attribute group (name, description and allowed values, default)
and for methods, events, slots and spec extensions, on pages without the "On
this page" column, with jump links and a filter; RapiDoc's adds CSS parts and
custom properties. The Methods, Events, Slots and CSS pages link to it instead
of repeating its lists. /api and /api/<element> send readers there, keeping
the #anchor, for the links in published READMEs.

The header of all four sites is Products, Docs and Examples: one Docs menu
with Get started, API Reference and Browse replaces the Get started menu, the
Reference menu and the Docs link.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…a new tab

As the header's menus already do: a navigation entry whose address is on
another site gets an arrow after its label and opens in a new tab.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- <rapi-doc>'s reference is six pages (Attributes, Methods, Events, Slots,
  Spec Extensions, CSS Parts & Variables), right after Getting Started;
  old /api anchors go to the page that has them.
- The sidebar follows the reader: Layout & Navigation, Look & Feel,
  Authentication (a new overview of every way Try gets credentials, OAuth 2.0,
  and a link to RapiDoc Portal's SSO), Try It, Scripting, Large Specs, AI Agents.
- Guides that shared a name with a reference page are "Styling with CSS",
  "Your Own Markup", "Control It from JavaScript" and "React to Events".
- Every docs table uses the portal's standard style: the reference, the CSS
  parts and custom-properties catalogs and the Mini comparison table no longer
  draw their own. Unused rules and 25 unused variables are gone.
- API Reference sections link only inside the docs (no Examples or Live Demo).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`logo: { src, alt, badge }` on a navigation tab: on that tab's pages the header
shows its image (one, or { light, dark }) and its badge (false for none) in
place of site.logo's, for a portal whose tabs are products with logos and
versions of their own. The logo still links to site.logo.href. Documented on
the Portal site's navigation page; create-rapidoc's template shows it as a
comment.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
mrin9 and others added 15 commits November 21, 2026 17:46
…ry product

- brand/rapi-pdf-lockup-{light,dark}.svg, from the letters of the existing
  lockups; RapiPdf's docs pages show it with RapiPdf's version, which
  scripts/sync-version.mjs keeps current.
- API Reference comes right after Overview (RapiDoc Mini, RapiPdf) or
  Quickstart (RapiFlow), and those pages are titled "API Reference".
- The Mini and RapiPdf sidebars no longer link out to their live demos.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…one tab

With header.tabs: sidebar or sidebar-select, a portal with a single navigation
tab shows no tab list or switcher: there is nothing to switch between, and
the sidebar starts with its pages.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
rapidocui.com's header layout moves to sites/shared/styles/header.css, which
the RapiFlow, RapiMock and Portal sites import too, in place of their copies
of the Products menu's styles: content 1240px wide, the menus centred, a
compact search, the theme switcher, GitHub. Those sites switch sections above
the sidebar (header.tabs: sidebar-select) as rapidocui.com does, and RapiMock's
"Check a spec" sits next to Products and Docs. The RapiMock and Portal sites
republish when the shared header changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…its docs tab

Every site's footer has the same Products, Docs, Resources and Project columns,
lined up with the header by sites/shared/styles/footer.css. rapidocui.com's own
pages take the portal footer through the new
@rapidoc/portal/components/PortalFooter.astro export. On the RapiDoc Portal
site the Reference pages are a group in the Documentation tab.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…es without On this page

RapiMock's Reference pages are a group in its Documentation tab. Reference
pages of wide tables (RapiMock's, RapiDoc Portal's CLI and configuration keys)
and pages with no sections turn off On this page; sites/shared/styles/content.css
gives a page without it that has tables the column's width, on every site.
The hero of RapiDoc's page (and the live home page) drops the
"OpenAPI 3.1 & 3.0" badge: RapiDoc reads Swagger 2.0 and OpenAPI 3.2 too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Pages with no sections (the CLI's preview, pdf, mock and mcp, the Python, .NET
and Go integrations, the integrations overview) and the reference pages of wide
tables (All Commands & Options, CSS Parts & Variables) turn it off; the pages
with tables then take that column's width.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ges have it

The text column is centered in the width a page has next to On this page, so
the title doesn't jump sideways between pages; prose keeps its width, a page
with tables grows to the right. RapiFlow's quickstart turns the column off.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Three rounds of review of the RapiDoc, RapiFlow, RapiDoc Portal and RapiMock
quickstarts, checked against the source. RapiMock's steps now use the site's
sample spec, with output from a real run; the Portal page no longer claims
config errors suggest typo fixes; each page states what you end up with and
what you need, gives a result per step, and links on. RapiFlow's running page
names the Every step row; the Portal's APIs page lists where a starter API's
id appears. docs-review/ holds the standard and the three round reports.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ge titles

brand/README.md sets the rule: the two files are an OpenAPI spec and an Arazzo
spec, a bare "spec" only where Arazzo doesn't come up, a workflow is one
workflow in an Arazzo spec. The docs, the RapiFlow pages and <rapi-flow>'s doc
comments and URL box follow it. The portal keeps a frontmatter title as written,
so "Pairing with <rapi-doc>" no longer renders as "Pairing with". The two
quickstarts drop body { margin: 0 }, which RapiDoc sets itself.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…es too

The home page no longer says every product works from one spec: the reference,
embeds, PDF, mock and portal come from an OpenAPI spec, RapiFlow's workflows
from an Arazzo spec. The Arazzo example's description, the RapiFlow snippet's
comment and the RapiDoc CLI line of every site's Products menu follow the rule.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The header's Docs link goes to rapidocui.com/docs on all four sites, in place of
the Docs mega-menu copied into each config. The page has a Get started card with
every quickstart, then a card per product, tool and integration
(components/DocsCard.astro) with shortcuts such as Quickstart and API Reference;
links to other sites carry an arrow. The home page headline is shortened to
"Your Specs, Everywhere They're Read", one line from 1024px up.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…he portal

sites/shared/styles/dark.css gives all four sites the navy of rapidocui.com's
home page in dark mode, the API reference and embedded operations and workflows
included; RapiDoc's and RapiDoc Portal's own default themes are unchanged.
The portal draws a code block with frame="terminal" as a terminal window (red,
yellow and green dots, then the title); the quickstarts use it for commands.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
sites/shared/styles/light.css holds the light block RapiFlow, RapiMock and
RapiDoc Portal each carried: the orange of RapiDoc's amber theme on white, one
border color. rapidocui.com imports it too, so its light accent moves from the
brown-amber to the same orange. Dark mode and the products' defaults are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…tabs and links the live demos

The portal's tabs above the API reference's sidebar sit inside it with the
guides' sidebar spacing, the sidebar-select list opens over the endpoint filter,
and tab rows keep one size on docs and API pages. The RapiDoc Portal site lists
its tabs (Documentation, Example API) instead of a dropdown, adds a Live demos
tab to demo.rapidocui.com, and its Introduction points to the three demos.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
deploy-docs.yml builds the RapiDoc Portal site in sites/rapidoc and deploys it
to GitHub Pages (rapidocui.com) in place of the Starlight site in docs/, which
stays in the repository unpublished. The site drops noindex, and the preview
workflow (preview.rapidocui.com) is retired. Links to addresses that moved in
the restructure are rewritten in the RapiFlow and RapiDoc Portal sites and the
READMEs; the attributes links go to /docs/rapidoc/reference/.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mrin9
mrin9 merged commit 5d504ae into master Nov 22, 2026
3 checks passed
@mrin9
mrin9 deleted the portal-pages-and-rapidoc-site branch November 22, 2026 08:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant