More minor docs tweaks.

This commit is contained in:
Martin Mahner 2019-12-09 09:40:11 +01:00
parent 1d5c465975
commit 2a55eb577b
3 changed files with 19 additions and 8 deletions

4
docs/_static/custom.css vendored Normal file
View file

@ -0,0 +1,4 @@
.highlight { background-color: #f8f8f8; }
.highlight pre { font-size: 1em; }
.sidebar .searchbox { border-top: 1px solid #eaecef;; }

View file

@ -1,3 +0,0 @@
.highlight { background: #f8f8f8; color: black; }
.highlight pre { font-size: 1em; }

View file

@ -19,8 +19,10 @@
# -- Project information -----------------------------------------------------
from datetime import datetime
project = 'dpaste'
copyright = '2018, Martin Mahner'
copyright = f'2013—{datetime.now().year}, Martin Mahner'
author = 'Martin Mahner'
# The short X.Y version
@ -69,7 +71,7 @@ language = None
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
# The name of the Pygments (syntax highlighting) style to use.
pygments_style = None
pygments_style = "tango"
# -- Options for HTML output -------------------------------------------------
@ -79,10 +81,18 @@ pygments_style = None
#
try:
# import sphinx_rtd_theme
# html_theme = "sphinx_rtd_theme"
# html_theme_path = ["_themes", ]
html_theme = "press"
html_css_files = ["custom.css"]
html_sidebars = {'**': ['util/sidetoc.html', 'util/searchbox.html']}
html_theme_options = {
"external_links": [
("🐞 File an issue", "https://github.com/bartTC/dpaste/issues"),
("Github", "https://github.com/bartTC/dpaste"),
("Docker Hub", "https://hub.docker.com/r/barttc/dpaste"),
("dpaste.org", "https://dpaste.org")
]
}
except ImportError:
html_theme = 'alabaster'