Repository navigation
Open
Open
Copy link
Labels
documentationRepo docs and contributor meta
Description
Why
#178 decided that the user manual lives in docs/user as GitHub-flavoured Markdown, read on GitHub, with no site for now. QuantEcon is likely to standardise its documentation on a custom theme. When that theme exists, the manual should be published with it to GitHub Pages.
This issue tracks that publishing step. It is deferred. Nothing here blocks #178.
What #178 found
A sample docs/user tree was built with both candidate builders:
- Jupyter Book 1:
jupyter-book 1.0.4post1,myst-parser 3.0.1. This is the stackbuild-lecturesruns. - mystmd:
mystmd 1.11.0.
| Feature | GitHub | Jupyter Book 1 | mystmd |
|---|---|---|---|
Tables, code blocks, <details>, task lists, HTML-comment markers, links between pages |
✓ | ✓ | ✓ |
> [!WARNING] alerts |
✓ | ✗ renders the literal text [!WARNING] and emits no warning. markdown-it-py 3.x cannot parse alerts; a roughly 40-line local Sphinx transform fixes it |
✓ |
page.md#section links |
✓ | ✓ only with sphinx.config.myst_heading_anchors: 3. Without it the build warns, and build-lectures' default -W makes that fatal |
✓ |
Links to files outside docs/, such as templates/ci.yml |
opens the blob | download of a copied snapshot | download of a copied snapshot |
Links to directories, such as templates/ |
✓ | ✗ dead link, and the warning is fatal under -W |
✗ 404, with no warning |
~~strikethrough~~ |
✓ | needs the extension plus a suppressed warning | ✗ literal tildes, with no config switch |
${{ … }} in prose outside backticks |
✓ | ✓ | ✗ parsed as maths unless project.settings.parser.dollarmath: false |
Including templates/ci.yml verbatim |
✗ | ✓ literalinclude, byte-identical |
✓ |
Links from docs/user to docs/dev |
✓ | not tested | ✗ becomes a raw .md download, unless one project is rooted at docs/ |
Other mystmd notes:
- Page URLs drop folder names, so file basenames must be unique.
- Links to missing pages fail silently, so a separate link checker is needed.
- A Pages sub-path needs
BASE_URL.
Writing rules #178 adopts so this stays cheap:
- No strikethrough.
${{ … }}only inside backticks.- Anything outside
docs/, directories especially, is linked by its absolute GitHub URL. - File names are unique within
docs/user.
Alerts are allowed, because GitHub and mystmd both render them.
Cost and coverage
- Pages is not set up today.
- There is no
gh-pagesbranch, and no workflow deploys Pages. - Check Settings → Pages (Source: GitHub Actions) and the
github-pagesenvironment's branch rule. - The default URL is
quantecon.github.io/actions/unless the organisation's Pages site has a custom domain. Not verified.
- There is no
- Workflow.
- A
docs.ymlof about 60–100 lines, triggered bypushtomainplusworkflow_dispatch. - Permissions
pages: writeandid-token: write, with apagesconcurrency group. docs/**matches the harness gate'sIGNORED, so docs-only PRs run no other CI. A new workflow file is not ignored.
- A
- Dogfooding is small.
uses: ./publish-gh-pagesexercises the basic configure / upload / deploy-pages path atmainHEAD, before a release. It does not exercise release assets orcname../build-lecturesadds nothing the harness does not already cover.- It does nothing for Release gating: a gate.yml in the canary tests the candidate before v0 moves #135 or Release gate fixture: content and hygiene for the canary's gate.yml #136.
- With
./refs, any regression onmainin those actions stops the docs publishing, and nothing alerts on it. - A
paths:filter ondocs/**removes even that coverage.
Decisions needed
- Builder. The standard theme decides this: a mystmd template or a Sphinx theme.
- Where the site builds from. One project rooted at
docs/with user and dev sections, or a user-only site. - Action refs. Publish with
./publish-gh-pagesor@v0. - Custom domain. Whether the site gets one.
Checklist
- Standard QuantEcon docs theme available
- Choose builder and site root
- Enable Pages (Source: GitHub Actions)
- Add
docs.ymland a build check on PRs that touchdocs/user - Link the site from the root README and the manual's index
Relates to #178.
Metadata
Metadata
Assignees
Labels
documentationRepo docs and contributor meta
Activity