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 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
|
# -*- coding: utf-8 -*-
from datetime import datetime
import pkg_resources
import sys
import os
import sphinx_rtd_theme
pypuppetdb_root = os.path.dirname(os.path.abspath("."))
sys.path.insert(0, pypuppetdb_root)
# -- General configuration ----------------------------------------------------
extensions = ["sphinx.ext.autodoc", "sphinx.ext.viewcode", "sphinx_rtd_theme"]
templates_path = ["_templates"]
source_suffix = ".rst"
master_doc = "index"
project = "pypuppetdb"
copyright = "2013-%s, Vox Pupuli" % datetime.now().year
version = pkg_resources.get_distribution(project).version
release = version
language = "en"
exclude_patterns = ["_build"]
pygments_style = "sphinx"
# -- Options for HTML output --------------------------------------------------
html_theme = "sphinx_rtd_theme"
html_static_path = []
htmlhelp_basename = "pypuppetdbdoc"
# -- Options for LaTeX output -------------------------------------------------
latex_documents = [
(
"index",
"pypuppetdb.tex",
"pypuppetdb Documentation",
"Vox Pupuli",
"manual",
),
]
# -- Options for manual page output -------------------------------------------
man_pages = [
(
"index",
"pypuppetdb",
"pypuppetdb Documentation",
["Daniele Sluijters"],
1,
)
]
# -- Options for Texinfo output -----------------------------------------------
texinfo_documents = [
(
"index",
"pypuppetdb",
"pypuppetdb Documentation",
"Daniele Sluijters",
"pypuppetdb",
"Library to work with the PuppetDB REST API.",
"Miscellaneous",
),
]
|