Documentation site
Documentation Site¶
The documentation is published as a website: jr2804.github.io/pdf-remote-converter.
Where It Lives¶
| Part | Place |
|---|---|
| The pages | docs/ in this repository |
| The site configuration | zensical.toml |
| The published site | the GitHub Pages site of this repository |
| The deployment | .github/workflows/docs.yml |
Like the other projects of the owner, the site is the Pages site of the
project repository itself, so it answers under the repository name:
https://jr2804.github.io/pdf-remote-converter/. zensical.toml declares that URL as site_url, which is what the
canonical links, the sitemap and the search index are built from.
Building It Locally¶
mise docs # builds the site into site/
The build fails on a link to a page that does not exist, so a broken cross-reference is caught before it reaches the site.
How It Is Published¶
The docs workflow builds the site on every push to main that touches
docs/, zensical.toml, README.md or the workflow itself, and deploys it
with the standard GitHub Pages actions.
The workflow can also be started by hand from the Actions tab.
Changing the Site¶
- The pages are Markdown files under
docs/, one directory level per section:user-guide/,developer-guide/andreference/. - Every page needs a
titlein its front matter. - The navigation is the
navtable inzensical.toml; a page that is not listed there is not reachable from the menu. docs/assets/holds the static files of the site, the favicon among them.- Cross-references between pages are relative links, and they are checked by the build.