I would like to ask if there is a step-by-step guide how to deploy Sphinx docs on github repository?
I was shown this before how to do it, but I do not remember each step.
I can build documentation locally using “invoke docs” that creates a “dist” folder with html files:
In github → settings I set up the docs folder:
In my old repo, I see that I created a separate branch “gh-pages”. But I do not recall what are the next steps. I created this new branch like this in git bash:
git switch --orphan gh-pages git commit --allow-empty -m "Initial commit on orphan branch" git push -u origin gh-pages
How can I create docs and push it to github?
Because I can only
invoke docs on
main branch not