-
Notifications
You must be signed in to change notification settings - Fork 7
Remove Zenodo badge, patch Doxygen's cookie.js to store in session storage.
#373
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
Conversation
Resolves #370 but might break certain browsers.
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.
Pull Request Overview
This pull request addresses issue #370 by removing the Zenodo badge from the README and implementing a privacy-focused solution for Doxygen's cookie handling. The changes replace traditional browser cookies with sessionStorage to improve privacy compliance.
- Replaces Doxygen's cookie.js with a custom version that uses sessionStorage instead of cookies
- Removes the Zenodo badge from README.md and replaces it with a static DOI badge
- Updates the GitHub Actions workflow to patch the generated Doxygen documentation with the custom cookie.js
Reviewed Changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| doc/js/cookie.js | New custom cookie.js implementation using sessionStorage instead of browser cookies |
| README.md | Removes Zenodo badge, adds static DOI badge, and includes various formatting improvements |
| .github/workflows/doxygen-gh-pages.yml | Adds step to copy custom cookie.js to override Doxygen's default implementation |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Co-authored-by: Copilot <[email protected]>
| - name: Manually patch cookie.js | ||
| run: cp doc/js/cookie.js html/cookie.js | ||
| shell: 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.
Stupid reformatting of this file but these three lines do the actual patching.
willGraham01
left a comment
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.
🍪
Resolves #370 but might break certain browsers.
To actually see what I've done...
cd /place/where/tdms/is git checkout sc/patch-cookies doxygen doc/Doxyfileand check the diff of
doc/js/cookie.jswith thehtml/cookie.jsthat was created by Doxygen. I've removed all cookie-writing to cookies, and put intosessionStorage.A less nuclear option (if this breaks too many browsers) is to override the default cookie duration to
days=0, which makes it session-expiring, and setSameSite=Strict, which is a bit better than the current situation.