Publish the Documentation¶
ASRQuant uses GitHub Pages with a custom GitHub Actions workflow. The public documentation endpoint is:
The generated Pages artifact has a small root page at docs.asr-lab.online/ that redirects to /asrquant/.
Repository configuration¶
The documentation source stays inside the official repository:
No separate ASRQuant documentation repository is required.
In GitHub → asr-quant → Settings → Pages:
- Set Source to GitHub Actions.
- Under Custom domain, enter:
- Save the custom domain.
- After DNS is valid and the certificate is issued, enable Enforce HTTPS.
GitHub Pages custom domains used with a custom Actions workflow are configured in repository settings; a repository CNAME file is not required.
DNS configuration¶
At the DNS provider for asr-lab.online, create this record:
Do not put /asrquant/ in the DNS target. DNS resolves only the hostname. The GitHub Actions artifact provides the /asrquant/ path.
Deployment workflow¶
.github/workflows/docs.yml performs the following steps whenever documentation-related files change on main:
- checks out the repository;
- validates the official notebook's Markdown mathematics;
- installs the documentation dependencies;
- runs MkDocs in strict mode;
- builds the MkDocs site into
site-root/asrquant/; - creates a root redirect from
/to/asrquant/; - uploads the full
site-root/artifact to GitHub Pages.
The MkDocs canonical site URL is:
Local preview¶
For the normal MkDocs development server:
To reproduce the Pages directory structure locally:
Notebook mathematics policy¶
The official notebook is validated before each documentation build. Displayed equations must use:
The validator rejects \\(...\\), \\[...\\], unbalanced $$ delimiters and single-dollar math in the official quickstart notebook.