Skip to content

Commit 679f9cd

Browse files
committed
[PATCH] docs: bump furo theme version to 2022.06.04.1(streamlink#4610)
- Bump min version of Sphinx to 4.0.0 This was already required by the previous version of furo - Revert headline font sizes, font weights and margins to previous style - Fix broken margin of version links in sidebar - Override font style of pygments' "generic output" - Add edit page button via new config option
1 parent 0a362db commit 679f9cd

File tree

3 files changed

+45
-8
lines changed

3 files changed

+45
-8
lines changed

docs-requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
sphinx>=3.0
2-
furo==2021.09.08
1+
sphinx >=4.0.0
2+
furo ==2022.06.04.1
33
recommonmark>=0.5.0

docs/_static/styles/custom.css

Lines changed: 38 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,35 @@ html {
4040
font-size: 100% !important;
4141
}
4242

43+
h1, h2 {
44+
margin-top: 1.5rem;
45+
margin-bottom: 0.75rem;
46+
font-weight: 300;
47+
}
48+
h3, h4, h5, h6 {
49+
margin-top: 1.5rem;
50+
margin-bottom: 0.5rem;
51+
font-weight: 400;
52+
}
53+
h1 {
54+
font-size: 2.25rem;
55+
}
56+
h2 {
57+
font-size: 1.75rem;
58+
}
59+
h3 {
60+
font-size: 1.25rem;
61+
}
62+
h4 {
63+
font-size: 1rem;
64+
}
65+
h5 {
66+
font-size: 0.875rem;
67+
}
68+
h6 {
69+
font-size: 0.75rem;
70+
}
71+
4372
code.literal {
4473
font-size: var(--font-size--small);
4574
}
@@ -56,14 +85,18 @@ strong.command {
5685
font: normal var(--font-size--small) var(--font-stack--monospace);
5786
}
5887

59-
a[href^="http://"],
60-
a[href^="https://"]:not([href^="https://billy2011.github.io/streamlink-27/"]) {
88+
.highlight .go {
89+
font-style: normal;
90+
}
91+
92+
a[href^="http://"]:not(.muted-link),
93+
a[href^="https://"]:not(.muted-link):not([href^="https://billy2011.github.io/streamlink-27/"]) {
6194
display: inline-block;
6295
word-break: break-word;
6396
}
6497

65-
a[href^="http://"],
66-
a[href^="https://"]:not([href^="https://billy2011.github.io/streamlink-27/"])::after {
98+
a[href^="http://"]:not(.no-external-link-icon):not(.muted-link)::after,
99+
a[href^="https://"]:not(.no-external-link-icon):not(.muted-link):not([href^="https://billy2011.github.io/streamlink-27/"])::after {
67100
content: "\f35d";
68101
display: inline-block;
69102
padding-left: .4em;
@@ -133,7 +166,7 @@ a[href^="https://"]:not([href^="https://billy2011.github.io/streamlink-27/"])::a
133166
}
134167
.sidebar-versions-others dd {
135168
width: 50%;
136-
margin: 0;
169+
margin: 0 !important;
137170
}
138171
.sidebar-versions-others dd:first-of-type {
139172
padding-right: .5rem;

docs/conf.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,11 @@
9898
# Theme options are theme-specific and customize the look and feel of a theme
9999
# further. For a list of options available for each theme, see the
100100
# documentation.
101-
# html_theme_options = { "github_fork": "Billy2011/streamlink-27" }
101+
html_theme_options = {
102+
"source_repository": "https://github.com/Billy2011/streamlink-27/",
103+
"source_branch": "master",
104+
"source_directory": "docs/",
105+
}
102106

103107
# Add any paths that contain custom themes here, relative to this directory.
104108
#html_theme_path = []

0 commit comments

Comments
 (0)