Seedworks Labs Wiki The engineering referenceStudio website ↗
Reference & operations

Publish this wiki

Local preview, GitHub Pages, DNS, HTTPS and maintenance.

Engineering documentation • Reviewed 2026-11-29

What this repository deploys#

This is a static documentation website built from reviewed Markdown. The public origin is:

https://wiki.seedworkslab.de

No server, database, Supabase configuration, OAuth registration or runtime secret is required for the wiki. The detailed auth chapters describe the existing ecosystem; they do not turn the wiki into an authenticated app.

Local preview#

Requires Node.js 22+ and Python 3 for the simple preview server:

npm ci
npm run check
npm run preview

Open http://localhost:4173. Stop the preview with Ctrl+C.

npm run build writes dist/; npm test validates generated pages and build helpers. All pages have real index.html files, so nested direct navigation does not depend on an SPA 404 redirect.

With Chrome installed, npm run test:browser additionally checks desktop/mobile layout, search, menu/Escape and no-JavaScript navigation in an isolated temporary profile. Set CHROME_BIN if needed. It does not open a real account or existing browser profile.

Root-relative URLs are intentional for the custom domain. A bare github.io/wiki/ project-path preview is not a supported production base path; use the custom domain or local server root.

Repository structure#

Path Role
content/**/*.md Authored reference chapters
site.config.mjs Page titles/descriptions, navigation, canonical origin, review date and source repositories
scripts/build.mjs Markdown → static HTML, navigation/TOC, search index, sitemap and 404
assets/wiki.css Responsive light/dark/print styles
assets/wiki.js Mobile navigation, search shortcut and local search
scripts/audit-sources.mjs Optional sibling-repository source-reference check
CNAME Custom domain copied into the deployment artifact
.github/workflows/pages.yml Pull-request build/check and main-branch Pages deployment
dist/ Generated output, ignored in Git

Markdown links beginning source: become GitHub source links using the configured repository branch. Raw HTML is escaped by the renderer; unsafe URL schemes fail the build. There is no runtime Markdown execution.

Owner's publication checklist#

All external steps remain for the repository/domain owner:

  1. Review the local files and commit/push the wiki repository when ready.
  2. Ensure its deployment branch is main, or update the two branch conditions in .github/workflows/pages.yml to match.
  3. In that repository's Settings → Pages, choose GitHub Actions as source.
  4. Run the workflow or push a reviewed change to the deployment branch.
  5. Set the repository Pages custom domain to wiki.seedworkslab.de; the build artifact already contains that CNAME.
  6. Add the DNS record below and wait for GitHub's DNS validation/certificate provisioning.
  7. Enable Enforce HTTPS when available.
  8. Test the acceptance checklist below.

The workflow builds/tests on pull requests without deployment. On a main push/manual run it uploads dist/, then a separate Pages deployment job uses the built-in GitHub Pages/OIDC permissions. No personal access token, deploy key or Supabase secret is needed.

DNS#

For the existing SeedWorksLab GitHub Pages organization:

Type Name Target
CNAME wiki seedworkslab.github.io

The DNS target is a hostname, not https://…, a GitHub repository URL or a /wiki path. Replace only conflicting records for the wiki subdomain, not the apex website or Coconut's record.

Verify domain ownership with GitHub's supplied TXT record if not already done. Prefer DNS-only operation during certificate provisioning; do not create wildcard Pages records.

Setting CNAME locally does not itself create DNS, register a Pages domain or issue HTTPS certificates. The owner must complete those steps.

Acceptance after deployment#

  • Root loads with the correct canonical domain and no mixed content.
  • /coconut/, /banana/, /website/, /auth/ and a nested chapter load directly and survive refresh.
  • A missing URL shows the ordinary wiki 404, not an app/login redirect.
  • Search finds planWeek, PKCE, remainingForBudget and data_contexts.
  • Search failures produce a usable message and the navigation still works.
  • Navigation works at phone width, with keyboard focus and Escape.
  • Pages remain readable with JavaScript disabled; only enhanced search/mobile controls depend on JavaScript.
  • Light/dark mode and print output remain readable.
  • Source links point to the expected repositories; unpublished local backend files may need pushing separately.
  • Network inspection shows only wiki assets/search JSON until the reader follows an external link.

Maintaining chapters#

Edit Markdown and add navigation entries in site.config.mjs for new pages. Use H2/H3 sections; H1 comes from metadata. Keep internal links root-relative and source links in the form:

[Function owner](source:Coconut/src/services/forecast-service.ts)

When refreshing documentation, inspect actual code and tests, update sources.md and the review date, and distinguish deployed state from local source. The review date is not the date a live service was tested.

File inventories can be refreshed with npm run inventory when sibling source repositories are available. Review that generated diff like any other documentation; an export list does not explain behavior by itself.

Security and privacy#

The wiki contains no authentication/session storage and loads no third-party fonts, scripts or analytics. Search uses the public same-origin JSON index and creates result nodes with textContent.

The generated meta CSP allows only same-origin scripts/styles/images and same-origin fetch, with no forms, objects or base-URL injection. GitHub Pages does not provide arbitrary HTTP security headers, so this is not a claim of server-enforced framing/HSTS controls.

Dependencies are build-time only and locked through package-lock.json; runtime pages do not load marked or any CDN. Keep workflow actions/dependencies reviewed when updating them.

What has not been done#

Preparing these files does not push commits, enable GitHub Pages, change DNS, issue certificates, run a backend migration or deploy any app. Public domain availability can only be confirmed after the owner completes publication.