Blame doc/conf.py

Packit 3a9065
# -*- coding: utf-8 -*-
Packit 3a9065
#
Packit 3a9065
# dnf-plugins-core documentation build configuration file, created by
Packit 3a9065
# sphinx-quickstart on Mon May  5 18:07:07 2014.
Packit 3a9065
#
Packit 3a9065
# This file is execfile()d with the current directory set to its
Packit 3a9065
# containing dir.
Packit 3a9065
#
Packit 3a9065
# Note that not all possible configuration values are present in this
Packit 3a9065
# autogenerated file.
Packit 3a9065
#
Packit 3a9065
# All configuration values have a default; values that are commented out
Packit 3a9065
# serve to show the default.
Packit 3a9065
Packit 3a9065
import codecs
Packit 3a9065
import sys
Packit 3a9065
import os
Packit 3a9065
import os.path
Packit 3a9065
Packit 3a9065
_dirname = os.path.dirname(__file__)
Packit 3a9065
Packit 3a9065
# If extensions (or modules to document with autodoc) are in another directory,
Packit 3a9065
# add these directories to sys.path here. If the directory is relative to the
Packit 3a9065
# documentation root, use os.path.abspath to make it absolute, like shown here.
Packit 3a9065
sys.path.insert(0, _dirname)
Packit 3a9065
Packit 3a9065
# -- General configuration ------------------------------------------------
Packit 3a9065
Packit 3a9065
# If your documentation needs a minimal Sphinx version, state it here.
Packit 3a9065
#needs_sphinx = '1.0'
Packit 3a9065
Packit 3a9065
# Add any Sphinx extension module names here, as strings. They can be
Packit 3a9065
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
Packit 3a9065
# ones.
Packit 3a9065
extensions = ['rhbug']
Packit 3a9065
Packit 3a9065
# Add any paths that contain templates here, relative to this directory.
Packit 3a9065
templates_path = ['_templates']
Packit 3a9065
Packit 3a9065
# The suffix of source filenames.
Packit 3a9065
source_suffix = '.rst'
Packit 3a9065
Packit 3a9065
# The encoding of source files.
Packit 3a9065
#source_encoding = 'utf-8-sig'
Packit 3a9065
Packit 3a9065
# The master toctree document.
Packit 3a9065
master_doc = 'index'
Packit 3a9065
Packit 3a9065
# General information about the project.
Packit 3a9065
project = u'dnf-plugins-core'
Packit 3a9065
copyright = u'2014, Red Hat, Licensed under GPLv2+'
Packit 3a9065
Packit 3a9065
# The version info for the project you're documenting, acts as replacement for
Packit 3a9065
# |version| and |release|, also used in various other places throughout the
Packit 3a9065
# built documents.
Packit 3a9065
#
Packit 3a9065
# The short X.Y version.
Packit 3a9065
Packit 3a9065
def version_readout():
Packit 3a9065
    fn = os.path.join(_dirname, '../dnf-plugins-core.spec')
Packit 3a9065
    with codecs.open(fn, "r", "utf-8") as f:
Packit 3a9065
        for line in f.readlines():
Packit 3a9065
            if line.startswith('Version:'):
Packit 3a9065
                return line.split(':')[1].strip()
Packit 3a9065
Packit 3a9065
version = '%s' % version_readout()
Packit 3a9065
# The full version, including alpha/beta/rc tags.
Packit 3a9065
release = '%s-1' % version
Packit 3a9065
Packit 3a9065
# The language for content autogenerated by Sphinx. Refer to documentation
Packit 3a9065
# for a list of supported languages.
Packit 3a9065
#language = None
Packit 3a9065
Packit 3a9065
# There are two options for replacing |today|: either, you set today to some
Packit 3a9065
# non-false value, then it is used:
Packit 3a9065
#today = ''
Packit 3a9065
# Else, today_fmt is used as the format for a strftime call.
Packit 3a9065
#today_fmt = '%B %d, %Y'
Packit 3a9065
Packit 3a9065
# List of patterns, relative to source directory, that match files and
Packit 3a9065
# directories to ignore when looking for source files.
Packit 3a9065
exclude_patterns = ['_build']
Packit 3a9065
if sys.version_info[0] > 2:
Packit 3a9065
    exclude_patterns.append('migrate.rst')
