Browser Documentation Site
The Markdown source in this repository is renderer-neutral OKF, but it can also build directly into a fast static browser site with navigation, search, and light/dark themes.
The Markdown source in this repository is renderer-neutral OKF, but it can also build directly into a fast static browser site with navigation, search, and light/dark themes.
Recommended renderer
Section titled “Recommended renderer”The documentation site uses Astro + Starlight:
- Markdown-first and statically generated.
- Fast local preview and deterministic production builds.
- Built-in documentation sidebar, previous/next navigation, breadcrumbs, search, and light/dark mode.
- Straightforward deployment under a base path such as
/uec/. - Compatible with the existing Markdown and YAML frontmatter; OKF provenance is preserved as extension metadata.
- Astro is already the technology behind the existing Invinsense documentation site, making future visual/platform integration straightforward.
Commands
Section titled “Commands”Install dependencies once:
npm installPrepare generated Starlight content, copying the canonical OKF pages and public images:
npm run docs:prepareStart the local browser site:
npm run docs:devOpen:
http://127.0.0.1:4321/uec/Build the static production site:
npm run docs:buildPreview the exact production build:
npm run docs:previewBuild pipeline
Section titled “Build pipeline”tools/prepare_starlight.pyreads the canonical OKF concepts.- Reserved OKF
index.mdfiles are omitted; the browser sidebar provides progressive disclosure. - Folder
README.mdconcepts become Starlight section landing pages. - Bundle-relative
.mdlinks are converted to clean browser routes. - Image paths are copied under
public/imagesand served beneath/uec/images/. - Starlight generates HTML, client-side search, sitemaps, and static assets under
dist/. - The static
dist/directory can be deployed to the existing documentation host at/uec/.
Source of truth
Section titled “Source of truth”The OKF Markdown remains the source of truth. The Starlight tree under src/content/docs/ and files under public/images/ are generated build artifacts and are not committed. Edit the canonical documentation, then rerun the OKF builder and documentation tests.
Deployment recommendation
Section titled “Deployment recommendation”Deploy the production output as a static site at:
https://documentations.invinsense.dev/uec/Use the same host, domain, brand header, and product rail as the other Invinsense product guides. Keep /uec/ as the canonical public base path so deep links remain stable.