Skip to main content

Implementation of the Torillic theme for mkdocs. Convert your markdown TTRPG notes into beautiful HTML!

Project description

Torillic

Magic is distilled laziness

This theme, named after the fantasy setting of Dungeons & Dragons, is designed with tabletop RPG players in mind. The theme allows beautiful HTML exports designed to look like a professionally made tabletop resource, whilst remaining easy to edit in code view and in small windows, thanks to CSS media queries.

Installing

The easiest way to install mkdocs-torillic is via PyPi - in a command line terminal with pip installed, just run:

pip install mkdocs-torillic

Alternatively, you can clone/download this repo and either store it in your Python path or use pip install <path to your local folder>. If you do so, just remember to use the last-release branch rather than main - the base theme is copied over from here when a release is built, so in the main (development) branch there's just a file called torillic.stub in its place.

Theme configuration

Torillic accepts the following theme configuration options in the mkdocs.yaml file:

background_image

Supply either a file path or a web link to an image to use for the site's background. If not supplied, will use the defaut Torillic background (wood planks).

extra.toc_heading

Can be set to change the title of all content blocks. Default: Contents

Page configuration

Torillic accepts the following configuration options from an individual page's yaml frontmatter:

contents

Whether to include a contents block and, if so, what kind. Options are:

  • global: Include a "global" contents block, i.e. one which describes the entire site
  • local: Include a local contents block, i.e. one which describes the current page's children / siblings
  • none: Do not include a contents block

If not supplied, the site homepage will have global contents block and section home pages will have a local contents block, other pages will not include a contents block.

Tips & Tricks

  • Using > blockquotes will create a green box like the ones used in 5e stat blocks
  • In full page view, content is arranged into two columns - however, # heading 1 and # heading 2 elements span both columns so can be used as separators. A blank top-level heading will still split the page.
  • The heading with a yellow line underneath (you know the one) is #### heading 4
  • Actions in 5e stat blocks are generally formatted like so:
***Name.*** *Attack Type:* +[modifier] to hit, reach [reach] ft., [n targets] target(s). *Hit:* [approx damage] ([n dice]d[die size] + [additional]) [damage type] damage.
  • For an example of a full stat sheet in Torillic, check out the markdown below the screenshots.
  • Ultimately, it's yours to play with, so feel free to completely ignore this advice and lay things out however works for your campaign!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mkdocs_torillic-2.3.14.tar.gz (6.0 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mkdocs_torillic-2.3.14-py3-none-any.whl (6.0 MB view details)

Uploaded Python 3

File details

Details for the file mkdocs_torillic-2.3.14.tar.gz.

File metadata

  • Download URL: mkdocs_torillic-2.3.14.tar.gz
  • Upload date:
  • Size: 6.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for mkdocs_torillic-2.3.14.tar.gz
Algorithm Hash digest
SHA256 a40c3d40e61f1e340a7dbce9b6db6d7db4f8a86954a569b3a1ebfc5c56279479
MD5 5cded3daef34590f1ecd8d51234c8b64
BLAKE2b-256 c01c37de9b1ab3de30c3d464ffed4b4f849a7bee47c146e707b1d09dea6b8617

See more details on using hashes here.

Provenance

The following attestation bundles were made for mkdocs_torillic-2.3.14.tar.gz:

Publisher: build.yml on TEParsons/mkdocs-torillic

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mkdocs_torillic-2.3.14-py3-none-any.whl.

File metadata

File hashes

Hashes for mkdocs_torillic-2.3.14-py3-none-any.whl
Algorithm Hash digest
SHA256 7da3e5ddbd757e5d479c23b39ceb4f88d38668204d5bd0b5e1f2c62549d705aa
MD5 3f636cf6eb2e71fad3e72d1da43987bd
BLAKE2b-256 152d9d0fa3be7ff4a6a4ae8dc62fe12c892408da1801c8a53f9a26e492b496bc

See more details on using hashes here.

Provenance

The following attestation bundles were made for mkdocs_torillic-2.3.14-py3-none-any.whl:

Publisher: build.yml on TEParsons/mkdocs-torillic

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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