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.

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).

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.10.tar.gz (6.0 MB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for mkdocs_torillic-2.3.10.tar.gz
Algorithm Hash digest
SHA256 c6eef139134582cdda2f0e44c4242c009641f0d0369f5ab8215d55a323409524
MD5 a38bb62965cfb31c01c7fb37adb007a0
BLAKE2b-256 aa068192248060e254651e71a13513d0e445ddba260d5d9a862d23635a1a29c2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mkdocs_torillic-2.3.10-py3-none-any.whl
Algorithm Hash digest
SHA256 b005abf14535785c8e9e5aa7b83c90bd66a129b7aa2a4595dcba0bd22c2f46ff
MD5 d333b5b0ca96ee013d839bd0702db24a
BLAKE2b-256 650b6e666a005dd13d6fc156f781f17066fbd1a430365f754ec3728c8ff69ad7

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