Skip to content

Commit 9ce0747

Browse files
committed
Bump stable to latest MkDocs and to Material for MkDocs
1 parent 5191c85 commit 9ce0747

File tree

3 files changed

+42
-4
lines changed

3 files changed

+42
-4
lines changed

doc/css/extra.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
11
.hidden-warning {
22
display: none
33
}
4+
5+
/* The Read the Docs flyout is formatted with a font-size that is 90% of the
6+
body's. Material for MkDocs has a body font-size that is 0.5rem. This body
7+
font-size will result in the flyout having a font-size of 0.7rem, consistent
8+
with the font-size of other elements in the theme.
9+
*/
10+
body {
11+
font-size: 0.777778rem;
12+
}

doc/requirements.txt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# pip requirements file for MkDocs, used by Read The Docs
2+
#
3+
# See:
4+
#
5+
# The Read The Docs recommendation to 'pin' the MkDocs version used to build
6+
# documentation:
7+
# https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html#pinning-dependencies
8+
#
9+
# The pip guide to its requirements file format:
10+
# https://pip.pypa.io/en/stable/reference/requirements-file-format/
11+
#
12+
# Current version as at 31 August 2022
13+
mkdocs==1.3.1
14+
mkdocs-material

mkdocs.yml

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,22 @@ edit_uri: tree/stable/doc/
66
copyright: Copyright (c) 2015-2022, Stack contributors
77
docs_dir: doc
88
site_dir: _site
9-
theme: readthedocs
9+
theme:
10+
name: material
11+
palette:
12+
primary: 'deep purple'
13+
accent: 'deep purple'
14+
icon:
15+
logo: material/language-haskell
1016
extra_css:
1117
- css/extra.css
1218
extra_javascript:
1319
- js/searchhack.js
20+
# Read the Docs requires JQuery for its JavaScript code to inject the flyout
21+
# menu. Material for MkDocs does not come with JQuery.
22+
- 'https://code.jquery.com/jquery-3.6.1.min.js'
1423

15-
pages:
24+
nav:
1625
- Home: README.md
1726
- Changelog: ChangeLog.md
1827
- Tool documentation:
@@ -40,8 +49,9 @@ pages:
4049
- Advanced documentation:
4150
- Build overview: build_overview.md
4251
- Project documentation:
43-
- Contributor's guide: CONTRIBUTING.md
44-
- Maintainer's guide:
52+
- Contributors:
53+
- Contributor's guide: CONTRIBUTING.md
54+
- Maintainers:
4555
- Releases: maintainers/releases.md
4656
- Maintainer team process: maintainers/team_process.md
4757
- Add GHC version: maintainers/ghc.md
@@ -54,3 +64,8 @@ pages:
5464
markdown_extensions:
5565
- toc:
5666
permalink: true
67+
- pymdownx.highlight:
68+
anchor_linenums: true
69+
- pymdownx.inlinehilite
70+
- pymdownx.snippets
71+
- pymdownx.superfences

0 commit comments

Comments
 (0)