Publishing with Sphinx and GitHub Pages
EN
KO
Local HTML build
Install Sphinx and the theme:
pip install -r ./docs/requirements.txt
Build HTML locally:
python -m sphinx -M html docs/source docs/build
Open the result:
docs/build/html/index.html
Repository workflow
This repository includes a GitHub Actions workflow at .github/workflows/docs.yml.
The workflow does the following:
checks out the repository,
installs Python,
installs
docs/requirements.txt,builds Sphinx HTML,
uploads
docs/build/htmlas a Pages artifact,deploys the artifact with GitHub Pages.
Required GitHub repository setting
In the repository settings, set Pages to use GitHub Actions as the source.
Minimal command summary
pip install -r docs/requirements.txt
python -m sphinx -M html docs/source docs/build
What to commit
Commit these paths at minimum:
README.mddocs/.github/workflows/docs.ymlexamples/
You do not need to re-ship large mesh assets for documentation-only changes.