Skip to content

docs: publish the user manual to GitHub Pages with the standard QuantEcon docs theme #179

Open

Description

@quantecon-services

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 stack build-lectures runs.
  • 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-pages branch, and no workflow deploys Pages.
    • Check Settings → Pages (Source: GitHub Actions) and the github-pages environment's branch rule.
    • The default URL is quantecon.github.io/actions/ unless the organisation's Pages site has a custom domain. Not verified.
  • Workflow.
    • A docs.yml of about 60–100 lines, triggered by push to main plus workflow_dispatch.
    • Permissions pages: write and id-token: write, with a pages concurrency group.
    • docs/** matches the harness gate's IGNORED, so docs-only PRs run no other CI. A new workflow file is not ignored.
  • Dogfooding is small.

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-pages or @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.yml and a build check on PRs that touch docs/user
  • Link the site from the root README and the manual's index

Relates to #178.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentation

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions