Python web book docgen for Patchouli and Hex Casting.
Project description
hexdoc
A Jinja-based documentation generator for Patchouli books.
This is the library that powers Hex Casting's web book.
Plugins
See hexdoc-hexcasting-template for instructions to set up a hexdoc plugin for a pre-existing Hex Casting addon.
Contributing
Setup
git submodule update --init
python3.11 -m venv venv
.\venv\Scripts\activate # Windows
. venv/bin/activate.fish # fish
source venv/bin/activate # everything else
pip install -e .[dev]
pre-commit install
Usage
For local testing, create a file called .env
in the repo root following this template:
GITHUB_SHA=main
GITHUB_REPOSITORY=hexdoc-dev/hexdoc
GITHUB_PAGES_URL=https://hexdoc.hexxy.media
Useful commands:
# show help
hexdoc -h
# render and serve the web book in watch mode
nodemon
# render and serve the web book
hexdoc serve
# export, render, and merge the web book
hexdoc export
hexdoc render
hexdoc merge
# start the Python interpreter with some extra local variables
hexdoc repl
# run tests
pytest # fast, skips Cookiecutter
nox # slow, full test suite in an isolated venv
nox --no-install # after the first Nox run, use this to skip reinstalling everything
# update test snapshots
nox -- --snapshot-update
# run hexdoc commands in an isolated environment to ensure it works on its own
nox -s hexdoc -- export
nox -s hexdoc -- repl
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
hexdoc-1!0.1.0.dev6.tar.gz
(94.1 kB
view details)
Built Distribution
hexdoc-1!0.1.0.dev6-py3-none-any.whl
(136.4 kB
view details)
File details
Details for the file hexdoc-1!0.1.0.dev6.tar.gz
.
File metadata
- Download URL: hexdoc-1!0.1.0.dev6.tar.gz
- Upload date:
- Size: 94.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91ae2b8fac8ef8d79ee97cb187be56eb325d3b423d67ed1fec4a47d4338633fe |
|
MD5 | 44108dec122f6d2d44ed154a43dc1063 |
|
BLAKE2b-256 | b95555796cb4ae3660eabc3969753634717aa0f4168e142bd2214c74c4402c81 |
File details
Details for the file hexdoc-1!0.1.0.dev6-py3-none-any.whl
.
File metadata
- Download URL: hexdoc-1!0.1.0.dev6-py3-none-any.whl
- Upload date:
- Size: 136.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 24465015fb98ac13bfadbc866ddd4c9e1bbfc9745a0347f0350dabd552de4dec |
|
MD5 | dd4adfe59588c0225b4b355f5cfd0291 |
|
BLAKE2b-256 | 153742e1164ee2fb66426fd70f79cb552b66d2b63dec077613c5fbdbc937404a |