Developer Guide — Building the Docs¶
This page explains how to build and preview the MegaDetector-Acoustic documentation site locally.
Prerequisites¶
Install the documentation dependencies (separate from the ML requirements):
Preview locally¶
Then open http://127.0.0.1:8000 in your browser. The server hot-reloads on file changes.
Build (offline check)¶
--strict treats warnings as errors. Fix any broken links or missing pages before opening a PR.
Deploy to GitHub Pages¶
Deployment is automatic. The GitHub Actions workflow triggers on every push to main that touches docs/**, mkdocs.yml, or docs-requirements.txt.
To deploy manually (maintainers only):
This builds the site and force-pushes to the gh-pages branch. Do not commit the site/ directory — it is generated and is in .gitignore.
Adding a new page¶
- Create a new
.mdfile underdocs/ - Add SEO front matter at the top:
- Add the page to the
nav:section inmkdocs.yml - Run
mkdocs build --strictto verify no errors