diff --git a/docs-requirements.txt b/docs-requirements.txt index eb31ad97af10..683fae150f93 100644 --- a/docs-requirements.txt +++ b/docs-requirements.txt @@ -1,3 +1,3 @@ -sphinx>=3.0 -furo==2021.09.08 +sphinx >=4.0.0 +furo ==2022.06.04.1 recommonmark>=0.5.0 diff --git a/docs/_static/styles/custom.css b/docs/_static/styles/custom.css index c18c5bf39333..438085d4f1aa 100644 --- a/docs/_static/styles/custom.css +++ b/docs/_static/styles/custom.css @@ -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); } @@ -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; @@ -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; diff --git a/docs/conf.py b/docs/conf.py index 94469454aa46..be5e01fe11bf 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -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 = []