Skip to content

Commit 2fd614f

Browse files
authored
Create README.md
1 parent 5a251f2 commit 2fd614f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
This is a simple project with a working pipeline for building and distributing sphinx documentation through GitHub Pages — mostly because I can't find an immediate use for this, and will 100% have forgotten about it by the time I do.
2+
3+
The workflow has the following steps:
4+
5+
1. A push to the _main_ branch (containing markdown source) triggers a sphinx HTML build.
6+
2. The HTML build is dropped to the _gh-pages_ branch.
7+
3. The website, hosted by Pages, gets updated accordingly to the new HTML content in _gh-pages_
8+
9+
The two main steps to set this up were:
10+
1. Set up ammaraskar's [sphinx-action](https://github.com/ammaraskar/sphinx-action) GitHub action in a yml file in **.github/workflows**. For a full example, see [sphinx-action-test](https://github.com/ammaraskar/sphinx-action-test).
11+
2. On the **Settings/Pages** tab, set GitHub Pages to follow the _gh-pages_ branch.

0 commit comments

Comments
 (0)