Skip to content

Conversation

@lstngr
Copy link

@lstngr lstngr commented Nov 14, 2024

Hello!
Here's a possible workflow which builds the website and pushes it to the gh-pages branch.
This branch can then be published through Pages, which, I believe is the system used to serve the website.

Please note I did remove a number of configuration options in conf.py (in particular some linked to latex, texinfo and man output).
If this is unwanted, let me know so I revert this change.

Closes #54

Louis Nicolas Stenger added 2 commits November 14, 2024 15:43
The configuration file was last generated in 2012. This removes some
configuration options that do not appear any more when running
sphinx-quickstart [1].
This also adds "make.bat" for Windows users.

The extension folder is also removed as "math_dollar.py" appears to be
unused.

[1] https://www.sphinx-doc.org/en/master/usage/quickstart.html
The workflow is lightly adapted from the one suggested in theSphinx
documentation [1].
It builds and pushes the website to the "gh-pages" branch which can then
be published from the repository's settings [2].
A push event to "master" triggers the workflow. [3]

[1] https://www.sphinx-doc.org/en/master/tutorial/deploying.html#id5
[2] https://docs.github.com/en/pages/getting-started-with-github-pages/configuring-a-publishing-source-for-your-github-pages-site#publishing-from-a-branch
[3] https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Setup a CI to update the webpage automatically

1 participant