-
Notifications
You must be signed in to change notification settings - Fork 160
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
[docs] Relative filenames. Using doxygen-awesome #507
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome! I was tempted to do this already when I looked at the output in your other issue.
@@ -0,0 +1,10 @@ | |||
#! /usr/bin/env bash |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this file here? Wouldn't it make sense to include all needed files here (that is at least what I do elsewhere)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All files needed are included in the repository. This file can be removed.
The hope is that this file documents which files need to be downloaded to update the styling. The script provides the answer, just one, and it also provides the URL where that one file can be found (hopefully).
Would you like me to remove it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My suggestion would be to have a GH Action check if doxygen-awesome is outdated. It could run for example on all merges to the main branch.
Ideally it could even open a PR if it founds things that are outdated, but I don't know if that is possible.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just the first hit when searching : https://github.com/istein/gh-actions-open-pr/blob/main/.github/workflows/pr.yml
It seems like we can modify this to do what we want
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice idea, I'll improve the PR to incorporate this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Amazing. Let me know if you need help!
Rename `download_stylesheet.sh` to `update_doxygen_awesome.sh`. Since the script must check out the doxygen-awesome repo, it need to be passed a folder that is 'safe' to pollute. The workflow will download the most current version of the CSS. Then check if it's different from our version. It will proceed to create a pull request, but only if it hasn't done so on a previous run.
I've tested the workflow in a separate repository quite thoroughly. Is there a way of testing it in this repo without effecting others adversely? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Amazing! I like this feature!
Other than the minor comment to me it looks fine.
No, I don't know if we can pre-test it. I think we will just have to try. I will try it elsewhere too, just to verify.
I check too, works like a charm! https://github.com/tdegeus/GooseFEM |
Co-authored-by: Tom de Geus <tdegeus@users.noreply.github.com>
Co-authored-by: Tom de Geus <tdegeus@users.noreply.github.com>
Codecov Report
@@ Coverage Diff @@
## master #507 +/- ##
=========================================
Coverage ? 78.54%
=========================================
Files ? 63
Lines ? 3276
Branches ? 0
=========================================
Hits ? 2573
Misses ? 703
Partials ? 0 Continue to review full report at Codecov.
|
It worked :) I was not expecting it to trigger this soon. Very nice idea of yours. I'll look into turning it into an GH action. Thanks for all the feedback during review. |
Like a charm! Thanks again, this is a really nice feature. It would be really nice to generalise this! |
Improves the Doxygen generated documentation with the following features.
Improves #472