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.
    • If you like to live dangerously, this step is optional - you can remove the publish-testpypi job and the TestPyPI release choice from your workflow without impacting the rest of the CI.

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

For local testing, create a file called .env following this template:

GITHUB_REPOSITORY=gamma-delta/HexMod
GITHUB_SHA=main
GITHUB_PAGES_URL=https://gamma-delta.github.io/HexMod

Then run these commands to generate the book:

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

Or, run this command to render the book and start a local web server:

hexdoc serve doc/properties.toml --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.dev19.tar.gz (131.1 kB view details)

Uploaded Source

Built Distribution

hexdoc-0.11.1.1.0rc7.dev19-py3-none-any.whl (231.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for hexdoc-0.11.1.1.0rc7.dev19.tar.gz
Algorithm Hash digest
SHA256 fdac56ab319c8349a5fd06eafa147ca07586d038024bc5e057e3914e141a4191
MD5 d75d46d5a9e86c4770727ae48081e18a
BLAKE2b-256 79f7a0dc4b3110abdc836767bc14243eebc1d9463fe1eb7a9c09c0a8c4a65e5c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hexdoc-0.11.1.1.0rc7.dev19-py3-none-any.whl
Algorithm Hash digest
SHA256 57499c95ab9b4ca48c11c587986c269f6d301ffadc49adcf041d03a0d162f986
MD5 b9d77724628485250abc400fdc53deee
BLAKE2b-256 dc20d00c792ca00f8b4689843d56baac4c71fea325287ffee1550aaa6324c5fb

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