Skip to content

Commit 8dec15e

Browse files
committed
Change MkDocs theme to Material for MkDocs
1 parent 8ce1c08 commit 8dec15e

File tree

3 files changed

+21
-128
lines changed

3 files changed

+21
-128
lines changed

doc/css/extra.css

-117
Original file line numberDiff line numberDiff line change
@@ -1,120 +1,3 @@
11
.hidden-warning {
22
display: none
33
}
4-
5-
.codehilite code {color:#3F3F3F;background-color:#F7F7F7;
6-
overflow: auto;
7-
box-sizing: border-box;
8-
9-
padding: 0.01em 16px;
10-
padding-top: 0.01em;
11-
padding-right-value: 16px;
12-
padding-bottom: 0.01em;
13-
padding-left-value: 16px;
14-
padding-left-ltr-source: physical;
15-
padding-left-rtl-source: physical;
16-
padding-right-ltr-source: physical;
17-
padding-right-rtl-source: physical;
18-
19-
border-radius: 16px !important;
20-
border-top-left-radius: 16px;
21-
border-top-right-radius: 16px;
22-
border-bottom-right-radius: 16px;
23-
border-bottom-left-radius: 16px;
24-
25-
border: 1px solid #CCC !important;
26-
border-top-width: 1px;
27-
border-right-width-value: 1px;
28-
border-right-width-ltr-source: physical;
29-
border-right-width-rtl-source: physical;
30-
border-bottom-width: 1px;
31-
border-left-width-value: 1px;
32-
border-left-width-ltr-source: physical;
33-
border-left-width-rtl-source: physical;
34-
border-top-style: solid;
35-
border-right-style-value: solid;
36-
border-right-style-ltr-source: physical;
37-
border-right-style-rtl-source: physical;
38-
border-bottom-style: solid;
39-
border-left-style-value: solid;
40-
border-left-style-ltr-source: physical;
41-
border-left-style-rtl-source: physical;
42-
border-top-color: #CCC;
43-
border-right-color-value: #CCC;
44-
border-right-color-ltr-source: physical;
45-
border-right-color-rtl-source: physical;
46-
border-bottom-color: #CCC;
47-
border-left-color-value: #CCC;
48-
border-left-color-ltr-source: physical;
49-
border-left-color-rtl-source: physical;
50-
-moz-border-top-colors: none;
51-
-moz-border-right-colors: none;
52-
-moz-border-bottom-colors: none;
53-
-moz-border-left-colors: none;
54-
border-image-source: none;
55-
border-image-slice: 100% 100% 100% 100%;
56-
border-image-width: 1 1 1 1;
57-
border-image-outset: 0 0 0 0;
58-
border-image-repeat: stretch stretch;
59-
}
60-
.codehilite .hll { background-color: #ffffcc }
61-
.codehilite .c { color: #999988; font-style: italic } /* Comment */
62-
.codehilite .err { color: #a61717; background-color: #e3d2d2 } /* Error */
63-
.codehilite .k { color: #000000; font-weight: bold } /* Keyword */
64-
.codehilite .o { color: #000000; font-weight: bold } /* Operator */
65-
.codehilite .cm { color: #999988; font-style: italic } /* Comment.Multiline */
66-
.codehilite .cp { color: #999999; font-weight: bold; font-style: italic } /* Comment.Preproc */
67-
.codehilite .c1 { color: #999988; font-style: italic } /* Comment.Single */
68-
.codehilite .cs { color: #999999; font-weight: bold; font-style: italic } /* Comment.Special */
69-
.codehilite .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */
70-
.codehilite .ge { color: #000000; font-style: italic } /* Generic.Emph */
71-
.codehilite .gr { color: #aa0000 } /* Generic.Error */
72-
.codehilite .gh { color: #999999 } /* Generic.Heading */
73-
.codehilite .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */
74-
.codehilite .go { color: #888888 } /* Generic.Output */
75-
.codehilite .gp { color: #555555 } /* Generic.Prompt */
76-
.codehilite .gs { font-weight: bold } /* Generic.Strong */
77-
.codehilite .gu { color: #aaaaaa } /* Generic.Subheading */
78-
.codehilite .gt { color: #aa0000 } /* Generic.Traceback */
79-
.codehilite .kc { color: #000000; font-weight: bold } /* Keyword.Constant */
80-
.codehilite .kd { color: #000000; font-weight: bold } /* Keyword.Declaration */
81-
.codehilite .kn { color: #000000; font-weight: bold } /* Keyword.Namespace */
82-
.codehilite .kp { color: #000000; font-weight: bold } /* Keyword.Pseudo */
83-
.codehilite .kr { color: #000000; font-weight: bold } /* Keyword.Reserved */
84-
.codehilite .kt { color: #445588; font-weight: bold } /* Keyword.Type */
85-
.codehilite .m { color: #009999 } /* Literal.Number */
86-
.codehilite .s { color: #d01040 } /* Literal.String */
87-
.codehilite .na { color: #008080 } /* Name.Attribute */
88-
.codehilite .nb { color: #0086B3 } /* Name.Builtin */
89-
.codehilite .nc { color: #445588; font-weight: bold } /* Name.Class */
90-
.codehilite .no { color: #008080 } /* Name.Constant */
91-
.codehilite .nd { color: #3c5d5d; font-weight: bold } /* Name.Decorator */
92-
.codehilite .ni { color: #800080 } /* Name.Entity */
93-
.codehilite .ne { color: #990000; font-weight: bold } /* Name.Exception */
94-
.codehilite .nf { color: #990000; font-weight: bold } /* Name.Function */
95-
.codehilite .nl { color: #990000; font-weight: bold } /* Name.Label */
96-
.codehilite .nn { color: #555555 } /* Name.Namespace */
97-
.codehilite .nt { color: #000080 } /* Name.Tag */
98-
.codehilite .nv { color: #008080 } /* Name.Variable */
99-
.codehilite .ow { color: #000000; font-weight: bold } /* Operator.Word */
100-
.codehilite .w { color: #bbbbbb } /* Text.Whitespace */
101-
.codehilite .mf { color: #009999 } /* Literal.Number.Float */
102-
.codehilite .mh { color: #009999 } /* Literal.Number.Hex */
103-
.codehilite .mi { color: #009999 } /* Literal.Number.Integer */
104-
.codehilite .mo { color: #009999 } /* Literal.Number.Oct */
105-
.codehilite .sb { color: #d01040 } /* Literal.String.Backtick */
106-
.codehilite .sc { color: #d01040 } /* Literal.String.Char */
107-
.codehilite .sd { color: #d01040 } /* Literal.String.Doc */
108-
.codehilite .s2 { color: #d01040 } /* Literal.String.Double */
109-
.codehilite .se { color: #d01040 } /* Literal.String.Escape */
110-
.codehilite .sh { color: #d01040 } /* Literal.String.Heredoc */
111-
.codehilite .si { color: #d01040 } /* Literal.String.Interpol */
112-
.codehilite .sx { color: #d01040 } /* Literal.String.Other */
113-
.codehilite .sr { color: #009926 } /* Literal.String.Regex */
114-
.codehilite .s1 { color: #d01040 } /* Literal.String.Single */
115-
.codehilite .ss { color: #990073 } /* Literal.String.Symbol */
116-
.codehilite .bp { color: #999999 } /* Name.Builtin.Pseudo */
117-
.codehilite .vc { color: #008080 } /* Name.Variable.Class */
118-
.codehilite .vg { color: #008080 } /* Name.Variable.Global */
119-
.codehilite .vi { color: #008080 } /* Name.Variable.Instance */
120-
.codehilite .il { color: #009999 } /* Literal.Number.Integer.Long */

doc/requirements.txt

+1
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@
1111
#
1212
# Current version as at 31 August 2022
1313
mkdocs==1.3.1
14+
mkdocs-material

mkdocs.yml

+20-11
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,12 @@ copyright: Copyright (c) 2015-2022, Stack contributors
77
docs_dir: doc
88
site_dir: _site
99
theme:
10-
name: readthedocs
11-
highlightjs: false
10+
name: material
11+
palette:
12+
primary: 'deep purple'
13+
accent: 'deep purple'
14+
icon:
15+
logo: material/language-haskell
1216
extra_css:
1317
- css/extra.css
1418
extra_javascript:
@@ -42,18 +46,23 @@ nav:
4246
- Advanced documentation:
4347
- Build overview: build_overview.md
4448
- Project documentation:
45-
- Contributor's guide: CONTRIBUTING.md
46-
- Maintainer's guide:
47-
- Releases: maintainers/releases.md
48-
- Maintainer team process: maintainers/team_process.md
49-
- Add GHC version: maintainers/ghc.md
50-
- Docker images: maintainers/docker.md
51-
- Upgrading MSYS2: maintainers/msys.md
52-
- HaskellStack.org: maintainers/haskellstack.org.md
49+
- Contributors:
50+
- Contributor's guide: CONTRIBUTING.md
51+
- Maintainers:
52+
- Releases: maintainers/releases.md
53+
- Maintainer team process: maintainers/team_process.md
54+
- Add GHC version: maintainers/ghc.md
55+
- Docker images: maintainers/docker.md
56+
- Upgrading MSYS2: maintainers/msys.md
57+
- HaskellStack.org: maintainers/haskellstack.org.md
5358
- Signing key: SIGNING_KEY.md
5459
- Glossary: glossary.md
5560

5661
markdown_extensions:
5762
- toc:
5863
permalink: true
59-
- codehilite:
64+
- pymdownx.highlight:
65+
anchor_linenums: true
66+
- pymdownx.inlinehilite
67+
- pymdownx.snippets
68+
- pymdownx.superfences

0 commit comments

Comments
 (0)