xref: /netbsd-src/external/bsd/unbound/dist/pythonmod/doc/conf.py (revision 0cd9f4ecf44538bbdd5619b5b2081449960ab3e6)
13b6c3722Schristos# -*- coding: utf-8 -*-
23b6c3722Schristos#
33b6c3722Schristos# Unbound scripting interface documentation build configuration file
43b6c3722Schristos#
53b6c3722Schristos# This file is execfile()d with the current directory set to its containing dir.
63b6c3722Schristos#
73b6c3722Schristos# The contents of this file are pickled, so don't put values in the namespace
83b6c3722Schristos# that aren't pickleable (module imports are okay, they're removed automatically).
93b6c3722Schristos#
103b6c3722Schristos# All configuration values have a default value; values that are commented out
113b6c3722Schristos# serve to show the default value.
123b6c3722Schristos
133b6c3722Schristosimport sys, os
143b6c3722Schristos
153b6c3722Schristos# If your extensions are in another directory, add it here. If the directory
163b6c3722Schristos# is relative to the documentation root, use os.path.abspath to make it
173b6c3722Schristos# absolute, like shown here.
183b6c3722Schristossys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__),'../..')))
193b6c3722Schristos#print sys.path
203b6c3722Schristos
213b6c3722Schristos# General configuration
223b6c3722Schristos# ---------------------
233b6c3722Schristos
243b6c3722Schristos# Add any Sphinx extension module names here, as strings. They can be extensions
253b6c3722Schristos# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
263b6c3722Schristosextensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest']
273b6c3722Schristos
283b6c3722Schristos# Add any paths that contain templates here, relative to this directory.
293b6c3722Schristostemplates_path = ['_templates']
303b6c3722Schristos
313b6c3722Schristos# The suffix of source filenames.
323b6c3722Schristossource_suffix = '.rst'
333b6c3722Schristos
343b6c3722Schristos# The master toctree document.
353b6c3722Schristosmaster_doc = 'index'
363b6c3722Schristos
373b6c3722Schristos# General substitutions.
383b6c3722Schristosproject = 'Unbound scriptable interface'
393b6c3722Schristoscopyright = '2009, Zdenek Vasicek, Marek Vavrusa'
403b6c3722Schristos
413b6c3722Schristos# The default replacements for |version| and |release|, also used in various
423b6c3722Schristos# other places throughout the built documents.
433b6c3722Schristos#
443b6c3722Schristos# The short X.Y version.
453b6c3722Schristosversion = '1.0'
463b6c3722Schristos# The full version, including alpha/beta/rc tags.
473b6c3722Schristosrelease = '1.0.0'
483b6c3722Schristos
493b6c3722Schristos# There are two options for replacing |today|: either, you set today to some
503b6c3722Schristos# non-false value, then it is used:
513b6c3722Schristos#today = ''
523b6c3722Schristos# Else, today_fmt is used as the format for a strftime call.
533b6c3722Schristostoday_fmt = '%B %d, %Y'
543b6c3722Schristos
553b6c3722Schristos# List of documents that shouldn't be included in the build.
563b6c3722Schristos#unused_docs = []
573b6c3722Schristos
583b6c3722Schristos# List of directories, relative to source directories, that shouldn't be searched
593b6c3722Schristos# for source files.
603b6c3722Schristos#exclude_dirs = []
613b6c3722Schristos
623b6c3722Schristos# The reST default role (used for this markup: `text`) to use for all documents.
633b6c3722Schristos#default_role = None
643b6c3722Schristos
653b6c3722Schristos# If true, '()' will be appended to :func: etc. cross-reference text.
663b6c3722Schristos#add_function_parentheses = True
673b6c3722Schristos
683b6c3722Schristos# If true, the current module name will be prepended to all description
693b6c3722Schristos# unit titles (such as .. function::).
703b6c3722Schristos#add_module_names = True
713b6c3722Schristos
723b6c3722Schristos# If true, sectionauthor and moduleauthor directives will be shown in the
733b6c3722Schristos# output. They are ignored by default.
743b6c3722Schristos#show_authors = False
753b6c3722Schristos
763b6c3722Schristos# The name of the Pygments (syntax highlighting) style to use.
773b6c3722Schristospygments_style = 'sphinx'
783b6c3722Schristos
793b6c3722Schristos
803b6c3722Schristos# Options for HTML output
813b6c3722Schristos# -----------------------
823b6c3722Schristos
83*0cd9f4ecSchristos# The theme that the html output should use.
84*0cd9f4ecSchristoshtml_theme = "classic"
85*0cd9f4ecSchristos
863b6c3722Schristos# The style sheet to use for HTML and HTML Help pages. A file of that name
873b6c3722Schristos# must exist either in Sphinx' static/ path, or in one of the custom paths
883b6c3722Schristos# given in html_static_path.
89*0cd9f4ecSchristos#html_style = 'default.css'
903b6c3722Schristos
913b6c3722Schristos# The name for this set of Sphinx documents.  If None, it defaults to
923b6c3722Schristos# "<project> v<release> documentation".
933b6c3722Schristos#html_title = None
943b6c3722Schristos
953b6c3722Schristos# A shorter title for the navigation bar.  Default is the same as html_title.
963b6c3722Schristos#html_short_title = None
973b6c3722Schristos
983b6c3722Schristos# The name of an image file (within the static path) to place at the top of
993b6c3722Schristos# the sidebar.
1003b6c3722Schristos#html_logo = None
1013b6c3722Schristos
1023b6c3722Schristos# The name of an image file (within the static path) to use as favicon of the
1033b6c3722Schristos# docs.  This file should be a Windows icon file (.ico) being 16x16 or 32x32
1043b6c3722Schristos# pixels large.
1053b6c3722Schristos#html_favicon = None
1063b6c3722Schristos
1073b6c3722Schristos# Add any paths that contain custom static files (such as style sheets) here,
1083b6c3722Schristos# relative to this directory. They are copied after the builtin static files,
1093b6c3722Schristos# so a file named "default.css" will overwrite the builtin "default.css".
1103b6c3722Schristoshtml_static_path = ['_static']
1113b6c3722Schristos
1123b6c3722Schristos# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
1133b6c3722Schristos# using the given strftime format.
1143b6c3722Schristoshtml_last_updated_fmt = '%b %d, %Y'
1153b6c3722Schristos
1163b6c3722Schristos# If true, SmartyPants will be used to convert quotes and dashes to
1173b6c3722Schristos# typographically correct entities.
1183b6c3722Schristos#html_use_smartypants = True
1193b6c3722Schristos
1203b6c3722Schristos# Custom sidebar templates, maps document names to template names.
1213b6c3722Schristos#html_sidebars = {}
1223b6c3722Schristos
1233b6c3722Schristos# Additional templates that should be rendered to pages, maps page names to
1243b6c3722Schristos# template names.
1253b6c3722Schristos#html_additional_pages = {}
1263b6c3722Schristos
1273b6c3722Schristos# If false, no module index is generated.
1283b6c3722Schristoshtml_use_modindex = False
1293b6c3722Schristos
1303b6c3722Schristos# If false, no index is generated.
1313b6c3722Schristoshtml_use_index = True
1323b6c3722Schristos
1333b6c3722Schristos# If true, the index is split into individual pages for each letter.
1343b6c3722Schristos#html_split_index = False
1353b6c3722Schristos
1363b6c3722Schristos# If true, the reST sources are included in the HTML build as _sources/<name>.
1373b6c3722Schristoshtml_copy_source = False
1383b6c3722Schristos
1393b6c3722Schristos# If true, an OpenSearch description file will be output, and all pages will
1403b6c3722Schristos# contain a <link> tag referring to it.  The value of this option must be the
1413b6c3722Schristos# base URL from which the finished HTML is served.
1423b6c3722Schristos#html_use_opensearch = ''
1433b6c3722Schristos
1443b6c3722Schristos# If nonempty, this is the file name suffix for HTML files (e.g. ".xhtml").
1453b6c3722Schristos#html_file_suffix = ''
1463b6c3722Schristos
1473b6c3722Schristos# Output file base name for HTML help builder.
1483b6c3722Schristoshtmlhelp_basename = 'unbound_interface'
1493b6c3722Schristos
1503b6c3722Schristos
1513b6c3722Schristos# Options for LaTeX output
1523b6c3722Schristos# ------------------------
1533b6c3722Schristos
1543b6c3722Schristos# The paper size ('letter' or 'a4').
1553b6c3722Schristos#latex_paper_size = 'letter'
1563b6c3722Schristos
1573b6c3722Schristos# The font size ('10pt', '11pt' or '12pt').
1583b6c3722Schristos#latex_font_size = '10pt'
1593b6c3722Schristos
1603b6c3722Schristos# Grouping the document tree into LaTeX files. List of tuples
1613b6c3722Schristos# (source start file, target name, title, author, document class [howto/manual]).
1623b6c3722Schristoslatex_documents = [
1633b6c3722Schristos  ('index', 'Unbound_interface.tex', 'Unbound scriptable interface',
1643b6c3722Schristos   'Zdenek Vasicek, Marek Vavrusa', 'manual'),
1653b6c3722Schristos]
1663b6c3722Schristos
1673b6c3722Schristos# The name of an image file (relative to this directory) to place at the top of
1683b6c3722Schristos# the title page.
1693b6c3722Schristos#latex_logo = None
1703b6c3722Schristos
1713b6c3722Schristos# For "manual" documents, if this is true, then toplevel headings are parts,
1723b6c3722Schristos# not chapters.
1733b6c3722Schristos#latex_use_parts = False
1743b6c3722Schristos
1753b6c3722Schristos# Additional stuff for the LaTeX preamble.
1763b6c3722Schristos#latex_preamble = ''
1773b6c3722Schristos
1783b6c3722Schristos# Documents to append as an appendix to all manuals.
1793b6c3722Schristos#latex_appendices = []
1803b6c3722Schristos
1813b6c3722Schristos# If false, no module index is generated.
1823b6c3722Schristos#latex_use_modindex = True
183