Skip to content
This repository was archived by the owner on May 22, 2024. It is now read-only.

Commit ede94cf

Browse files
Merged table of contents and upgrade to 9.2 (#43)
Co-authored-by: SoumayaMauthoorMOJ <soumaya.mauthoor@digital.justice.gov.uk>
1 parent ec516a6 commit ede94cf

File tree

6 files changed

+67
-74
lines changed

6 files changed

+67
-74
lines changed

docs/ADRs/README.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
---
2-
hide:
3-
- navigation
4-
---
5-
61
# Architecture Decision Records
72

83
This section demos how to record and summarise Architecture Decision Records [(ADRs)](https://cognitect.com/blog/2011/11/15/documenting-architecture-decisions) using the MkDocs Material [tags](https://squidfunk.github.io/mkdocs-material/setup/setting-up-tags/?h=tags) in-built plugin.

mkdocs.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ theme:
1010
features:
1111
- navigation.tabs
1212
- navigation.tabs.sticky
13-
- navigation.indexes
13+
# - navigation.indexes
1414
- content.code.copy
1515
- content.action.edit
1616
- content.action.view
17-
# - toc.integrate # uncomment to merge TOC with navigation bar
17+
- toc.integrate # uncomment to merge TOC with navigation bar
1818
font:
1919
text: Roboto
2020
code: Roboto Mono
@@ -60,6 +60,8 @@ markdown_extensions:
6060
- pymdownx.superfences
6161
- tables
6262
- attr_list
63+
- toc:
64+
toc_depth: 2
6365
extra:
6466
social:
6567
- icon: fontawesome/brands/slack
@@ -82,7 +84,6 @@ nav:
8284
- setup/README.md
8385
- Customise: setup/customise.md
8486
- Contribute: setup/CONTRIBUTE.md
85-
- Plugins:
86-
- plugins/README.md
87-
- ADRs:
88-
- ADRs/README.md
87+
- Enhancements:
88+
- Plugins: plugins/README.md
89+
- Architecture Decision Records: ADRs/README.md

requirements-doc.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
mkdocs-material==9.1.0
1+
mkdocs-material==9.2.0b1
22
mkdocs-git-revision-date-localized-plugin==1.1.0
33
mkdocs-table-reader-plugin==1.2
44
mknotebooks==0.7.1

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ packages = find:
1919
include_package_data = True
2020
zip_safe = False
2121
install_requires =
22-
mkdocs-material >= 9
22+
mkdocs-material >= 9.2
2323

2424
[options.entry_points]
2525
mkdocs.themes =

tech_docs_template/assets/stylesheets/extra.css

Lines changed: 58 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
--md-default-fg-color--light: #000000;
44
--md-typeset-a-color: #1d70b8;
55
--md-accent-fg-color: #003078;
6-
--md-footer-bg-color: #f3f2f1;
7-
--md-footer-bg-color--dark: #f3f2f1;
6+
--md-footer-bg-color: #f8f8f8;
7+
--md-footer-bg-color--dark: #f8f8f8;
88
--md-footer-fg-color: #505a5f;
99
--md-footer-fg-color--light: #505a5f;
1010
--md-footer-fg-color--lighter: #505a5f;
@@ -33,11 +33,6 @@
3333
text-underline-offset: 2px;
3434
}
3535

36-
/* Configure the main panel */
37-
.md-main__inner {
38-
margin-top:10px;
39-
}
40-
4136
/* Configure the header */
4237
.md-header{
4338
box-shadow: none;
@@ -88,21 +83,53 @@
8883
text-underline-offset: 2px;
8984
}
9085

91-
.md-nav__item--active .md-nav__item--active {
92-
font-weight: 700;
93-
margin-left: 10px;
94-
padding-left: 3px;
95-
border-left: 3px solid;
96-
border-left-color: #1d70b8;
86+
.md-nav__link--active {
87+
font-weight: 700;
88+
}
89+
90+
.md-nav__link:focus-within {
91+
background-color: #ffdd00 !important;
92+
}
93+
94+
.md-nav--primary > .md-nav__list > .md-nav__item--active > .md-nav > .md-nav__list > .md-nav__item--active {
95+
padding-left: 10px;
96+
border-left: 4px solid;
97+
border-left-color: #1d70b8;
98+
}
99+
100+
.md-nav--secondary .md-nav__item::before {
101+
content: '—';
102+
font-size: 20px;
103+
display: inline-block;
104+
vertical-align: middle;
105+
color: #505a5f;
106+
}
107+
108+
.md-nav--secondary .md-nav__link {
109+
display: inline-block;
110+
vertical-align: middle;
111+
margin: 0;
112+
line-height: 2;
113+
}
114+
115+
.md-nav--secondary .md-nav__list {
116+
margin-top: 5px;
117+
}
118+
119+
.md-nav__item .md-nav__link--passed {
120+
color: var(--md-typeset-a-color);
121+
}
122+
123+
.md-nav__item .md-nav__link--active {
124+
color: var(--md-typeset-a-color);
125+
}
126+
127+
[dir=ltr] .md-nav--secondary .md-nav__item {
128+
padding-left: 0;
97129
}
98130

99-
.md-nav__item--section > .md-nav > .md-nav__list > .md-nav__item--active,
100-
.md-nav--secondary .md-nav__link--active {
101-
/* font-weight: 700; */
102-
margin-left: 0;
103-
padding-left: 3px;
104-
border-left: 3px solid;
105-
border-left-color: #1d70b8;
131+
[dir=ltr] .md-nav--integrated > .md-nav__list > .md-nav__item--active .md-nav--secondary {
132+
border-left: none;
106133
}
107134

108135
/* Configures the tabs below the header */
@@ -127,13 +154,23 @@
127154
text-decoration: underline;
128155
text-decoration-thickness: 3px;
129156
text-underline-offset: 3px;
157+
color: #003078;
158+
text-decoration-color: #003078;
130159
}
131160

132161
.md-tabs__item--active {
133162
border-bottom: 4px solid;
134163
border-bottom-color: #1d70b8;
135164
}
136165

166+
.md-tabs__item--active:hover {
167+
border-color: #f8f8f8
168+
}
169+
170+
.md-tabs__link:focus-within {
171+
background-color: #ffdd00 !important;
172+
}
173+
137174
/* Configure the adminitions */
138175
.md-typeset .admonition,
139176
.md-typeset details {
@@ -182,4 +219,4 @@
182219

183220
.md-typeset .md-tag-icon::before {
184221
background-color: white;
185-
}
222+
}

tech_docs_template/partials/tabs-item.html

Lines changed: 0 additions & 40 deletions
This file was deleted.

0 commit comments

Comments
 (0)