Releases: TEParsons/torillic
2.2.0
Torillic: A Typora theme which styles your editor to look like the official Dungeons & Dragons 5e content books.
Being a bit cheeky and doing another minor release just a week after the last! I considered making this a bug fix release (2.1.1) but I've added mkdocs support which is definitely a feature so it seemed dishonest not to make it a minor release.
Changes
Full Changelog: v2.1.0...2.1.1
Fixes
Improvements
Features
Other
sphinx
andmkdocs
implementations are now on PyPi, so you don't have to do an editable install from local anymore.- If I've got my CLI code right, these should automatically update whenever I do a release on this repo! 🤞
To install
General HTML
Download an extract base.zip, copy it to your HTML project, then either import it in your .css file:
@import url("path/to/extracted/folder/torillic.css")
Or link it in your .html file:
<link rel="stylesheet" href="path/to/extracted/folder/torillic.css" />
Typora
Download and extract typora.zip, then copy the extracted files to your Typora theme directory.
Sphinx
Install the plugin package from PyPi:
pip install sphinx-torillic
Then, in your Sphinx project's conf.py
file, add:
extensions = [
# whatever other extensions you're using...
"sphinx_torillic",
]
html_theme = "sphinx_torillic"
MkDocs
Install the plugin package from PyPi:
pip install mkdocs-torillic
Then, in your MkDocs project's mkdocs.yaml
file, add:
theme:
name: torillic
v2.1.0
Torillic: A Typora theme which styles your editor to look like the official Dungeons & Dragons 5e content books.
Fixes
- Now avoids breaking after a line in italics if it's immediately below a heading, to avoid e.g. a column ending with a name and their race/alignment/pronouns, with their image/bio on the next column
Enhancements
- Torillic has crossed the platform divide! I've moved the core stuff to a generic CSS file which you can use in any HTML project, all the Typora specific stuff is now in a Typora specific folder.
- I've also added a Python package for sphinx as I'm familiar with it (being a Python dev). Please do feel free to put in a pull request with implementations for other systems!
- Torillic now comes packaged with some 16x16px images of D&D coins (copper, silver, electrum, gold), so you can easily add inline coin icons like so:
This item costs ![](silver) 2 ![](copper) 3
or, in HTML...
<p>This item costs <img src="silver" /> 2 <img src="copper" /> 3</p>
- If you want to force a column / page break, I've added some classes for doing so (
.break-column-before
,.break-page-before
,.break-column-after
and.break-page-after
), you can also use an empty h1 for a page break and and empty h3 for a column break (this works in Typora!)
To install
General HTML
Download an extract base.zip
, copy it to your HTML project, then either import it in your .css
file:
@import url("path/to/extracted/folder/torillic.css")
Or link it in your .html
file:
<link rel="stylesheet" href="path/to/extracted/folder/torillic.css" />
Typora
Download and extract typora.zip
, then copy the extracted files to your Typora theme directory.
Sphinx
Download and extract sphinx.zip
, then install it as an "editable" using pip:
pip install -e "path/to/extracted/folder"
Then, in your Sphinx project's conf.py
file, add:
extensions = [
# whatever other extensions you're using...
"sphinx_torillic",
]
html_theme = "sphinx_torillic"
Full Changelog: v2.0.3...v2.1.0
v2.0.3
Torillic: A Typora theme which styles your editor to look like the official Dungeons & Dragons 5e content books.
Fixes:
- Account for Typora-isms so Torillic works in regular HTML
- Prevent page break after heading
Enhancements:
- Replace hr page breaking with blank h1
- Use single column if exporting to A5
To install, download and extract the attached zip file, and copy the extracted files to your Typora theme directory.
v2.0.2
Torillic: A Typora theme which styles your editor to look like the official Dungeons & Dragons 5e content books.
Fixes:
- fix: Gave search bar a background so it remains readable against the wood background
- fix: Fixed weird z-index stuff which was making the right-click menu appear below the sidebar
Enhancements:
- docs: Added CONTRIBUTING.md, with guidance on commit convention
To install, download and extract the attached zip file, and copy the extracted files to your Typora theme directory.
v2.0.1
Torillic: A Typora theme which styles your editor to look like the official Dungeons & Dragons 5e content books.
Fixes:
- Made background for code fences green
- Finally figured out why PDF exports were coming up blank and fixed it (fixes #6, #8 and #10)
To install, download and extract the attached zip file, and copy the extracted files to your Typora theme directory.
v2.0
Torillic: A Typora theme which styles your editor to look like the official Dungeons & Dragons 5e content books.
v2.0 is a total rework from the ground up, trying to keep roughly the same look but with substantially more polish.
To install, download and extract the attached zip file, and copy the extracted files to your Typora theme directory.