Víctor Losada Hernández
ea4dd5defd
Merge branch 'master' of https://github.com/naturalcrit/homebrewery into SnippetsReorg
2025-03-24 13:07:16 +01:00
Murdo B. Maclachlan
477f706eb9
Fix formatting inconsistencies in 5ePHB monster stat block
...
Closes #4073 . Fixes minor formatting inconsistencies in the monster stat block between the 5ePHB theme and actual 5e manuals.
2025-03-05 13:01:31 +00:00
Trevor Buckner
63675a46e0
Lint more things
2024-09-16 01:42:21 -04:00
Trevor Buckner
5c906ee722
Logic rewrite
...
Realized we don't need to build a whole descendency tree of all the headers. We can just track the current indendation level and what headers are at each indent. This removes about 1/4 of the code, and lets us put all of the exit conditions (no title, no showPage, ToCExclude) in one place to easily see what is being excluded and what not.
2024-09-09 23:16:56 -04:00
David Bolack
3b4dd7dd61
Merge branch 'actualPageNumber' of github.com:dbolack-ab/homebrewery into actualPageNumber
2024-09-08 15:27:43 -05:00
David Bolack
4bc957159d
Move a couple of variables back out of the global space because that was bad.
2024-09-08 15:23:03 -05:00
Trevor Buckner
7881d4b4a2
Small logic cleanup and renaming
2024-09-08 16:22:58 -04:00
David Bolack
758c2799a1
That was the wrong way. Lets try this ugly fix.
2024-09-07 20:40:29 -05:00
David Bolack
b0dffc6df1
Drop empty entries
2024-09-07 20:35:43 -05:00
David Bolack
6ea724bb16
Start skipping .skipCount in ToC
2024-09-07 20:30:16 -05:00
David Bolack
b58688bd62
Stop comparing lengths, dude.
2024-09-07 20:19:56 -05:00
David Bolack
0f8461ced6
Not a collection.
2024-09-07 20:16:16 -05:00
David Bolack
3b0028da69
Move some of thos variables back.
2024-09-07 20:12:05 -05:00
David Bolack
049b64cd41
Remove unneeded variable
2024-09-07 19:54:52 -05:00
David Bolack
dcc7a22272
First pass at code fixes.
...
Move functions out of function
Use querySelector instead of querySelectorAll
Flip skip and reset counter order.
2024-09-07 19:47:16 -05:00
David Bolack
fd5ff2c61a
Relocate more general purposes snippets from 5ePHB to Blank
...
Should include all supporting style content.
2024-08-23 14:04:04 -05:00
David Bolack
51f758bf47
Rework page counters for skipping and resets.
...
Solves #513
This adds the .skipCounting and .resetCounting classes for causing
a page number to not be incremented or to reset the number at 1.
The ToC Snippet is corrected to match the displayed page numbers
while correctly tracking the page ids.
2024-08-15 17:15:49 -05:00
G.Ambatte
f830104531
Use textContent instead of innerText
2024-07-17 13:59:00 +12:00
G.Ambatte
7c60fbe655
Remove page + 1 from ToC generator snippet
2024-07-02 20:46:01 +12:00
David Bolack
fbe65a4e93
Resolve indentation errors in TOC Generation, adjust partCover class
...
This fixes an error in the recusion that was failing to add children under existing parents.
Index generation now does not overindent when levels are skipped.
PartCover less code as suggesred by CC.
2024-06-01 00:32:25 -05:00
David Bolack
7cef4316d7
Flag Table of Contents as "Experimental"
2024-05-22 21:04:32 -05:00
David Bolack
b496ef3597
Remove completely redundant checks for class based exclusion from ToC Snippet
2024-05-22 16:34:00 -05:00
David Bolack
3ae5d4c1e3
Slight reworking of style naming for Table of Contents
...
Also uses :is operator for cleaner? looking CSS
Lastly, removes {{partCover}} from automatic exclusion.
2024-05-22 16:30:12 -05:00
David Bolack
af82d71e4f
Merge branch 'master' into issue_2994_css_style
2024-05-22 11:52:43 -05:00
David Bolack
1773e77cb9
Fix missed issues with converting to delightfully recursive function
2024-05-22 11:47:12 -05:00
Trevor Buckner
e62e185214
Lint a bunch of things
2024-05-21 17:32:17 -04:00
David Bolack
511c9ffada
Merge branch 'master' into issue_2994_css_style
2024-05-20 14:51:19 -05:00
David Bolack
90ce48b170
Adapt Recursive Toc function from 3254
2024-04-20 21:46:32 -05:00
David Bolack
448af683a0
Merge branch 'master' into issue_2994_css_style
2024-04-20 21:36:42 -05:00
Murdo B. Maclachlan
30d2a03fd0
Added proficiency bonus to monster statblocks
2024-04-12 11:19:48 +01:00
Trevor Buckner
97fba241a1
Undo linting on unrelated pages
2024-04-04 17:37:52 -04:00
Trevor Buckner
d0fbca7af5
Undo linting on unrelated files.
2024-04-04 17:36:06 -04:00
Víctor Losada Hernández
8a15172db1
pull from master and suggested fixes
2024-04-02 14:09:53 +02:00
Víctor Losada Hernández
aae574e4e5
Merge branch 'master' of https://github.com/naturalcrit/homebrewery into small-fixes,-snippet-uniformity
2024-04-02 13:56:21 +02:00
David Bolack
733b929940
Integrate code recursion from 3254.
2024-03-25 19:36:30 -05:00
David Bolack
9d3f7fe556
Fix H3-H6 entries in ToC generation
2024-03-25 18:58:29 -05:00
David Bolack
40d0e7e90e
Trim space off of ToC entries.
2024-03-25 16:32:03 -05:00
David Bolack
7ca10ff5a4
Add requested additions to code
...
Add snippet additions to handle Add h4, Add h4-h5, add h4-h6
Add collection of headers h4-h6 and rendering of h4 to h6.
2024-03-25 16:13:07 -05:00
dbolack
1705e66be2
Corrections per PR
...
Remove off by one error realted to change in page number detection.
Dewrap quotes from exclude screen.
2024-03-23 18:57:53 -05:00
dbolack
591278862a
Merge branch 'master' into issue_2994_css_style
2024-03-23 18:52:33 -05:00
Rodrigo Kuerten
6eecd9cee4
Updated Table of Contents snippet
2024-03-06 13:46:13 -03:00
Víctor Losada Hernández
453656fbeb
Merge branch 'master' into small-fixes,-snippet-uniformity
2024-02-23 18:53:56 +01:00
David Bolack
85caf0a892
Add fixes to account for no page numbers
...
Clear out manual toggles.
2024-01-29 20:14:52 -06:00
David Bolack
622827efda
Fix Exclusion examination
2024-01-20 20:47:27 -06:00
David Bolack
854c21639a
CSS based ToC exclusion system
...
either I am building the lookup incorrectly or Chrome is not letting me
see variables via computedStyles.
2024-01-20 11:58:17 -06:00
Víctor Losada Hernández
4424a331d5
first commit
2024-01-16 18:38:38 +01:00
Trevor Buckner
2125b8a026
Small tweaks
2023-09-14 16:44:59 -04:00
Víctor Losada Hernández
dc3243ae59
back cover should not create a page after itself
2023-08-11 15:08:49 +02:00
Víctor Losada Hernández
b3497e14f1
remove italics
2023-08-08 19:15:19 +02:00
Víctor Losada Hernández
d6e0047d4e
Merge branch 'master' of https://github.com/naturalcrit/homebrewery into quote-snippet
2023-08-08 19:12:34 +02:00