Closed MarkRivers closed 1 year ago
Here is some more explanation.
I am trying to build the Web pages for my repository with Github Actions. I need to do 2 things:
Both of these work separately, but not together. If I run the Doxygen build first, it generates the output files fine. But then the Sphinx build (sphinx-notes/pages@v2) tries to delete all of the files that Doxygen generated. I have tried having the Doxygen output go into the following locations:
/docs/doxygenOutput /doxygenOutput /docs/source/_static/doxygenOutput
In all cases Doxygen works fine, but then the Sphinx build tries to delete the Doxygen files. The Sphinx build the actually fails because the doxygen generated files are owned by root. But even if it succeeded it would not work, since those files need to remain after the build.
If I run the Sphinx build first then Doxygen fails because the Sphinx build has already deleted the docs/ directory containing the Doxyfile.
Any idea solve this?
The sphinx action you're using is trying to commit its changes to gh-pages
after building which means it's trying to wipe all bits of the github repository it didn't build beforehand. I'd find another one ie. sphinx-build that doesn't have that functionality, since this action is incompatible with this.
Thanks very much. I have changed the action for sphinx and the problem is solved.
I have used this project to build my Doxygen documentation on Github.
This is my .yml file: https://github.com/epics-modules/asyn/blob/master/.github/workflows/publish-docs.yml
The Doxygen documentation builds fine. The source is docs/Doxyfile which specifies that the built HTML output goes in docs/doxygenHTML. This is a listing of the docs directory after the build:
This is the beginning of the listing of the doxygenHTML directory after the build.
The file are all there. However, note that they are owned by root, with only read permissions for other users.
The next part of my Github actions is to build Sphinx documentation which is in docs/source.
The github actions then fails when it tries to delete the Doxygen files.
Any idea why the Sphinx job is trying to delete those files?