Restore documentation on github pages with Doxygen generated doc#734
Conversation
RobLoach
left a comment
There was a problem hiding this comment.
This is a much better approach. I have access to https://github.com/Immediate-Mode-UI/Nuklear/settings/pages if you're missing it to make the change afterwards.
|
i know that this is already merge, but i decided to give a read through since my name was mentioned in the issue #730. First thing. Thank you for handling the issue. This definitely fixed the issue. but i do have a couple questions/notes I am not super familiar with github pages, so i am going to have to do some reading; but i really do like the feature and the automated workflow. My only concern with this PR is it appears that the published documents are not on master; but instead published from the I would recommend that we try to move our publishing to be based directly off master and change its root directory to Thank you again for the quick fix. |
|
In fact it's simple once the github action is made. It's a two parts process:
The interest of having generated content in a specific branch is.... it does not pollute the master branch, otherwise we would need an extra commit each time something is pushed in master (or rely on people re-generate the docs before PR, but we can't rely on that). And it's all automated with CI: each push on master triggers documentation generation and update of github.io. |
|
Thank you for the insight. I did some research into the actions and pages. I just posted a PR that continues to use actions, but removes the need for HTML to be committed at all. The actions handle the generation and the artifact uploading and deployment automatically. PR #737 |
This is an attempt to fix issue #730 since the original
gh-pagesbranch is not fed anymore (with.gitignorechanges).I'm not an expert at all with Doxygen and github actions, so that might need more work (help is welcome).
With this, a few hints:
src/HEADER.mddotcommand (an additional package might be added to the required docker image before running doxygen)Pagessettings of the repository need to be changed because the generated doc is done in the root of thegh-pagesbranch (and not/docsanymore). This is how I have setup my fork :The result can be seen on my fork deployed pages :)