Packit 3a9065
Packit 3a9065
# The reST default role (used for this markup: `text`) to use for all
Packit 3a9065
# documents.
Packit 3a9065
#default_role = None
Packit 3a9065
Packit 3a9065
# If true, '()' will be appended to :func: etc. cross-reference text.
Packit 3a9065
#add_function_parentheses = True
Packit 3a9065
Packit 3a9065
# If true, the current module name will be prepended to all description
Packit 3a9065
# unit titles (such as .. function::).
Packit 3a9065
#add_module_names = True
Packit 3a9065
Packit 3a9065
# If true, sectionauthor and moduleauthor directives will be shown in the
Packit 3a9065
# output. They are ignored by default.
Packit 3a9065
#show_authors = False
Packit 3a9065
Packit 3a9065
# The name of the Pygments (syntax highlighting) style to use.
Packit 3a9065
pygments_style = 'sphinx'
Packit 3a9065
Packit 3a9065
# A list of ignored prefixes for module index sorting.
Packit 3a9065
#modindex_common_prefix = []
Packit 3a9065
Packit 3a9065
# If true, keep warnings as "system message" paragraphs in the built documents.
Packit 3a9065
#keep_warnings = False
Packit 3a9065
Packit 3a9065
Packit 3a9065
# -- Options for HTML output ----------------------------------------------
Packit 3a9065
Packit 3a9065
# The theme to use for HTML and HTML Help pages.  See the documentation for
Packit 3a9065
# a list of builtin themes.
Packit 3a9065
html_theme = 'default'
Packit 3a9065
Packit 3a9065
# Theme options are theme-specific and customize the look and feel of a theme
Packit 3a9065
# further.  For a list of options available for each theme, see the
Packit 3a9065
# documentation.
Packit 3a9065
#html_theme_options = {}
Packit 3a9065
Packit 3a9065
# Add any paths that contain custom themes here, relative to this directory.
Packit 3a9065
#html_theme_path = []
Packit 3a9065
Packit 3a9065
# The name for this set of Sphinx documents.  If None, it defaults to
Packit 3a9065
# "<project> v<release> documentation".
Packit 3a9065
#html_title = None
Packit 3a9065
Packit 3a9065
# A shorter title for the navigation bar.  Default is the same as html_title.
Packit 3a9065
#html_short_title = None
Packit 3a9065
Packit 3a9065
# The name of an image file (relative to this directory) to place at the top
Packit 3a9065
# of the sidebar.
Packit 3a9065
#html_logo = None
Packit 3a9065
Packit 3a9065
# The name of an image file (within the static path) to use as favicon of the
Packit 3a9065
# docs.  This file should be a Windows icon file (.ico) being 16x16 or 32x32
Packit 3a9065
# pixels large.
Packit 3a9065
#html_favicon = None
Packit 3a9065
Packit 3a9065
# Add any paths that contain custom static files (such as style sheets) here,
Packit 3a9065
# relative to this directory. They are copied after the builtin static files,
Packit 3a9065
# so a file named "default.css" will overwrite the builtin "default.css".
Packit 3a9065
html_static_path = ['_static']
Packit 3a9065
Packit 3a9065
# Add any extra paths that contain custom files (such as robots.txt or
Packit 3a9065
# .htaccess) here, relative to this directory. These files are copied
Packit 3a9065
# directly to the root of the documentation.
Packit 3a9065
#html_extra_path = []
Packit 3a9065
Packit 3a9065
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
Packit 3a9065
# using the given strftime format.
Packit 3a9065
#html_last_updated_fmt = '%b %d, %Y'
Packit 3a9065
Packit 3a9065
# If true, SmartyPants will be used to convert quotes and dashes to
Packit 3a9065
# typographically correct entities.
Packit 3a9065
#html_use_smartypants = True
Packit 3a9065
Packit 3a9065
# Custom sidebar templates, maps document names to template names.
Packit 3a9065
#html_sidebars = {}
Packit 3a9065
Packit 3a9065
# Additional templates that should be rendered to pages, maps page names to
Packit 3a9065
# template names.
Packit 3a9065
#html_additional_pages = {}
Packit 3a9065
Packit 3a9065
# If false, no module index is generated.
Packit 3a9065
#html_domain_indices = True
Packit 3a9065
Packit 3a9065
# If false, no index is generated.
Packit 3a9065
#html_use_index = True
Packit 3a9065
Packit 3a9065
# If true, the index is split into individual pages for each letter.
Packit 3a9065
#html_split_index = False
Packit 3a9065
Packit 3a9065
# If true, links to the reST sources are added to the pages.
Packit 3a9065
#html_show_sourcelink = True
Packit 3a9065
Packit 3a9065
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
Packit 3a9065
#html_show_sphinx = True
Packit 3a9065
Packit 3a9065
# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
Packit 3a9065
#html_show_copyright = True
Packit 3a9065
Packit 3a9065
# If true, an OpenSearch description file will be output, and all pages will
Packit 3a9065
# contain a <link> tag referring to it.  The value of this option must be the
Packit 3a9065
# base URL from which the finished HTML is served.
Packit 3a9065
#html_use_opensearch = ''
Packit 3a9065
Packit 3a9065
# This is the file name suffix for HTML files (e.g. ".xhtml").
Packit 3a9065
#html_file_suffix = None
Packit 3a9065
Packit 3a9065
# Output file base name for HTML help builder.
Packit 3a9065
htmlhelp_basename = 'dnf-plugins-coredoc'
Packit 3a9065
Packit 3a9065
Packit 3a9065
# -- Options for LaTeX output ---------------------------------------------
Packit 3a9065
Packit 3a9065
latex_elements = {
Packit 3a9065
# The paper size ('letterpaper' or 'a4paper').
Packit 3a9065
#'papersize': 'letterpaper',
Packit 3a9065
Packit 3a9065
# The font size ('10pt', '11pt' or '12pt').
Packit 3a9065
#'pointsize': '10pt',
Packit 3a9065
Packit 3a9065
# Additional stuff for the LaTeX preamble.
Packit 3a9065
#'preamble': '',
Packit 3a9065
}
Packit 3a9065
Packit 3a9065
# Grouping the document tree into LaTeX files. List of tuples
Packit 3a9065
# (source start file, target name, title,
Packit 3a9065
#  author, documentclass [howto, manual, or own class]).
Packit 3a9065
latex_documents = [
Packit 3a9065
  ('index', 'dnf-plugins-core.tex', u'dnf-plugins-core Documentation',
Packit 3a9065
   u'Tim Lauridsen', 'manual'),
Packit 3a9065
]
Packit 3a9065
Packit 3a9065
# The name of an image file (relative to this directory) to place at the top of
Packit 3a9065
# the title page.
Packit 3a9065
#latex_logo = None
Packit 3a9065
Packit 3a9065
# For "manual" documents, if this is true, then toplevel headings are parts,
Packit 3a9065
# not chapters.
Packit 3a9065
#latex_use_parts = False
Packit 3a9065
Packit 3a9065
# If true, show page references after internal links.
Packit 3a9065
#latex_show_pagerefs = False
Packit 3a9065
Packit 3a9065
# If true, show URL addresses after external links.
Packit 3a9065
#latex_show_urls = False
Packit 3a9065
Packit 3a9065
# Documents to append as an appendix to all manuals.
Packit 3a9065
#latex_appendices = []
Packit 3a9065
Packit 3a9065
# If false, no module index is generated.
Packit 3a9065
#latex_domain_indices = True
Packit 3a9065
Packit 3a9065
Packit 3a9065
# -- Options for manual page output ---------------------------------------
Packit 3a9065
Packit 3a9065
AUTHORS=[u'See AUTHORS in your Core DNF Plugins distribution']
Packit 3a9065
Packit 3a9065
# One entry per manual page. List of tuples
Packit 3a9065
# (source start file, name, description, authors, manual section).
Packit 3a9065
man_pages = [
Packit 3a9065
    ('builddep', 'dnf-builddep', u'DNF builddep Plugin', AUTHORS, 8),
Packit 3a9065
    ('changelog', 'dnf-changelog', u'DNF changelog Plugin', AUTHORS, 8),
Packit 3a9065
    ('config_manager', 'dnf-config-manager', u'DNF config-manager Plugin', AUTHORS, 8),
Packit 3a9065
    ('copr', 'dnf-copr', u'DNF copr Plugin', AUTHORS, 8),
Packit 3a9065
    ('debug', 'dnf-debug', u'DNF debug Plugin', AUTHORS, 8),
Packit 3a9065
    ('debuginfo-install', 'dnf-debuginfo-install', u'DNF debuginfo-install Plugin', AUTHORS, 8),
Packit 3a9065
    ('download', 'dnf-download', u'DNF download Plugin', AUTHORS, 8),
Packit 3a9065
    ('generate_completion_cache', 'dnf-generate_completion_cache',
Packit 3a9065
        u'DNF generate_completion_cache Plugin', AUTHORS, 8),
Packit Service 2886e3
    ('groups-manager', 'dnf-groups-manager', u'DNF groups-manager Plugin', AUTHORS, 8),
Packit 3a9065
    ('leaves', 'dnf-leaves', u'DNF leaves Plugin', AUTHORS, 8),
Packit 3a9065
    ('local', 'dnf-local', u'DNF local Plugin', AUTHORS, 8),
Packit 3a9065
    ('needs_restarting', 'dnf-needs-restarting', u'DNF needs_restarting Plugin', AUTHORS, 8),
Packit 3a9065
    ('repoclosure', 'dnf-repoclosure', u'DNF repoclosure Plugin', AUTHORS, 8),
Packit 3a9065
    ('repodiff', 'dnf-repodiff', u'DNF repodiff Plugin', AUTHORS, 8),
Packit 3a9065
    ('repograph', 'dnf-repograph', u'DNF repograph Plugin', AUTHORS, 8),
Packit 3a9065
    ('repomanage', 'dnf-repomanage', u'DNF repomanage Plugin', AUTHORS, 8),
Packit 3a9065
    ('reposync', 'dnf-reposync', u'DNF reposync Plugin', AUTHORS, 8),
Packit 3a9065
    ('post-transaction-actions', 'dnf-post-transaction-actions',
Packit 3a9065
     u'DNF post transaction actions Plugin', AUTHORS, 8),
Packit 3a9065
    ('show-leaves', 'dnf-show-leaves', u'DNF show-leaves Plugin', AUTHORS, 8),
Packit 3a9065
    ('versionlock', 'dnf-versionlock', u'DNF versionlock Plugin', AUTHORS, 8),
Packit 3a9065
Packit 3a9065
    # yum3 compatible layer for manpages
Packit 3a9065
    ('copr', 'yum-copr', u'redirecting to DNF copr Plugin', AUTHORS, 8),
Packit 3a9065
    ('debuginfo-install', 'debuginfo-install', u'redirecting to DNF debuginfo-install Plugin',
Packit 3a9065
     AUTHORS, 1),
Packit Service 2886e3
    ('groups-manager', 'yum-groups-manager', u'redirecting to DNF groups-manager Plugin', AUTHORS, 1),
Packit 3a9065
    ('needs_restarting', 'needs-restarting', u'redirecting to DNF needs-restarting Plugin',
Packit 3a9065
     AUTHORS, 1),
Packit 3a9065
    ('repoclosure', 'repoclosure', u'redirecting to DNF repoclosure Plugin', AUTHORS, 1),
Packit 3a9065
    ('repodiff', 'repodiff', u'redirecting to DNF repodiff Plugin', AUTHORS, 1),
Packit 3a9065
    ('repograph', 'repo-graph', u'redirecting to DNF repograph Plugin', AUTHORS, 1),
Packit 3a9065
    ('repomanage', 'repomanage', u'redirecting to DNF repomanage Plugin', AUTHORS, 1),
Packit 3a9065
    ('reposync', 'reposync', u'redirecting to DNF reposync Plugin', AUTHORS, 1),
Packit 3a9065
    ('versionlock', 'yum-versionlock', u'redirecting to DNF versionlock Plugin',
Packit 3a9065
     AUTHORS, 8),
Packit 3a9065
    ('versionlock', 'yum-versionlock.conf', u'redirecting to DNF versionlock Plugin',
Packit 3a9065
     AUTHORS, 5),
Packit 3a9065
    ('builddep', 'yum-builddep', u'redirecting to DNF builddep Plugin', AUTHORS, 1),
Packit 3a9065
    ('changelog', 'yum-changelog', u'redirecting to DNF changelog Plugin', AUTHORS, 1),
Packit 3a9065
    ('config_manager', 'yum-config-manager', u'redirecting to DNF config-manager Plugin',
Packit 3a9065
     AUTHORS, 1),
Packit 3a9065
    ('debug', 'yum-debug-dump', u'redirecting to DNF debug Plugin', AUTHORS, 1),
Packit 3a9065
    ('debug', 'yum-debug-restore', u'redirecting to DNF debug Plugin', AUTHORS, 1),
Packit 3a9065
    ('download', 'yumdownloader', u'redirecting to DNF download Plugin', AUTHORS, 1),
Packit 3a9065
    ('package-cleanup', 'package-cleanup', u'clean up locally installed, duplicate, or '
Packit 3a9065
     'orphaned packages.', AUTHORS, 1),
Packit 3a9065
    ('dnf-utils', 'dnf-utils', u'classic YUM utilities implemented as CLI shims on top of DNF',
Packit 3a9065
     AUTHORS, 1),
Packit 3a9065
    ('dnf-utils', 'yum-utils', u'classic YUM utilities implemented as CLI shims on top of DNF',
Packit 3a9065
     AUTHORS, 1),
Packit 3a9065
]
Packit 3a9065
if sys.version_info[0] < 3:
Packit 3a9065
    man_pages.append(('migrate', 'dnf-migrate', u'DNF migrate Plugin', AUTHORS, 8))
