-
Notifications
You must be signed in to change notification settings - Fork 1
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
posts/2021/07/18/hugo-on-github-pages #41
Comments
Thanks a lot. Didn't know about this. You led me to find - My use case is a bit different. Commits currently trigger a documentation build and a pages deployment simultaneously. |
P.S.: You also led me to find https://utteranc.es/ |
I'd use the same setup I have for hugo; instead of pushing to main, push to a separate branch, and make that branch host GH Pages. Essentially, you'd have If you want the generated doxygen files to be on the main branch as well, you do what you currently do, but after you push to main, you also need something along the lines of
Note that this will wipe the history of the gh-pages branch, which also happens to my deployment branch. You can avoid this with more scripting. I just wipe the history because it's convenient (particularly because I've struggled with Hugo not properly cleaning its output directory), and nothing is really lost. The history is preserved on the master branch instead Obligatory warning: Be careful with --force. It can and will wipe stuff on the main branch (or any other branch) if the That said, I did just notice that there's a new option in GH Pages settings: I have no idea how it works, but if it means you can define your own custom workflow for deployment, you can add, for instance,
And change your Doxygen action to add If it doesn't, using a separate branch is always an option. |
Hugo on GitHub Pages | Olivia's blog
https://lunarwatcher.github.io/posts/2021/07/18/hugo-on-github-pages.html
The text was updated successfully, but these errors were encountered: