diff --git a/docs/_static/custom.css b/docs/_static/custom.css new file mode 100644 index 0000000..cdc1f3d --- /dev/null +++ b/docs/_static/custom.css @@ -0,0 +1,4 @@ +.highlight { background-color: #f8f8f8; } +.highlight pre { font-size: 1em; } +.sidebar .searchbox { border-top: 1px solid #eaecef;; } + diff --git a/docs/_static/pygments.css b/docs/_static/pygments.css deleted file mode 100644 index 21dccd1..0000000 --- a/docs/_static/pygments.css +++ /dev/null @@ -1,3 +0,0 @@ -.highlight { background: #f8f8f8; color: black; } -.highlight pre { font-size: 1em; } - diff --git a/docs/conf.py b/docs/conf.py index 686d1db..3def51e 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -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'