Packit 3a9065
Packit 3a9065
# If true, show URL addresses after external links.
Packit 3a9065
#man_show_urls = False
Packit 3a9065
Packit 3a9065
Packit 3a9065
# -- Options for Texinfo output -------------------------------------------
Packit 3a9065
Packit 3a9065
# Grouping the document tree into Texinfo files. List of tuples
Packit 3a9065
# (source start file, target name, title, author,
Packit 3a9065
#  dir menu entry, description, category)
Packit 3a9065
texinfo_documents = [
Packit 3a9065
  ('index', 'dnf-plugins-core', u'dnf-plugins-core Documentation',
Packit 3a9065
   AUTHORS[0], 'dnf-plugins-core', 'One line description of project.',
Packit 3a9065
   'Miscellaneous'),
Packit 3a9065
]
Packit 3a9065
Packit 3a9065
# Documents to append as an appendix to all manuals.
Packit 3a9065
#texinfo_appendices = []
Packit 3a9065
Packit 3a9065
# If false, no module index is generated.
Packit 3a9065
#texinfo_domain_indices = True
Packit 3a9065
Packit 3a9065
# How to display URL addresses: 'footnote', 'no', or 'inline'.
Packit 3a9065
#texinfo_show_urls = 'footnote'
Packit 3a9065
Packit 3a9065
# If true, do not generate a @detailmenu in the "Top" node's menu.
Packit 3a9065
#texinfo_no_detailmenu = False
Packit 3a9065
Packit 3a9065
rst_prolog = """
Packit 3a9065
.. default-domain:: py
Packit 3a9065
"""