-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
Deploy generated docs from PRs #41642
Comments
+1 on getting docs preview. Due to the size of built docs ~400Mb, I'm not sure if One solution would be to use https://readthedocs.org/ as they seem to offer this capability, but they just support the standard Sphinx workflow. Sphinx usage in Zephyr is nowadays in pretty good shape, but we still have custom scripts to generate Kconfig/DT pages or docs out of |
Good point. I didn't realize the docs are that big. Even if GH pages allowed more storage, having a gh-pages branch with all these files is probably not a good idea as it would dramatically increase the size of the repo that is cloned by everyone (if one does not clone/pull a specific branch). The Nordic approach with a dedicated HTTP server looks great. I removed "GH pages" from the title and will keep the issue open. |
we used to push the output into amazon S3 and provide a link. Publishing the data to S3 should be straightforward, we just need the documentation action to publish a comment about where to find the published docs. On the S3 side, we can do automatic cleanup, i.e. delete PR docs older than 2 weeks or something... |
I could work on that if I can get an S3 bucket and credentials :-) |
This feature was implemented in #44246, closing |
Is your enhancement proposal related to a problem? Please describe.
Changes affecting the Documentation are often hard to review if you can't browse the final generated HTML pages.
As pointed out by @henrikbrixandersen, the build artifacts can be downloaded. However, this involves some additional steps by the reviewer (click through the GH Actions results, download the file locally, unzip it, browse to the location).
It would be nice to be able to view the updated docs with a single click.
Describe the solution you'd like
GitHub pages could be used to deploy the generated docs for each PR.
If they are stored in the
gh-pages
branch in a subfolderpr/12345
, the website will be accessible under https://zephyrproject-rtos.github.io/zephyr/pr/12345.Necessary actions
gh-pages
featureIdeally, a bot would automatically add a link to the rendered docs in the PR.
I'd be willing to create a PR for the GH action workflow.
Security considerations
It is a potential security risk to automatically deploy something based on a PR that can be created from anyone on the internet. However, I think in this case the risk is acceptable:
CC @carlescufi @gmarull @nashif
The text was updated successfully, but these errors were encountered: