# Contributing

Repository: https://github.com/PeaBox-Lab/Portable-Notes

1. Fork the repository and create a focused branch.
2. Preserve Markdown portability, localhost-only privacy, and the zero-dependency runtime.
3. Run the full pre-PR gate:

   ```bash
   make check
   ```

   Without Make, run the same checks explicitly:

   ```bash
   python -m unittest discover tests -v
   python tests/e2e_ui_actions.py
   python -m compileall -q app.py core api services scripts tests
   node --check static/app.js
   python scripts/check_version.py
   python scripts/generate_api_docs.py --check
   ```

4. Test create, rename, move, links, search, external edits, export, and recovery.
5. Keep vault logic in `core/vault.py` + `core/tasks.py`; do not duplicate it in `api/*`. Add or update routes in `api/routes.py`, then regenerate the reference with `make docs`. See `docs/ARCHITECTURE.md` and `docs/API_REFERENCE.md`.
6. Bump `core/version.py` only for a formal release, then update every pinned runtime string until `make version` passes. Historical release notes keep their original versions.
7. Update README, changelog, user guide, audit report, and release notes for user-visible changes.
