Files
the-littlest-jupyterhub/docs/conf.py

73 lines
2.2 KiB
Python
Raw Normal View History

import os
source_suffix = ['.rst']
project = 'The Littlest JupyterHub'
copyright = '2018, JupyterHub Team'
author = 'JupyterHub Team'
# The short X.Y version
version = ''
# The full version, including alpha/beta/rc tags
release = 'v0.1'
# Enable MathJax for Math
2018-08-11 08:25:21 +02:00
extensions = ['sphinx.ext.mathjax',
'sphinx.ext.intersphinx',
2018-08-14 19:17:54 +02:00
'sphinx_copybutton']
# The master toctree document.
master_doc = 'index'
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
# This pattern also affects html_static_path and html_extra_path .
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store',
2018-08-11 08:25:21 +02:00
'install/custom.rst']
intersphinx_mapping = {
'sphinx': ('http://www.sphinx-doc.org/en/master/', None),
}
intersphinx_cache_limit = 90 # days
# The name of the Pygments (syntax highlighting) style to use.
pygments_style = 'sphinx'
import alabaster_jupyterhub
html_theme = 'alabaster_jupyterhub'
html_theme_path = [alabaster_jupyterhub.get_html_theme_path()]
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
# Do this only if _static exists, otherwise this will error
here = os.path.dirname(os.path.abspath(__file__))
if os.path.exists(os.path.join(here, '_static')):
html_static_path = ['_static']
# Configure the sidebar to be how we want it to be
# We don't have 'navigation' here, since it is very cluttered
# and seems to be hard to control.
html_sidebars = {
'**': [
'about.html',
'relations.html',
'searchbox.html',
'donate.html',
]
}
# Custom Alabaster theme options
html_theme_options = {
'description': """
A simple JupyterHub distribution for 1-100 users
<br /> <br />
<strong>Documentation confusing?</strong> <a href="https://github.com/jupyterhub/the-littlest-jupyterhub/issues">File an issue!</a>
""",
'github_user': 'jupyterhub',
'github_repo': 'the-littlest-jupyterhub',
'github_button': True,
'github_banner': True,
}