Fumadocs setup

The static application is built and deployed behind SSO. Source/configuration facts and the release owner’s observed runtime evidence are separated below; shared chat’s source integration and final runtime acceptance are tracked in shared-chat. Return to index or read the fleet comparison.

flowchart LR
  A[Pinned source] --> B[Install and adapt]
  B --> C[Static output]
  C --> D[Browser and access proof]

Source and prerequisites

The pinned Datalumina repository is public. Its exact source inventory is 18 Markdown files total: 17 department pages plus the index, ten employee JSON profiles, and ten SVG avatars. Earlier preparation research described 18 pages plus an index; the pinned tree corrects that off-by-one count. Preserve all supplied inputs, attribution, ownership links, homepage, and department navigation. This is educational content, not SiteKits policy. The GitHub repository API reports no detected license (license: null): public access must not be relabeled as an MIT grant or assumed to grant unrestricted redistribution.

The example requires Node >=22.12. Its password gate, search, and chat are server-side, and its README explicitly says static export is unsupported. Copying the repository and running its build is therefore not the static deployment solution. Its Fumadocs 16.11.3, Next 16.3.5, and React 19.2.8 are example dependency versions, not the newly verified Fumadocs pins.

Prepare the official static starter

The implementation owner invoked this official CLI command from the project root, followed by exact dependency pins. The release owner subsequently completed the static build recorded below. Do not rerun initialization over a populated destination.

nice -n 10 npx --yes create-fumadocs-app@16.2.9 apps/fuma --template +next+fuma-docs-mdx+static --search orama --pm npm --no-git --yes --install
cd apps/fuma
nice -n 10 npm install --save-exact fumadocs-core@16.15.14 fumadocs-ui@16.15.14 fumadocs-mdx@15.4.5

These scaffold commands do not themselves import the example. The implementation uses the complete mapping below, preserving the official Fumadocs structure and appearance for a meaningful comparison. Source preservation and browser proof are recorded separately.

Complete source mapping

The pinned source was unpacked at runtime/fuma-source. The exact upstream tree and local inventory contain engineering 3, marketing 2, operations 3, people 3, sales 3, and support 3 department pages, plus content/docs/index.md.

Source at the pinned commitChosen application mappingPreservation requirement
content/docs/**/*.mdapps/fuma/content/docs/**/*.mdPreserve all 18 Markdown files unchanged, including the original index and owner metadata.
content/employees/*.jsonapps/fuma/content/employees/*.jsonPreserve all ten original employee records and all their fields.
public/avatars/*.svgapps/fuma/public/avatars/*.svgPreserve all ten supplied employee avatars.
Employee JSON plus ownership relationshipsGenerated MDX for /docs/team and /docs/team/<slug>Expose every profile and connect handbook owners to their employee pages; generation is adaptation, not a replacement sample dataset.
Upstream homepage and department organizationStarter homepage and documentation navigationPreserve entry points to the complete handbook and people directory without importing server-only login/search/chat handlers.

Generated source files are apps/fuma/content/docs/team/index.mdx and ten apps/fuma/content/docs/team/<slug>.mdx profiles, with seven meta.json navigation files across the documentation root and department folders. The release owner independently proved 39 of 39 copied upstream files byte-identical, including the complete handbook, employee JSON records and avatars. Source equality does not by itself prove rendered navigation; the separate browser evidence below covers all 30 content routes.

Static search and output contract

The official static example at the inspected commit provides the relevant contract:

  • next.config.mjs wraps output: 'export' with createMDX().
  • app/api/search/route.ts uses revalidate = false and createFromSource(source, {language: 'english'}).staticGET as GET.
  • The custom search dialog uses useDocsSearch and staticClient from fumadocs-core/search/client/orama-static.
  • The provider supplies that dialog to RootProvider.

The dev commit is a reference snapshot, not a released package version. Retaining an ordinary request-time search handler is not sufficient for static search. Use the published API identifiers even where prose documentation names a different search engine.

These four items describe the source contract; the observed browser search is recorded below. The exported index is downloadable content: the application auth boundary must protect it alongside HTML, JavaScript and avatars. The loader runs during export without requiring a resident Next server; a route named /api/search does not by itself establish successful search.

The inspected local apps/fuma/next.config.mjs additionally sets trailingSlash: true, experimental.cpus: 1 and images.unoptimized: true. The package build script is next build --webpack, with Next pinned to 16.3.5. These are local source/configuration facts, not measurements of build behavior. From apps/fuma, the release owner runs:

nice -n 10 npm run build

Built static output: apps/fuma/out. The release owner successfully ran the above nice-priority build with Next 16.3.5 and one build CPU, producing 93 exported outputs. No Next server is part of static hosting. Authelia replaces the example’s browser password gate; shared OMP chat replaces the optional paid-key chat path, not the complete content. Its service is separate from the static export; see shared-chat.

Wiki publication

The wiki is built separately from the application. From the SiteKits repository root, copy both public and private publication inputs as regular files before the release owner’s serial check-only and publish runs:

install -m 644 wikis/fuma/quartz.config.yaml wikis/fuma/custom.scss /home/loca/dev/wikis/fuma/
install -m 644 wikis/fuma/private/quartz.config.yaml wikis/fuma/private/custom.scss /home/loca/dev/wikis/fuma/private/

Both custom.scss files retain Quartz’s variables import and set html { width: 100%; }, preventing the root’s viewport width from including the vertical scrollbar. Within Quartz’s $mobile breakpoint, the explorer panel uses fixed positioning and width/max-width: 100% to stay within the viewport rather than the inset sidebar. These are per-vault overrides, not shared-engine edits; republish both wiki variants after changing them. Keep the public build’s private-content exclusion and the private build’s authentication boundary intact.

Observed acceptance and remaining boundary

On 2026-09-27 the release owner exercised the exact nginx output through a loopback static server at http://127.0.0.1:51976, without a Next server:

  • All 30 content routes: homepage, 18 handbook routes and 11 team routes.
  • Both 390- and 1280-pixel viewports: 60 checks and screenshots, each with a title and heading, all present images loaded, no horizontal overflow, and zero recorded console/runtime errors.
  • Real Ctrl+k search for discount approvals, followed by clicking the result to /docs/sales/discount-approvals/, showed “More than 20% / Finance and the managing director” at both widths.
  • Independent source integrity: 39 of 39 copied upstream files byte-identical.

Separately, the live application domain returned an anonymous 302 to Authelia. The content interaction proof is loopback proof of the deployed output, not an authenticated public-domain browser login claim. It does not assert every owner-link click or an exhaustive per-asset auth matrix.

Operator evidence lives under evidence/2026-09-27-sitekits-ae75b9b1/: fuma-browser.json, fuma-search.json, and fuma-content-integrity.json. These project-checkout paths are not public download links.

Shared-chat acceptance is separate. apps/fuma/app/layout.tsx embeds the shared element and module loader; apps/fuma/components/omp-chat-bubble.d.ts supplies React JSX typing. See embed for the same-origin script/chunk/API boundary and editor for editor OFF. A genuine cited OMP answer and cross-stack browser behavior require the release owner’s separate evidence; static export, handbook search and anonymous SSO redirects do not prove the chat chain.