Skip to content

Commit

Permalink
[PATCH] docs: bump furo theme version to 2022.06.04.1(streamlink#4610)
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
Billy2011 committed Jul 12, 2022
1 parent 0a362db commit 679f9cd
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 8 deletions.
4 changes: 2 additions & 2 deletions docs-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
sphinx>=3.0
furo==2021.09.08
sphinx >=4.0.0
furo ==2022.06.04.1
recommonmark>=0.5.0
43 changes: 38 additions & 5 deletions docs/_static/styles/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,35 @@ html {
font-size: 100% !important;
}

h1, h2 {
margin-top: 1.5rem;
margin-bottom: 0.75rem;
font-weight: 300;
}
h3, h4, h5, h6 {
margin-top: 1.5rem;
margin-bottom: 0.5rem;
font-weight: 400;
}
h1 {
font-size: 2.25rem;
}
h2 {
font-size: 1.75rem;
}
h3 {
font-size: 1.25rem;
}
h4 {
font-size: 1rem;
}
h5 {
font-size: 0.875rem;
}
h6 {
font-size: 0.75rem;
}

code.literal {
font-size: var(--font-size--small);
}
Expand All @@ -56,14 +85,18 @@ strong.command {
font: normal var(--font-size--small) var(--font-stack--monospace);
}

a[href^="http://"],
a[href^="https://"]:not([href^="https://billy2011.github.io/streamlink-27/"]) {
.highlight .go {
font-style: normal;
}

a[href^="http://"]:not(.muted-link),
a[href^="https://"]:not(.muted-link):not([href^="https://billy2011.github.io/streamlink-27/"]) {
display: inline-block;
word-break: break-word;
}

a[href^="http://"],
a[href^="https://"]:not([href^="https://billy2011.github.io/streamlink-27/"])::after {
a[href^="http://"]:not(.no-external-link-icon):not(.muted-link)::after,
a[href^="https://"]:not(.no-external-link-icon):not(.muted-link):not([href^="https://billy2011.github.io/streamlink-27/"])::after {
content: "\f35d";
display: inline-block;
padding-left: .4em;
Expand Down Expand Up @@ -133,7 +166,7 @@ a[href^="https://"]:not([href^="https://billy2011.github.io/streamlink-27/"])::a
}
.sidebar-versions-others dd {
width: 50%;
margin: 0;
margin: 0 !important;
}
.sidebar-versions-others dd:first-of-type {
padding-right: .5rem;
Expand Down
6 changes: 5 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,11 @@
# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
# documentation.
# html_theme_options = { "github_fork": "Billy2011/streamlink-27" }
html_theme_options = {
"source_repository": "https://github.com/Billy2011/streamlink-27/",
"source_branch": "master",
"source_directory": "docs/",
}

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

0 comments on commit 679f9cd

Please sign in to comment.