Skip to main content

Python web book docgen for Patchouli and Hex Casting.

Reason this release was yanked:

Outdated, use hexdoc 1!0.1.x and hexdoc-hexcasting instead.

Project description

hexdoc

This is the Python docgen for Hex Casting.

Version scheme

We use hatch-gradle-version to generate the version number based on whichever mod version the docgen was built with.

The version is in this format: mod-version.python-version.mod-pre.python-dev.python-post

For example:

  • Mod version: 0.11.1-7
  • Python package version: 1.0.dev0
  • Full version: 0.11.1.1.0rc7.dev0

Creating a plugin / addon

WIP.

  • Run these commands, then follow the prompts:
    pip install cookiecutter
    cookiecutter gh:object-Object/HexMod --directory doc
    
    • Note: if you run this from within an existing mod repo, add the flag -f and leave output_directory blank.
  • Fill in the TODOs in doc/properties.toml (mostly paths to files/folders in your mod so hexdoc can find the data it needs).
  • Try running the docgen locally by following the instructions in doc/README.md.
  • If it doesn't already exist, create an empty gh-pages branch and push it.
  • On GitHub, under Settings > Pages, set the source to Deploy from a branch, the branch to gh-pages, and the folder to docs/.
  • Commit and push the docgen, and see if the CI works.
  • On GitHub, under Settings > Environments, create two new environments called pypi and testpypi.
  • Follow these instructions for PyPI and TestPyPI: https://docs.pypi.org/trusted-publishers/creating-a-project-through-oidc/
    • TestPyPI is a duplicate of PyPI which can be used for testing package publishing without affecting the real index. The CI workflow includes a manual execution option to publish to TestPyPI.

Setup

python -m venv venv

.\venv\Scripts\activate  # Windows
source venv/bin/activate # anything other than Windows

# run from the repo root, not doc/
pip install -e .[dev]

Usage

# run from the repo root, not doc/
hexdoc ./doc/properties.toml -o _site/src/docs
hexdoc_merge --src _site/src/docs --dst _site/dst/docs

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-0.11.1.1.0rc7.dev12.tar.gz (224.7 kB view details)

Uploaded Source

Built Distribution

hexdoc-0.11.1.1.0rc7.dev12-py3-none-any.whl (327.7 kB view details)

Uploaded Python 3

File details

Details for the file hexdoc-0.11.1.1.0rc7.dev12.tar.gz.

File metadata

  • Download URL: hexdoc-0.11.1.1.0rc7.dev12.tar.gz
  • Upload date:
  • Size: 224.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for hexdoc-0.11.1.1.0rc7.dev12.tar.gz
Algorithm Hash digest
SHA256 7f1fc6efa9b38b8285bbd51f5be348cd8ee1ce35f51c315d4121b99705ee58aa
MD5 4070ff572cf7491cf3ca9eef1866a103
BLAKE2b-256 ae481826f0be01958101da523cf3a4bf205d307bb42ce410318ee01a1491b1b0

See more details on using hashes here.

File details

Details for the file hexdoc-0.11.1.1.0rc7.dev12-py3-none-any.whl.

File metadata

File hashes

Hashes for hexdoc-0.11.1.1.0rc7.dev12-py3-none-any.whl
Algorithm Hash digest
SHA256 f2fab051837727a5650580d327b2a98648c25ef77bde530936232a0de18810e4
MD5 085744cf936f41f2f14ed509a9fb02c1
BLAKE2b-256 294fce00f5ac55a53547a16b973364b017eadd2c8fa2e3f3d42253aeca0d86c3

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