| 1 |
|
| 2 |
from datetime import datetime |
| 3 |
|
| 4 |
import pkg_resources |
| 5 |
import sys |
| 6 |
import os |
| 7 |
|
| 8 |
import sphinx_rtd_theme |
| 9 |
|
| 10 |
pypuppetdb_root = os.path.dirname(os.path.abspath(".")) |
| 11 |
sys.path.insert(0, pypuppetdb_root) |
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
extensions = ["sphinx.ext.autodoc", "sphinx.ext.viewcode", "sphinx_rtd_theme"] |
| 16 |
|
| 17 |
templates_path = ["_templates"] |
| 18 |
|
| 19 |
source_suffix = ".rst" |
| 20 |
|
| 21 |
master_doc = "index" |
| 22 |
|
| 23 |
project = "pypuppetdb" |
| 24 |
copyright = "2013-%s, Vox Pupuli" % datetime.now().year |
| 25 |
version = pkg_resources.get_distribution(project).version |
| 26 |
release = version |
| 27 |
|
| 28 |
language = "en" |
| 29 |
|
| 30 |
exclude_patterns = ["_build"] |
| 31 |
|
| 32 |
pygments_style = "sphinx" |
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
html_theme = "sphinx_rtd_theme" |
| 37 |
|
| 38 |
html_static_path = [] |
| 39 |
|
| 40 |
htmlhelp_basename = "pypuppetdbdoc" |
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
latex_documents = [ |
| 45 |
( |
| 46 |
"index", |
| 47 |
"pypuppetdb.tex", |
| 48 |
"pypuppetdb Documentation", |
| 49 |
"Vox Pupuli", |
| 50 |
"manual", |
| 51 |
), |
| 52 |
] |
| 53 |
|
| 54 |
|
| 55 |
|
| 56 |
|
| 57 |
man_pages = [ |
| 58 |
( |
| 59 |
"index", |
| 60 |
"pypuppetdb", |
| 61 |
"pypuppetdb Documentation", |
| 62 |
["Daniele Sluijters"], |
| 63 |
1, |
| 64 |
) |
| 65 |
] |
| 66 |
|
| 67 |
|
| 68 |
|
| 69 |
texinfo_documents = [ |
| 70 |
( |
| 71 |
"index", |
| 72 |
"pypuppetdb", |
| 73 |
"pypuppetdb Documentation", |
| 74 |
"Daniele Sluijters", |
| 75 |
"pypuppetdb", |
| 76 |
"Library to work with the PuppetDB REST API.", |
| 77 |
"Miscellaneous", |
| 78 |
), |
| 79 |
] |