-
Notifications
You must be signed in to change notification settings - Fork 0
Publishing
The Markdown under wiki/ is the reviewable source copy. GitHub renders the public wiki from a separate repository:
https://github.com/eantcal/nunn.wiki.git
A documentation change is complete only when the source repository and wiki repository contain the same page and asset content.
Topic pages follow one consistent progression:
- state what problem the model solves;
- show the relevant equation or data shape;
- include a short snippet checked against the current public API or example;
- link header, implementation, test, and runnable example;
- state constraints and diagnostics;
- end with a “Keep reading” link.
Additional conventions:
- use English for the English-edition wiki;
- treat checked-in code and tests as authoritative;
- link source files on the
mainbranch; - label shortened snippets as reduced or source-backed and do not invent helper APIs;
- keep code blocks small enough to explain one operation;
- prefer stable file links over fragile line-number anchors;
- keep asset filenames descriptive and stable;
- do not duplicate the whole README or book chapter.
From the repository root:
.\scripts\check-wiki.ps1
git diff --checkThe checker verifies internal page links, asset references, repository source links, page headings, and the absence of stale blob/master URLs.
For code snippets, also build the linked examples and run the test suite:
cmake --build build --config Release
ctest --test-dir build -C Release --output-on-failuregit status --short --branch
git fetch origin
git status --short --branch
git clone https://github.com/eantcal/nunn.wiki.git ..\nunn.wiki
git -C ..\nunn.wiki status --short --branchThe source repository uses main. The GitHub Wiki repository currently uses master. Do not assume that both branch names match.
git add README.md wiki scripts\check-wiki.ps1
git diff --cached
git commit -m "Improve source-linked wiki documentation"
git push origin mainStage only the intended files. Existing unrelated untracked content is not part of a wiki publication.
Copy pages and assets into the clean wiki clone:
Copy-Item -LiteralPath .\wiki\*.md -Destination ..\nunn.wiki -Force
Copy-Item -LiteralPath .\wiki\assets\* -Destination ..\nunn.wiki\assets -ForceThen inspect the result before committing:
git -C ..\nunn.wiki status --short
git -C ..\nunn.wiki diff --check
git -C ..\nunn.wiki diffIf a source page or asset was intentionally deleted, remove the corresponding tracked file from the wiki clone explicitly. A plain copy does not delete stale remote files.
git -C ..\nunn.wiki add --all
git -C ..\nunn.wiki commit -m "Improve source-linked documentation"
git -C ..\nunn.wiki push origin masterFinally, verify the rendered wiki home, sidebar, images, internal navigation, and several source links.
wiki/assets/ contains PNG diagrams adapted from book-generated figures. Keep their relative paths and descriptive names stable because both the source copy and public wiki refer to them.
Before adding a new diagram:
- confirm that it explains a relationship the prose or a short table cannot;
- crop unnecessary whitespace;
- use readable labels at GitHub's normal page width;
- add meaningful alt text;
- retain the source-generation material outside the wiki if it exists.
Return to Home to review the reader-facing navigation or Implementation Map to check source coverage.