I write notes of random topics and I wanted to keep them online for easy access. However, I hate writing HTML.
notes2html transforms my notes to basic HTML. The workflow is just writing and pushing a note. After this, a git hook triggers a notes2html job that builds the notes and synchronizes it to http://guif.re
Run with Python 3 and pass the source notes directory plus the destination HTML directory:
python3 notes2html.py path/to/notes path/to/htmlThe converter recursively finds .txt files under the source directory and writes matching .html files under the destination directory.
Run the unit tests with:
python3 -m unittest discoverTo generate coverage locally:
python3 -m coverage run -m unittest discover
python3 -m coverage htmlOptional development tools are configured in pyproject.toml. After installing the dev dependencies, run:
python3 -m tox
python3 -m ruff check .
python3 -m ruff format .GitHub Actions runs Ruff, syntax-warning checks, and the unit test suite on Python 3.10, 3.11, 3.12, and 3.13.
*Document title*
Title one
paragraph one *bold*
*start of code
end of code*
#image#