Skip to content

Commit bf479e9

Browse files
committed
Some tweaks to the new Sphinx theme
1 parent 963e319 commit bf479e9

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

doc/_static/custom.css

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#content ul:not(.search) {
2+
list-style-type: disc;
3+
margin-left: 1.5rem;
4+
margin-top: 0.8rem;
5+
}
6+
7+
#content ul:not(.search) p,
8+
#content ul:not(.search)>li {
9+
margin-top: 0.8rem
10+
}
11+
12+
#content section>p {
13+
line-height: 1.75rem;
14+
margin-top: 0.8rem
15+
}
16+
17+
.contents,
18+
.toctree-wrapper {
19+
font-size: 1rem;
20+
line-height: 1.25rem
21+
}
22+
23+
.contents ul li a.reference,
24+
.toctree-wrapper ul li a.reference {
25+
color: hsl(var(--foreground)) !important;
26+
display: inline-block;
27+
font-weight: 600 !important;
28+
text-decoration-line: none !important;
29+
transition-duration: .15s;
30+
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
31+
transition-timing-function: cubic-bezier(.4, 0, .2, 1)
32+
}

doc/conf.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,8 @@ class MockNESTModule(mock.Mock):
150150
# so a file named "default.css" will overwrite the builtin "default.css".
151151
html_static_path = ['_static']
152152

153+
html_css_files = ["custom.css"]
154+
153155
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
154156
# using the given strftime format.
155157
#html_last_updated_fmt = '%b %d, %Y'
@@ -194,6 +196,7 @@ class MockNESTModule(mock.Mock):
194196
# Output file base name for HTML help builder.
195197
htmlhelp_basename = 'PyNNdoc'
196198

199+
html_permalinks_icon = "<span>¶</span>"
197200

198201
# -- Options for LaTeX output --------------------------------------------------
199202

0 commit comments

Comments
 (0)