mirror of
https://github.com/DarrenOfficial/dpaste.git
synced 2024-11-14 23:52:55 +11:00
More minor docs tweaks.
This commit is contained in:
parent
1d5c465975
commit
2a55eb577b
3 changed files with 19 additions and 8 deletions
4
docs/_static/custom.css
vendored
Normal file
4
docs/_static/custom.css
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
.highlight { background-color: #f8f8f8; }
|
||||
.highlight pre { font-size: 1em; }
|
||||
.sidebar .searchbox { border-top: 1px solid #eaecef;; }
|
||||
|
3
docs/_static/pygments.css
vendored
3
docs/_static/pygments.css
vendored
|
@ -1,3 +0,0 @@
|
|||
.highlight { background: #f8f8f8; color: black; }
|
||||
.highlight pre { font-size: 1em; }
|
||||
|
20
docs/conf.py
20
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'
|
||||
|
||||
|
|
Loading…
Reference in a new issue