Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@samcunliffe
Copy link
Member

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/Doxyfile

and check the diff of doc/js/cookie.js with the html/cookie.js that was created by Doxygen. I've removed all cookie-writing to cookies, and put into sessionStorage.

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 set SameSite=Strict, which is a bit better than the current situation.

@samcunliffe samcunliffe requested review from Copilot and willGraham01 and removed request for Copilot September 5, 2025 09:25
@samcunliffe samcunliffe self-assigned this Sep 5, 2025
@samcunliffe samcunliffe added documentation Improvements or additions to documentation technical Technical and meta issues, not related to physics but infrastructure. housekeeping Code cleanup labels Sep 5, 2025
@samcunliffe samcunliffe requested a review from Copilot September 5, 2025 09:30
Copy link
Contributor

Copilot AI left a 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.

Comment on lines +46 to +48
- name: Manually patch cookie.js
run: cp doc/js/cookie.js html/cookie.js
shell: bash
Copy link
Member Author

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.

Copy link
Collaborator

@willGraham01 willGraham01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🍪 ▶️ 🗑️

@samcunliffe samcunliffe merged commit 4a5d69e into main Sep 5, 2025
15 checks passed
@samcunliffe samcunliffe deleted the sc/patch-cookies branch September 5, 2025 11:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation housekeeping Code cleanup technical Technical and meta issues, not related to physics but infrastructure.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

What's going on with the Doxygen cookies?

3 participants