Skip to content

Commit 82dfbd4

Browse files
Keep Dictionary pages out of site navigation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
1 parent e4ee5eb commit 82dfbd4

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/* Dictionary stays in the build navigation so glossary links remain published. */
2+
.md-tabs__item:has(.md-tabs__link[href*="Dictionary/"]),
3+
.md-nav__item:has(.md-nav__link[href*="Dictionary/"]),
4+
html:has(link[rel="canonical"][href*="/Dictionary/"]) .md-tabs__item--active,
5+
html:has(link[rel="canonical"][href*="/Dictionary/"]) .md-nav__item--active {
6+
display: none;
7+
}

docs/zensical.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ extra_javascript = [
1313
"https://unpkg.com/tablesort@5.3.0/dist/tablesort.min.js",
1414
"assets/javascripts/tablesort.js",
1515
]
16+
extra_css = [
17+
"assets/stylesheets/navigation.css",
18+
]
1619
watch = ["includes"]
1720
nav = [
1821
"index.md",
@@ -52,6 +55,9 @@ nav = [
5255
{"Principles and practices" = "specification/principles-and-practices.md"},
5356
]},
5457
{"Modules" = "Modules/index.md"},
58+
{"Dictionary" = [
59+
"Dictionary/index.md",
60+
]},
5561
]
5662

5763
[project.theme]

0 commit comments

Comments
 (0)