Publishing the docs¶
The docs are built with MkDocs and published with GitHub Pages.
One-Time GitHub Setup¶
In the GitHub repository:
- Open
Settings. - Open
Pages. - Under
Build and deployment, setSourcetoGitHub Actions.
After that, every push to main runs:
.github/workflows/pages.yml
The workflow installs the docs requirements, runs:
python -m mkdocs build --strict --site-dir site
and deploys the generated site/ directory to GitHub Pages.
Site URL¶
The configured project Pages URL is:
https://debraheem.github.io/pyfortmesa/
The first deploy can take a minute or two. If the page is not live yet, check
the docs workflow under the repository's Actions tab.
Local Preview¶
From the repository root:
python -m pip install -r requirements-dev.txt
mkdocs serve
Then open:
http://127.0.0.1:8000/pyfortmesa/