Add GitHub Actions workflow for generating static docs #26
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Relates to #17.
This PR adds a new workflow for automatically generating the project docs, so they can (optionally) be hosted via GitHub Pages.
Prerequisite
Before merging this PR (assuming it's approved), someone should add an orphan
doc
branch to the repo. It would look something like this:More than happy to explain that more, but you're probably already aware of how that works 🤷🏻♂️ You can see an example of how that branch will look here: https://github.com/pcolby/cutelee/tree/doc (the
docs
directly will be created by the workflow if its not there yet).How it Works
The workflow it split into two jobs. The first job ("generate") will:
docs
targetThen, the second job ("publish"):
master
, and only if the first job passed.doc
branchdoc
branch.This way, the
doc
branch always maintains a copy of the latest docs frommaster
.GitHub Pages
Optionally, you can then enable GitHub Pages on this repo. Go to https://github.com/cutelyst/cutelee/settings/pages and set the source to the
doc
branch and the/docs
folder, like this:Then the Cutelee docs should be available at https://cutelyst.github.io/cutelee/
In the meantime, you can see how they look on my clone: https://pcolby.github.io/cutelee/
I'm more than happy to help / explain anything further. And of course, if you want me to adjust anything, such as using a different branch name, etc, just let me know 😊
Cheers!