Releases: ebullient/ttrpg-convert-cli
Release 2.0.5
🔥 As of 2.0.0, D&D 5e subclasses now use the source of the subclass in the file name. If you are updating from 1.x and use the Templater plugin, you can use a templater script to rename files in your vault before merging with freshly generated content. View the contents of the template before running it, and adjust parameters at the top to match your Vault.
Summary of changes
- af03686 🐛 Fix spell class list (ignore excluded classes)
- ceb0551 🧹✨🐛 Support homebrew sources
- f4bba7e 🐛 Separate 5e and pf2e example config. Fixes #160
- 2550e87 🐛 Format compound entries. Resolves #159
- 4133b65 🐛 Fix class feature progression. Resolves #159
- f88d1e0 📝 Update README.md, create README-WINDOWS.md
Release 2.0.4
🔥 As of 2.0.0, D&D 5e subclasses now use the source of the subclass in the file name. If you are updating from 1.x and use the Templater plugin, you can use a templater script to rename files in your vault before merging with freshly generated content. View the contents of the template before running it, and adjust parameters at the top to match your Vault.
Summary of changes
Release 2.0.3
🔥 As of 2.0.0, D&D 5e subclasses now use the source of the subclass in the file name. If you are updating from 1.x and use the Templater plugin, you can use a templater script to rename files in your vault before merging with freshly generated content. View the contents of the template before running it, and adjust parameters at the top to match your Vault.
Summary of changes
Release 2.0.2
🔥 As of 2.0.0, D&D 5e subclasses now use the source of the subclass in the file name. If you are updating from 1.x and use the Templater plugin, you can use a templater script to rename files in your vault before merging with freshly generated content. View the contents of the template before running it, and adjust parameters at the top to match your Vault.
Summary of changes
Release 2.0.1
🔥 As of 2.0.0, D&D 5e subclasses now use the source of the subclass in the file name. If you are updating from 1.x and use the Templater plugin, you can use a templater script to rename files in your vault before merging with freshly generated content. View the contents of the template before running it, and adjust parameters at the top to match your Vault.
Summary of changes
Release 2.0.0
🔥 File name and path changes, and styles!
-
🔥 A leading slash (
/
) is no longer used at the beginning of compendium and root paths. This should allow you to move these two directories around more easily.- I recommend that you keep the compendium and rules sections together as big balls of mud.
- If you do want to further move files around, do so from within obsidian, so obsidian can update its links.
-
🔥 D&D 5e subclasses now use the source of the subclass in the file name.
If you use the Templater plugin, you can use a templater script to rename files in your vault before merging with freshly generated content. View the contents of the template before running it, and adjust parameters at the top to match your Vault.
-
🎨 CSS styles for D&D 5e and Pathfinder are now available in
examples/css-snippets
. -
📝 Admonitions are also available for import:
Note:
admonitions-5e.json
andother-admonitions.json
use colors from CSS snippets to adjust for light and dark mode.
Summary of changes
- 2233ebb 🎨 ✨ Revised admonition json, css for dnd5e & pf2
- 193a1d9 🐛 Fix pf2e book section naming and behavior in native mode
- 0213994 ⬆️ Java 17
- a5a92f2 🐛 Compensate for unreleased pf2 updates
- 1d32fe3 🐛 windows path matching: fixes and bestiary links
- 620437c 🔥 Remove leading slash for compendium and rules
- 59b2c2a 🔥 Include subclass source in links
- 4607df8 🎨 Use headings in monster descriptions
- b7db1cd 🐛 Fix template caching. I mean it this time.
- 971b7a3 🐛 Fix exclusion of variant rules
- cad3b9f 🎨 🐛 Fix default sources
- fd79b4a 🐛 Fix test error reporting
Contributors
We'd like to thank the following people for their contributions:
Sigrunixia
Release 1.2.0
Summary of changes
- 97f8f37 🐛 Extraneous letter in names table header
- 2fcf744 🐛 Restore spell class/subclass lists; fix subclass index
- 238cedf 🐛 Error handling
- 573676e 🐛 Fix source/page references in notes
- 8f4c360 🐛 Fix subclass links
- ff23e88 🐛 Fix SRD Attunement and Weapon Properties
- d876a47 🐛 Fix template caching
- d1e5a39 🐛 Restore count of written files
- 85f6eea 🐛 Ignore extraneous fields in Legendary Group
- 86b26da Revise readme
Contributors
We'd like to thank the following people for their contributions:
Colin McLear
Release 1.1.2
Summary of changes
- 76f9b88 🎨 Admonition example
- c114b44 🐛 Remove backticks in yaml blocks. Resolves #130
- bed11c8 🐛 Fix prepend w/ blockquote
- a8c09e3 🐛 link resolution and validation
- 0d0f674 ♻️ update 5etools [sub]class feature rendering
- 6470f9e Consolidate approach to parse state, types, and sources
- cc547c2 Add token image to fantasy statblocks
- 62d0e4d 📝 Update README.md
- 8c1dd90 Revise template discussion in README.
- 3aefb0f (maint) fix css snippet links in README
- a4c0175 ✨ Use dice roller in statblocks. Resolves #122
- b8dda0a ♻️ Begin refactor common elements
- 1504971 🐛 5etools: add optional features to class def
- 129f7e0 🎨 Separate CLI / IT test output
- 68b166b 🐛 Qute list syntax issues
- 6717bca 🎨 iterable elements
- a4be845 📝 TTRPG CLI updates; Quarkus platform 3.0.1.Final
- c4885d7 ⬆️ ✨Quarkus 3
- de39cb0 🎨 tweak styles
- d3c1a47 ⬆️ format changes and additional sources
- 3a225e6 🐛 Stringify/Join list of domains in spells
- fdf9944 🚧 Common ObjectMapper init
- 5f8369c 📝 Adjust pf2e callouts .. resolves #95
- a4c88dd 🎨 h3 as top level w/in callouts
Contributors
We'd like to thank the following people for their contributions:
Colin McLear, Steve Axthelm
Release 1.1.1
Summary of changes
- d88d81e 🩹 Fixes.
- 00f37b5 ✨ cards and decks
- 9a778f1 🔨 Pf2eTools CI
- 9e5f72f 🎨 🚧 Fix native mode; generic data blocks
- 8f58a18 🚧 🎨 Damage types, clarify names
- 54a92e1 🚧 Sorted tags
- 03d5e21 🎨🚧 Pf2e items
- d0e3afd 🚧 ✨ Pf2e items (armor, shields, weapons)
- 63763b3 🚧 ✨ Pf2eItems (basics)
- b5cabe3 🐛 Standalone abilities, book references
- beb61de ♻️ Simplify construction with types
- 149ab50 🚧 🚜 Change behavior of ImageRef & some paths
- 557f731 🐛 Fix 5eTools build
- 99c82f0 🚧 🚜 Hazards
- 580820f ✨ Trait links, tags, and sources
- 92c26ec 🚧 ✨ Backgrounds; src tag
- d7999c9 🐛 Fix 5etools build
- 1958f2d ✨ CRB, book test, corrections
- 2d5472f 🚧 🐛 Name hashes; state for page numbers
- 2abc839 🚧 🚜 Messages for file errors; tpl cleanup
- ef2f79d 🚧 🚜 Clean up / fixes
- 29a9ed4 🚧✨ Deities and their avatars
- 390ae76 🚧🎨 Common embedded templates; simplify activity, etc.
- 69f9ac4 ✨🚧 Domains (move list of source files to json)
- 8becffe 🚧 Clarify start/rendering of embedded feat
- 9dd487d ✨🚧 Fix inline ability; refine field value resolution
- 6a0572a ✨🚧 Archetypes, inline feats and references
- 006e4fe 🚧 ✨ Archetypes
- 51ed3cd ✨ 🐛 Level effects; remove traits as tags
- 703393e ✨ 🚧 Afflictions (inline template); tables; traits as links
- b6f9209 🚧 ✨ Pf2e feats
- ed47a67 ✨ 🚧 Pf2e Rituals
- 87acd0d 🐛 Append non-default source to filename fpr pf2e
- 63fc8c4 ✨ 🚧 P2fe Spells!
- 8c7d4db ✨ 🚧 Partial spells
- 05684f6 🚧 ✨ Trait index by category
- 90c2511 ✨ 🚧 Links for conditions
- a5aade6 🚧 📝 Readme, examples
- a702f16 🚧 ✅ ✨ pf2e traits
- 92aefcd ✅ 📝 ✨ Clean up readme. Move example templates to a more obvious place
- ccd0f9d ✅ 🚧 Pf2e actions, rules vs compendium, templates..
- 37b7584 Update README.md
- 0e857f3 ✨ 🔥 More than 5etools...
- b941add 🚧 ✨ Actions and glyphs
- b1a88c1 ✨🚧 Skills/Actions for Pf2e
- a92d807 ♻️ 🚧 Split templates by datasource
- 7bc920e ♻️ Move srd check
- c756bbf 🚧 Begin work on pf2e text parse
- e87e696 ✅ ♻️ System configuration (global/system config)
- 9658c3d ✅ ♻️ Rename 5etools JsonIndex
- 171bfd3 ♻️ ✅ Consolidate compendium sources
- 602fb46 ✅ ♻️ Restructure templates; Rename IndexTypes
- 545c343 ✅ ♻️ Move CompendiumSources, QuteBase, IndexType
- a5011fc ✅ ♻️ Restructure config; back to all tests passing
- 0f41350 ♻️ rename 5etools package
- 4e2b772 ♻️ Rename CLI class
- 5f2f484 ♻️ package rename
- aa9d93e 🎨 CSS: statblock in Initiative Tracker creature view
Release 1.1.0
New feature: Images for backgrounds, items, monsters, races, and spells
The conversion tool downloads fluff images into img
directories within each type, e.g. backgrounds/img
or bestiary/aberration/img
. These images are unordered, and are not referenced in entry text. Templates must be modified to include them.
To display all images, you can do something like this:
{#each resource.fluffImages}![{it.caption}]({it.path})
{/each}
Note that the line above ends with two spaces, which serves as a line break when you have strict line endings enabled. You may need something a little different to get things to wrap the way you want in the case that there are multiple images (which is infrequent for these types).
You can also use two separate blocks, such that the first image is used at the top of the document, and any others are included later:
{#if resource.fluffImages && resource.fluffImages.0 }
![{resource.fluffImages.0.caption}]({resource.fluffImages.0.path}#right)
{/if}
...
{#each resource.fluffImages}{#if it_index != 0}![{it.caption}]({it.path}#center)
{/if}{/each}
Notice the #right
and #center
anchor tags in the example above. The following CSS snippet defines formatting for two anchor tags: #right
(which will float the image to the right) and #center
(which will display the image as a centered block).
.json5e-background div[src$="#center"],
.json5e-item div[src$="#center"],
.json5e-monster div[src$="#center"],
.json5e-race div[src$="#center"],
.json5e-spell div[src$="#center"] {
text-align: center;
}
.json5e-background div[src$="#center"] img,
.json5e-item div[src$="#center"] img,
.json5e-monster div[src$="#center"] img,
.json5e-race div[src$="#center"] img,
.json5e-spell div[src$="#center"] img {
height: 300px;
}
.json5e-background div[src$="#right"],
.json5e-item div[src$="#right"],
.json5e-monster div[src$="#right"],
.json5e-race div[src$="#right"],
.json5e-spell div[src$="#right"] {
float: right;
margin-left: 5px;
}
.json5e-background div[src$="#right"] img,
.json5e-item div[src$="#right"] img,
.json5e-monster div[src$="#right"] img,
.json5e-race div[src$="#right"] img,
.json5e-spell div[src$="#right"] img {
height: 300px;
}
.rendered-widget .admonition-statblock-parent,
.markdown-rendered .admonition-statblock-parent,
.markdown-preview-section .admonition-statblock-parent {
clear: both;
}
Notes:
- I recommend constraining the image height (rather than the width) in your CSS snippet for images.
- The above snippet also adds a
clear
setting to the admonition parent. Some text descriptions are shorter than the constrained image height. Settingclear: both
onadmonition-parent
ensures that images floated to the right do not impact thestatblock
display. - This configuration is in the compendium.css snippet.
- There is an example for each type in the templates directory directory. Relevant file names start with
images-
.
Summary of changes
- 8881e5f 🐛 Include subclass features. Resolves #79
- b746c9c 🎨 Image template heading whitespace
- 1cdc95d 🐛 Resolve template paths (no shell expansion)
- 7d49006 ✨ Fluff images for items, races, backgrounds, spells, and monsters
- 03e8a6f ⬆️ diceType -> diceExpression for names tables
- 5d9ea7e ♻️ replace deprecated with method
- ba7b435 ♻️ default images() method