-
Notifications
You must be signed in to change notification settings - Fork 192
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
use GitHub Actions to deploy nimble guide. #1197
Conversation
Well the docs don't need Python to build so don't claim that they do. |
Maybe my wording was not specific enough but the documentation at nim-lang.github.io/nimble is generated using |
I don't understand. Ping @ringabout, @narimiran |
Docs don't need it, but this new Nimble Guide does.
|
The main advantage of CI-based deployment is to remove some of the friction for updating docs. With the current strategy in order to deploy a new version of the docs two things must be true:
By switching to using CI then anyone can submit documentation content changes in the form of a PR. Merging it into master would be sufficient to update the deployed docs, without requiring the follow-up step from a maintainer to rebuild and push the new docs! If you are really wanting to keep a manual deployment to FWIW the current deployment just adds the built docs at the root of the repo, unnecessarily maintaining the commit history of
That's correct! You can see the logs of the GitHub Action for the current deployment here. It seems later this year the "deployment" step will be handled by the GHA infrastructure no matter what. |
Deployment failed due to
https://github.com/nim-lang/nimble/actions/runs/8748959902 Could we have an automatically built gh-pages instead? I used |
Was this changed that I said in the first comment made after PR was merged? Additionally, since if the master branch is protected you would need to add it to the
|
Yes.
I don't see that in the settings. It might be that I don't have a full access to this repo, so somebody else (with more priviledges) should follow the steps provided. |
Like this? Edited: Indeed, it works now => https://github.com/nim-lang/nimble/actions/runs/8748959902 |
This is a follow-up to #1190 to help facilitate this goal "IMO, the content itself can (and should) be improved once this is merged, so others can contribute."
Switching to instead use a Github Actions Deploy rather than the
gh-pages
branch for the documentation.I also added a nimscript file at
nimble-guide/config.nims
to make it easier to setupmkdocs
for hacking on the documentation.Once merged the "Build and Deployment" source would have to be changed to "Github Actions" and the
gh-pages
branch can be deleted.