import sys, os
+enable_manpages = bool(os.getenv("ENABLE_MANPAGES"))
+
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
# -- General configuration -----------------------------------------------------
# If your documentation needs a minimal Sphinx version, state it here.
-#needs_sphinx = "1.0"
+needs_sphinx = "1.0"
# Add any Sphinx extension module names here, as strings. They can be extensions
# coming with Sphinx (named "sphinx.ext.*") or your custom ones.
"sphinx.ext.todo",
"sphinx.ext.graphviz",
"ganeti.build.sphinx_ext",
+ "ganeti.build.shell_example_lexer",
]
# Add any paths that contain templates here, relative to this directory.
# General information about the project.
project = u"Ganeti"
-copyright = u"2006, 2007, 2008, 2009, 2010, 2011, Google Inc."
+copyright = u"%s Google Inc." % ", ".join(map(str, range(2006, 2013 + 1)))
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# List of documents that shouldn't be included in the build.
#unused_docs = []
+if enable_manpages:
+ exclude_patterns = []
+else:
+ exclude_patterns = [
+ "man-*.rst",
+ ]
+
# List of directories, relative to source directory, that shouldn't be searched
# for source files.
exclude_trees = [
# 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".
-html_static_path = []
+html_static_path = ["css"]
+
+html_style = "style.css"
# If not "", a "Last updated on:" timestamp is inserted at every page bottom,
# using the given strftime format.