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 sitelocal
: Include a local contents block, i.e. one which describes the current page's children / siblingsnone
: 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
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
Built Distribution
File details
Details for the file mkdocs_torillic-2.3.11.tar.gz
.
File metadata
- Download URL: mkdocs_torillic-2.3.11.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc07d2c27803fc7c64b08ee8026147426c3b7602b043d5a2055e025e38fa547d |
|
MD5 | 2f7f3ebfee34ef14d0fcc96588cea292 |
|
BLAKE2b-256 | ff084ab177609b5a57eb4928a516a3b1cf954fe5137551803a59907976319222 |
File details
Details for the file mkdocs_torillic-2.3.11-py3-none-any.whl
.
File metadata
- Download URL: mkdocs_torillic-2.3.11-py3-none-any.whl
- Upload date:
- Size: 6.0 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89cf41fb15a5707edf783cf234dad568017e54ce5813fb6fa72b0a49c3394aa9 |
|
MD5 | 39645d23fb1f64b6c42816d9eaa8583e |
|
BLAKE2b-256 | bc341718b4481b3b01f9919fdc61d51bec22459ba27d39bbdea1bc0d728e7979 |