Skip to main content

Python web book docgen for Patchouli and Hex Casting.

Project description

hexdoc logo

Docs - hexdoc.hexxy.media PyPI - Version PyPI - Python Version GitHub Workflow Status (with event)

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.0a3.tar.gz (95.5 kB view details)

Uploaded Source

Built Distribution

hexdoc-1!0.1.0a3-py3-none-any.whl (138.1 kB view details)

Uploaded Python 3

File details

Details for the file hexdoc-1!0.1.0a3.tar.gz.

File metadata

  • Download URL: hexdoc-1!0.1.0a3.tar.gz
  • Upload date:
  • Size: 95.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for hexdoc-1!0.1.0a3.tar.gz
Algorithm Hash digest
SHA256 1cce1d855902ba9c419dbbb787ff0f3ed78b6c255ecba5459bb0299486da23e5
MD5 e2f530cf54051592a65014eb3c4cfcba
BLAKE2b-256 45873e648edf5049bd3565effa011f0f551798cefee155f7b3fdd1fe1cb175c7

See more details on using hashes here.

File details

Details for the file hexdoc-1!0.1.0a3-py3-none-any.whl.

File metadata

  • Download URL: hexdoc-1!0.1.0a3-py3-none-any.whl
  • Upload date:
  • Size: 138.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for hexdoc-1!0.1.0a3-py3-none-any.whl
Algorithm Hash digest
SHA256 95648c7b8bfc83a92620483bb5fd64e31c62c3093520ab1caf2ccaa4dfef3c05
MD5 1d685b7c487cddcd9e04a0569a7b4cf8
BLAKE2b-256 0ab61b0eafe035f5e3a170a9e62d85e124f98409e569b0cdb4e52bfe60b98689

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page