- Python 3.12 or higher
- uv
Warning
As Netlify doesn't support Python past 3.8, the template can't be used with Netlify. Only GitHub Page is officially supported.
- Click on "use this template"
- Create the new repository from the template
- Generate a new GH token with the
repo
and workflow scope - In Settings > Secrets and variables > actions
- Click on "New repository secret"
- Name:
GH_TOKEN
- Value:
<your token>
- In Actions, go "Generate Website" and click on "Run workflow".
- Fill the items and click on "Run workflow"
- Wait for the workflow to finish
If the auto-merging is not enabled:
- Read and validate the pull request, merge it.
- You can now go into "Publish" and click on "Run workflow" to publish the website.
In the Settings
, go into Pages
and:
- Set the source to "Deploy from a branch"
- Select the
gh-pages
branch, from root:
Warning
You can't publish a private repository as a public page in the free tier of
GitHub. But you can use a private submodule as your docs folder and publish it
as a public page.
If so, don't forget to set the GH_TOKEN
secrets and enable the submodules in
the deploy.yml
file with setting FETCH_SUBMODULE: true