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

Commit 1b28a8c

Browse files
update admonitions and homepage
1 parent 64f9aa9 commit 1b28a8c

File tree

6 files changed

+62
-15
lines changed

6 files changed

+62
-15
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# README
1+
# Mkdocs Tech Docs Template
22

3-
A python-based alternative to the ruby-based [Tech Docs Template](https://github.com/alphagov/tech-docs-template).
3+
Build sophisticated technical documentation with a [GOV.UK style](https://design-system.service.gov.uk/).
44

55
Visit the [documentation website](https://ministryofjustice.github.io/mkdocs-tech-docs-template/) for more details.

docs/README.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,28 @@ hide:
44
- toc
55
---
66

7-
# MkDocs Tech Docs Template
7+
<style>
8+
.md-main__inner {
9+
margin-top: 0px;
10+
}
811

9-
!!! banner "Build technical documentation with a [GOV.UK style](https://design-system.service.gov.uk/)"
12+
.md-content__button {
13+
display: none;
14+
}
15+
</style>
16+
17+
!!! banner "Build sophisticated technical documentation with a [GOV.UK style](https://design-system.service.gov.uk/)"
1018

1119
![Services](homepage-illustration.svg){ align=right width=300px height=300px}
1220

13-
A python-based alternative to the ruby-based [Tech Docs Template](https://github.com/alphagov/tech-docs-template) with the following benefits:
21+
**Mkdocs Tech Docs Template** is a python-based alternative to the ruby-based [Tech Docs Template](https://github.com/alphagov/tech-docs-template) with the following benefits:
1422

1523
- simple to [setup](./setup/), [customise](./setup/customise.md) and [enhance](./setup/CONTRIBUTE.md)
1624
- exploits the [MkDocs Materials theme](https://squidfunk.github.io/mkdocs-material/) and all it's associated features
1725
- compatible with the vast ecosystem of MkDocs [plugins](plugins/)
1826
- unified tech stack for python-based teams and projects
1927

28+
[Get Started >](./setup/){ .md-button .md-button--primary}
2029

2130
!!! warning inline end "Prototype"
2231

docs/setup/customise.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,10 @@ Please refer to [social links](https://squidfunk.github.io/mkdocs-material/setup
7575
7676
## Admonitions
7777
78-
Admonitions, also known as call-outs, are an excellent choice for including side content without significantly interrupting the document flow. They can also be used to provide structure and coloured headings as in used on the [home](README.md) page. Please refer to [admonitions](https://squidfunk.github.io/mkdocs-material/reference/admonitions/#admonition-icons) for more details.
78+
Admonitions, also known as call-outs, are an excellent choice for including side content without significantly interrupting the document flow. They can also be used to provide structure and coloured headings as in used on the [home](README.md) page. Please refer to [admonitions](https://squidfunk.github.io/mkdocs-material/reference/admonitions/#admonition-icons) for more details.
79+
80+
## Dark Mode
81+
82+
Under construction!
83+
84+
See [Changing the colors](https://squidfunk.github.io/mkdocs-material/setup/changing-the-colors/) for more details.

mkdocs.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,17 @@ theme:
2121
icon:
2222
admonition:
2323
quote: octicons/quote-16
24+
palette:
25+
# Palette toggle for light mode
26+
- scheme: default
27+
toggle:
28+
icon: material/brightness-7
29+
name: Switch to dark mode
30+
# Palette toggle for dark mode
31+
- scheme: slate
32+
toggle:
33+
icon: material/brightness-4
34+
name: Switch to light mode
2435

2536
edit_uri: edit/main/docs/
2637
plugins:

tech_docs_template/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.0.19"
1+
__version__ = "0.0.20"

tech_docs_template/assets/stylesheets/extra.css

Lines changed: 29 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
--md-footer-fg-color--lighter: #505a5f;
1111
}
1212

13+
/* Configure the fonts */
1314
.md-typeset {
1415
font-size: 0.85rem;
1516
}
@@ -32,10 +33,21 @@
3233
text-underline-offset: 2px;
3334
}
3435

36+
/* Configure the main panel */
37+
.md-main__inner {
38+
margin-top:10px;
39+
}
40+
41+
/* Configure the header */
3542
.md-header{
3643
box-shadow: none;
3744
}
3845

46+
.md-header__inner {
47+
border-bottom: 10px solid;
48+
border-bottom-color: #1d70b8;
49+
}
50+
3951
.md-header__title{
4052
font-size: 25px;
4153
}
@@ -44,13 +56,15 @@
4456
font-weight: 400;
4557
}
4658

59+
/* Configure the footer */
4760
.md-footer{
4861
padding-top: 40px;
4962
padding-bottom: 25px;
5063
border-top: 1px solid;
5164
border-color: #b1b4b6;
5265
}
5366

67+
/* Configure the copyright */
5468
.md-copyright{
5569
font-size: 15px;
5670
color:#000000;
@@ -96,8 +110,8 @@
96110
.md-tabs {
97111
color: #1d70b8;
98112
background-color: #f8f8f8;
99-
border-top: 10px solid;
100-
border-top-color: #1d70b8;
113+
/* border-top: 10px solid; */
114+
/* border-top-color: #1d70b8; */
101115
border-bottom: 1px solid;
102116
border-bottom-color: #b1b4b6;
103117
line-height: 1;
@@ -125,16 +139,12 @@
125139
.md-typeset details {
126140
font-size: 0.85rem;
127141
border: 3px solid;
128-
box-shadow: none;
142+
box-shadow: none;
143+
border-radius: 0px;
129144
/* border-width: 0; */
130145
/* border-left-width: 4px; */
131146
}
132147

133-
/* Configure the main panel */
134-
.md-main__inner {
135-
margin-top:10px;
136-
}
137-
138148
/* Create a new banner admonition */
139149
.md-typeset .admonition.banner,
140150
.md-typeset details.banner {
@@ -146,8 +156,19 @@
146156
font-size: 30px;
147157
background-color: #1d70b8;
148158
color: white;
159+
border-radius: 0px;
149160
}
150161
.md-typeset .banner > .admonition-title::before,
151162
.md-typeset .banner > summary::before {
152163
background-color: white;
153164
}
165+
166+
/* Configure the primary button */
167+
.md-typeset .md-button--primary{
168+
background-color: var(--md-typeset-a-color);
169+
border-color: var(--md-typeset-a-color);
170+
text-decoration: none;
171+
font-size: 1rem;
172+
border-radius: 0px;
173+
padding: 2px 10px;
174+
}

0 commit comments

Comments
 (0)