-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Optionally upload docs to GH Pages #8
Conversation
@max-arnold Do you agree with this in principle? I know there have been a lot of discussions around the docs. In contrast, this is a very bare-bones MVP, but it gives contributors a frictionless way of hosting them immediately. As we all know, the current default state of having no docs is suboptimal. |
I'm not very familiar with GH workflows, so please excuse me if the review is not correct or I haven't spotted a syntax issue.
Feel free to merge as-is, we can iterate on this later and I really need to go through the whole publishing process myself. |
No worries, those are easy to fix in "prod". =)
One could download the
Unsure what the permissions are currently and whether reusable workflows can be called from outside an org in principle, but...
... the docs can be built via
Yeah, I've been thinking about that. It's a bit cumbersome to require a step that could be skipped, but possible with workarounds. Agree the tests should probably be passing.
👍 I'll modify to require the tests for the docs publish job at least. |
Alright, so this worked out, but it requires a It's not too bad since this was true before regardless (because the docs build was broken with the release of |
Adds a switch for automatically deploying the latest built docs to GitHub Pages.
This approach is very basic (not versioned), but helps with solving the immediate problem of not having any docs on most published extensions. I have been using this on https://github.com/salt-extensions/saltext-vault for a while now (https://salt-extensions.github.io/saltext-vault/) and am mostly satisfied (for a start).
Testing centralized workflows is hard, so I hope this works as I imagine (otherwise I'll do a quick fix).
Versioning notes
When using GH Pages instead of readthedocs, versioning support would require either (better):
furo
: Version selector pradyunsg/furo#500or (more basic):
gh-pages
branch and peaceiris/actions-gh-pagesto be able to deploy to subdirectories. The implementation via
actions/deploy-pages always replaces the directory root.