|
| 1 | +# Configuration file for the Sphinx documentation builder. |
| 2 | +# |
| 3 | +# This file only contains a selection of the most common options. For a full |
| 4 | +# list see the documentation: |
| 5 | +# https://www.sphinx-doc.org/en/master/usage/configuration.html |
| 6 | + |
| 7 | +# -- Path setup -------------------------------------------------------------- |
| 8 | + |
| 9 | +# If extensions (or modules to document with autodoc) are in another directory, |
| 10 | +# add these directories to sys.path here. If the directory is relative to the |
| 11 | +# documentation root, use os.path.abspath to make it absolute, like shown here. |
| 12 | +# |
| 13 | +# import os |
| 14 | +# import sys |
| 15 | +# sys.path.insert(0, os.path.abspath('.')) |
| 16 | + |
| 17 | +import keg_storage |
| 18 | +import datetime as dt |
| 19 | + |
| 20 | +import configparser |
| 21 | + |
| 22 | + |
| 23 | +# -- Project information ----------------------------------------------------- |
| 24 | + |
| 25 | +project = 'Keg-Storage' |
| 26 | +copyright = u"{year} Level 12".format(year=dt.datetime.utcnow().year) |
| 27 | + |
| 28 | + |
| 29 | +cfg = configparser.SafeConfigParser() |
| 30 | +cfg.read('../../setup.cfg') |
| 31 | + |
| 32 | +tag = cfg.get('egg_info', 'tag_build') |
| 33 | + |
| 34 | +html_context = { |
| 35 | + 'prerelease': bool(tag), # True if tag is not the empty string |
| 36 | +} |
| 37 | + |
| 38 | +# The full version, including alpha/beta/rc tags. |
| 39 | +release = keg_storage.__version__ + tag |
| 40 | + |
| 41 | + |
| 42 | +# -- General configuration --------------------------------------------------- |
| 43 | + |
| 44 | +# Add any Sphinx extension module names here, as strings. They can be |
| 45 | +# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
| 46 | +# ones. |
| 47 | +extensions = [ |
| 48 | + 'sphinx.ext.intersphinx', |
| 49 | + 'sphinx.ext.autodoc', |
| 50 | + 'sphinx.ext.viewcode', |
| 51 | +] |
| 52 | + |
| 53 | +# Add any paths that contain templates here, relative to this directory. |
| 54 | +templates_path = ['_templates'] |
| 55 | + |
| 56 | +# List of patterns, relative to source directory, that match files and |
| 57 | +# directories to ignore when looking for source files. |
| 58 | +# This pattern also affects html_static_path and html_extra_path. |
| 59 | +exclude_patterns = [] |
| 60 | + |
| 61 | +master_doc = 'index' |
| 62 | + |
| 63 | + |
| 64 | +# -- Options for HTML output ------------------------------------------------- |
| 65 | + |
| 66 | +# The theme to use for HTML and HTML Help pages. See the documentation for |
| 67 | +# a list of builtin themes. |
| 68 | +# |
| 69 | +html_theme = 'alabaster' |
| 70 | + |
| 71 | +html_theme_options = { |
| 72 | + 'github_user': 'level12', |
| 73 | + 'github_repo': 'keg-storage', |
| 74 | + 'github_banner': False, |
| 75 | + 'github_button': True, |
| 76 | + 'codecov_button': True, |
| 77 | + 'extra_nav_links': { |
| 78 | + 'Level 12': 'https://www.level12.io', |
| 79 | + 'File an Issue': 'https://github.com/level12/keg-storage/issues/new', |
| 80 | + }, |
| 81 | + 'show_powered_by': True |
| 82 | + |
| 83 | +} |
| 84 | + |
| 85 | +# Add any paths that contain custom static files (such as style sheets) here, |
| 86 | +# relative to this directory. They are copied after the builtin static files, |
| 87 | +# so a file named "default.css" will overwrite the builtin "default.css". |
| 88 | +html_static_path = ['_static'] |
0 commit comments