-
Notifications
You must be signed in to change notification settings - Fork 50
Expand file tree
/
Copy pathconf.py
More file actions
40 lines (34 loc) · 1.17 KB
/
Copy pathconf.py
File metadata and controls
40 lines (34 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# -*- coding: utf-8 -*-
#
# Sphinx RTD theme demo documentation build configuration file, created by
# sphinx-quickstart on Sun Nov 3 11:56:36 2013.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All configuration values have a default; values that are commented out
# serve to show the default.
project = "publiccode.yml Standard (v0.7)"
# Under sphinx-polyversion (poly.py) POLYVERSION_DATA carries the version
# being built and the list of all of them; load() copies it into
# html_context for the switcher in _templates/page.html. A plain
# sphinx-build leaves the variable unset and the switcher renders nothing.
from sphinx_polyversion.api import LoadError, load
try:
load(globals())
except LoadError:
pass
else:
# The switcher names the version on every page, and the bare name is
# what still fits the navbar on a phone.
project = "publiccode.yml Standard"
html_theme = "press"
templates_path = ["_templates"]
extensions = [
"sphinx.ext.autodoc",
"sphinx.ext.viewcode",
"sphinx.ext.doctest",
"sphinx_copybutton",
]