diff --git a/themes/V3/5ePHB/snippets.js b/themes/V3/5ePHB/snippets.js index cb6f1114f..dba4ad8d5 100644 --- a/themes/V3/5ePHB/snippets.js +++ b/themes/V3/5ePHB/snippets.js @@ -7,6 +7,7 @@ const scriptGen = require('./snippets/script.gen.js'); const ClassFeatureGen = require('./snippets/classfeature.gen.js'); const CoverPageGen = require('./snippets/coverpage.gen.js'); const TableOfContentsGen = require('./snippets/tableOfContents.gen.js'); +const indexGen = require('./snippets/index.gen.js'); const dedent = require('dedent-tabs').default; @@ -32,6 +33,12 @@ module.exports = [ name : 'Table of Contents', icon : 'fas fa-book', gen : TableOfContentsGen + }, + { + name : 'Index', + icon : 'fas fa-bars', + gen : indexGen, + experimental : true } ] }, @@ -188,9 +195,9 @@ module.exports = [ experimental : true }, { - name : 'Back Cover Page', - icon : 'fac book-back-cover', - gen : CoverPageGen.back, + name : 'Back Cover Page', + icon : 'fac book-back-cover', + gen : CoverPageGen.back, experimental : true }, { @@ -209,7 +216,7 @@ module.exports = [ }} \n`; }, - }, + } ] }, diff --git a/themes/V3/5ePHB/snippets/index.gen.js b/themes/V3/5ePHB/snippets/index.gen.js new file mode 100644 index 000000000..8de5df14c --- /dev/null +++ b/themes/V3/5ePHB/snippets/index.gen.js @@ -0,0 +1,85 @@ +const dedent = require('dedent-tabs').default; + +module.exports = ()=>{ + return dedent` + {{index,wide,columns:5; + ##### Index + - Ankhesh-Bort + - city map, 7 + - city watch, 12 + - guilds, 19 + - Cheese + - types of cheese, 8 + - cheese-related magic, 14 + - cheese-related quests, 26-27 + - Death + - appearance, 10 + - personality, 13 + - hobbies, 23 + - Elves + - types of elves, 15 + - elvish magic, 24 + - elvish curses, 28 + - Footnotes + - types of footnotes, 16-17 + - footnote rules, 20-21 + - footnote humor, 29-30 + - Gods + - types of gods, 12 + - godly interventions, 25 + - godly conflicts, 31 + - Heroes + - class features, 11-12 + - heroic deeds, 26-27 + - Inns + - types of inns, 9 + - inn amenities, 18 + - Jokes + - types of jokes, 11-12 + - joke delivery, 25 + - Knives + - types of knives, 16-17 + - knife skills, 22-23 + - knife fights, 28-29 + - Luggage + - appearance, 10 + - personality, 13 + - abilities, 23 + - Magic + - types of magic, 15 + - magic rules, 24 + - magic mishaps, 28 + - Socks + - types of socks, 9 + - sock-related magic (yes, really), 15 + - sock-related quests (no, really), 26 + - Trolls + - appearance and biology, 11 + - culture and language, 18 + - troll rights and activism, 31 + - Unknown University + - history and architecture, 12 + - faculty and staff, 20 + - courses and exams, 33 + - Vampires + - types and origins, 13 + - vampiric powers and weaknesses, 21 + - vampiric etiquette and politics, 34 + - Witches + - types and traditions, 14 + - witchcraft and headology, 22 + - witch trials and tribulations, 35 + - Xylophones + - musical instruments or weapons?, 15 + - xylophone-related magic and lore, 23 + - xylophone-related quests and puzzles, 36 + - Yetis + - appearance and behavior, 16 + - yeti philosophy and religion, 24 + - yeti encounters and stories, 37 + - Zombies + - types and causes, 17 + - zombie rights and duties, 25 + - zombie survival and prevention, 38 + }}`; +}; \ No newline at end of file diff --git a/themes/V3/5ePHB/style.less b/themes/V3/5ePHB/style.less index b862690c7..c6e87c40a 100644 --- a/themes/V3/5ePHB/style.less +++ b/themes/V3/5ePHB/style.less @@ -1106,3 +1106,26 @@ break-inside : avoid; } } } +//***************************** +// * INDEX +// *****************************/ +.page { + .index { + font-size : 0.218cm; + + ul ul { + margin : 0; + } + + ul { + padding-left : 0; + text-indent : 0; + list-style-type : none; + } + + & > ul > li { + text-indent : -1.5em; + padding-left : 1.5em; + } + } +}