Thanks for helping improve Doc Diff. Every change is judged by two questions: does it keep the comparison fast and clear, and does it preserve the strict zero-network, single-file privacy guarantee?
-
Open an issue first for anything larger than a bug fix so we can align on the approach before you write code.
-
Edit the sources (
src/template.html,src/styles.css,src/js/*.js), then rebuild. Never hand-editDocDiff.html,site/index.htmlorsite/en/index.htmldirectly; they are generated bypython3 scripts/build.py. -
Keep the privacy & standalone invariants intact:
Content-Security-Policymust keepconnect-src 'none'andform-action 'none'.- Zero external CDN scripts, external stylesheets, or remote font URLs.
- Zero persistence of user documents (
localStorage,sessionStorage,indexedDB, ordocument.cookieare forbidden).
-
Every UI string exists in both German (
de) and English (en). Update both dictionaries insrc/js/01-i18n.js. -
Everything on GitHub is in English: commits, pull requests, issues, docs, and release notes (see CLAUDE.md).
-
Run the build and verification checks before opening a pull request:
python3 scripts/build.py node scripts/check.mjs
By contributing, you agree that your contribution is licensed under the MIT License.