Preview The Docs Site
This guide explains the current MkDocs proof-of-concept for projecting the repo docs into a browseable HTML site.
The current setup uses the built-in mkdocs theme with a custom light-tech stylesheet and a small JavaScript enhancement layer for quality-of-life behaviors such as code-block copy buttons.
Why This Exists
- it gives the current Markdown docs a simple HTML projection with little tooling
- it keeps the source in the existing
docs/tree - it leaves room for later coexistence with
fsdocsif F# API and literate docs become a stronger concern line
Current Files
mkdocs.ymlrequirements-docs.txtdocs/assets/stylesheets/light-matrix.cssdocs/assets/javascripts/code-copy.jsdocs/assets/javascripts/talkyard-comments.js
Local Preview
From the repository root:
python3 -m venv .venv
source .venv/bin/activate
python3 -m pip install -r requirements-docs.txt
mkdocs serve
Then open:
http://127.0.0.1:8000/
Local Build
source .venv/bin/activate
mkdocs build
python3 NEXUS-Code/scripts/verify_docs_talkyard_comments.py
The generated static site is written to:
site/
Notes
mkdocswas not installed globally on this machine when this proof-of-concept was added, so the repo instructions assume a local virtualenv instead of a machine-global dependency- a few docs still describe the root repo
README.mdas a stronger source than the docs site projection; this is intentional - Talkyard comments now depend on the hosted Talkyard site allowing embeds from
http://127.0.0.1:8000orhttp://localhost:8000 - the NEXUS docs site currently uses the
NEXUS Site Commentspublic stream via Talkyard category refextid:nexus_site_comments - the verification script checks the generated HTML shape and the comments opt-out/override rules, but it does not prove that the Talkyard host itself has allowed the current origin