0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-07 20:42:44 +00:00

Update Menus and standardize CSS Names

Update addh4, addh5, addh6 class names to addToCH4, addToCH5, addToCH6
Update menu items for Table of contents with better labels and addToC
This commit is contained in:
David Bolack
2024-04-20 21:53:02 -05:00
parent 9426c6acd9
commit 2a148cb138
2 changed files with 16 additions and 9 deletions

View File

@@ -31,23 +31,30 @@ module.exports = [
gen : TableOfContentsGen, gen : TableOfContentsGen,
}, },
{ {
name : 'Include H4', name : 'Include up to H4',
icon : 'fas fa-dice-four', icon : 'fas fa-dice-four',
gen : dedent `{{tocH4 gen : dedent `{{addToCH4
}}`, }}`,
}, },
{ {
name : 'Include H4, H5', name : 'Include up to H5',
icon : 'fas fa-dice-five', icon : 'fas fa-dice-five',
gen : dedent `{{tocH5 gen : dedent `{{addToCH5
}}`, }}`,
}, },
{ {
name : 'Include H4-H6', name : 'Include up to H6',
icon : 'fas fa-dice-six', icon : 'fas fa-dice-six',
gen : dedent `{{tocH6 gen : dedent `{{addToCH6
}}`, }}`,
}, },
{
name : 'Include in ToC',
icon : 'fas fa-dice-six',
gen : dedent `{{addToC
}}`,
}
] ]
}, },
{ {

View File

@@ -802,14 +802,14 @@ h6,
.noToC, .noToC,
.toc { --TOC: exclude; } .toc { --TOC: exclude; }
.tocH4 { .addToCH4 {
h4 { --TOC: include; } h4 { --TOC: include; }
} }
.tocH5 { .addToCH5 {
h4 { --TOC: include; } h4 { --TOC: include; }
h5 { --TOC: include; } h5 { --TOC: include; }
} }
.tocH6 { .addToCH6 {
h4 { --TOC: include; } h4 { --TOC: include; }
h5 { --TOC: include; } h5 { --TOC: include; }
h6 { --TOC: include; } h6 { --TOC: include; }