Blame doc/conf.py

Packit 6f3914
# -*- coding: utf-8 -*-
Packit 6f3914
#
Packit 6f3914
# Hawkey documentation build configuration file, created by
Packit 6f3914
# sphinx-quickstart on Tue Aug  7 11:06:24 2012.
Packit 6f3914
#
Packit 6f3914
# This file is execfile()d with the current directory set to its containing dir.
Packit 6f3914
#
Packit 6f3914
# Note that not all possible configuration values are present in this
Packit 6f3914
# autogenerated file.
Packit 6f3914
#
Packit 6f3914
# All configuration values have a default; values that are commented out
Packit 6f3914
# serve to show the default.
Packit 6f3914
Packit 6f3914
import os
Packit 6f3914
import re
Packit 6f3914
import sys
Packit 6f3914
Packit 6f3914
_dirname = os.path.dirname(__file__)
Packit 6f3914
Packit 6f3914
# If extensions (or modules to document with autodoc) are in another directory,
Packit 6f3914
# add these directories to sys.path here. If the directory is relative to the
Packit 6f3914
# documentation root, use os.path.abspath to make it absolute, like shown here.
Packit 6f3914
Packit 6f3914
sys.path.insert(0, _dirname)
Packit 6f3914
Packit 6f3914
# -- General configuration -----------------------------------------------------
Packit 6f3914
Packit 6f3914
AUTHORS=[u'See AUTHORS in DNF source distribution.']
Packit 6f3914
Packit 6f3914
# If your documentation needs a minimal Sphinx version, state it here.
Packit 6f3914
#needs_sphinx = '1.0'
Packit 6f3914
Packit 6f3914
# Add any Sphinx extension module names here, as strings. They can be extensions
Packit 6f3914
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
Packit 6f3914
Packit 6f3914
extensions = ['rhbug']
Packit 6f3914
Packit 6f3914
# Add any paths that contain templates here, relative to this directory.
Packit 6f3914
templates_path = ['_templates']
Packit 6f3914
Packit 6f3914
# The suffix of source filenames.
Packit 6f3914
source_suffix = '.rst'
Packit 6f3914
Packit 6f3914
# The encoding of source files.
Packit 6f3914
#source_encoding = 'utf-8-sig'
Packit 6f3914
Packit 6f3914
# The master toctree document.
Packit 6f3914
master_doc = 'index'
Packit 6f3914
Packit 6f3914
# General information about the project.
Packit 6f3914
project = u'DNF'
Packit 6f3914
copyright = u'2012-2019, Red Hat, Licensed under GPLv2+'
Packit 6f3914
Packit 6f3914
# The version info for the project you're documenting, acts as replacement for
Packit 6f3914
# |version| and |release|, also used in various other places throughout the
Packit 6f3914
# built documents.
Packit 6f3914
#
Packit 6f3914
# The short X.Y version.
Packit 6f3914
Packit 6f3914
def version_readout():
Packit 6f3914
    fn = os.path.join(_dirname, '../VERSION.cmake')
Packit 6f3914
    with open(fn) as f:
Packit 6f3914
        lines = f.readlines()
Packit 6f3914
Packit 6f3914
    pat = re.compile(r'\d+.\d+.\d+')
Packit 6f3914
    version = pat.findall(lines[0])[0]
Packit 6f3914
Packit 6f3914
    return version
Packit 6f3914
Packit 6f3914
version = version_readout()
Packit 6f3914
# The full version, including alpha/beta/rc tags.
Packit 6f3914
release = '%s-1' % version
Packit 6f3914
Packit 6f3914
# The language for content autogenerated by Sphinx. Refer to documentation
Packit 6f3914
# for a list of supported languages.
Packit 6f3914
#language = None
Packit 6f3914
Packit 6f3914
# There are two options for replacing |today|: either, you set today to some
Packit 6f3914
# non-false value, then it is used:
Packit 6f3914
#today = ''
Packit 6f3914
# Else, today_fmt is used as the format for a strftime call.
Packit 6f3914
#today_fmt = '%B %d, %Y'
Packit 6f3914
Packit 6f3914
# List of patterns, relative to source directory, that match files and
Packit 6f3914
# directories to ignore when looking for source files.
Packit 6f3914
exclude_patterns = []
Packit 6f3914
Packit 6f3914
# The reST default role (used for this markup: `text`) to use for all documents.
Packit 6f3914
#default_role = None
Packit 6f3914
Packit 6f3914
# If true, '()' will be appended to :func: etc. cross-reference text.
Packit 6f3914
#add_function_parentheses = True
Packit 6f3914
Packit 6f3914
# If true, the current module name will be prepended to all description
Packit 6f3914
# unit titles (such as .. function::).
Packit 6f3914
#add_module_names = True
Packit 6f3914
Packit 6f3914
# If true, sectionauthor and moduleauthor directives will be shown in the
Packit 6f3914
# output. They are ignored by default.
Packit 6f3914
#show_authors = False
Packit 6f3914
Packit 6f3914
# The name of the Pygments (syntax highlighting) style to use.
Packit 6f3914
pygments_style = 'sphinx'
Packit 6f3914
Packit 6f3914
# A list of ignored prefixes for module index sorting.
Packit 6f3914
#modindex_common_prefix = []
Packit 6f3914
Packit 6f3914
Packit 6f3914
# -- Options for HTML output ---------------------------------------------------
Packit 6f3914
Packit 6f3914
# The theme to use for HTML and HTML Help pages.  See the documentation for
Packit 6f3914
# a list of builtin themes.
Packit 6f3914
html_theme = 'default'
Packit 6f3914
Packit 6f3914
# Theme options are theme-specific and customize the look and feel of a theme
Packit 6f3914
# further.  For a list of options available for each theme, see the
Packit 6f3914
# documentation.
Packit 6f3914
#html_theme_options = {}
Packit 6f3914
Packit 6f3914
# Add any paths that contain custom themes here, relative to this directory.
Packit 6f3914
#html_theme_path = []
Packit 6f3914
Packit 6f3914
# The name for this set of Sphinx documents.  If None, it defaults to
Packit 6f3914
# "<project> v<release> documentation".
Packit 6f3914
#html_title = None
Packit 6f3914
Packit 6f3914
# A shorter title for the navigation bar.  Default is the same as html_title.
Packit 6f3914
#html_short_title = None
Packit 6f3914
Packit 6f3914
# The name of an image file (relative to this directory) to place at the top
Packit 6f3914
# of the sidebar.
Packit 6f3914
#html_logo = None
Packit 6f3914
Packit 6f3914
# The name of an image file (within the static path) to use as favicon of the
Packit 6f3914
# docs.  This file should be a Windows icon file (.ico) being 16x16 or 32x32
Packit 6f3914
# pixels large.
Packit 6f3914
#html_favicon = None
Packit 6f3914
Packit 6f3914
# Add any paths that contain custom static files (such as style sheets) here,
Packit 6f3914
# relative to this directory. They are copied after the builtin static files,
Packit 6f3914
# so a file named "default.css" will overwrite the builtin "default.css".
Packit 6f3914
# html_static_path = ['_static']
Packit 6f3914
Packit 6f3914
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
Packit 6f3914
# using the given strftime format.
Packit 6f3914
#html_last_updated_fmt = '%b %d, %Y'
Packit 6f3914
Packit 6f3914
# If true, SmartyPants will be used to convert quotes and dashes to
Packit 6f3914
# typographically correct entities.
Packit 6f3914
#html_use_smartypants = True
Packit 6f3914
Packit 6f3914
# Custom sidebar templates, maps document names to template names.
Packit 6f3914
#html_sidebars = {}
Packit 6f3914
Packit 6f3914
# Additional templates that should be rendered to pages, maps page names to
Packit 6f3914
# template names.
Packit 6f3914
#html_additional_pages = {}
Packit 6f3914
Packit 6f3914
# If false, no module index is generated.
Packit 6f3914
#html_domain_indices = True
Packit 6f3914
Packit 6f3914
# If false, no index is generated.
Packit 6f3914
#html_use_index = True
Packit 6f3914
Packit 6f3914
# If true, the index is split into individual pages for each letter.
Packit 6f3914
#html_split_index = False
Packit 6f3914
Packit 6f3914
# If true, links to the reST sources are added to the pages.
Packit 6f3914
#html_show_sourcelink = True
Packit 6f3914
Packit 6f3914
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
Packit 6f3914
#html_show_sphinx = True
Packit 6f3914
Packit 6f3914
# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
Packit 6f3914
#html_show_copyright = True
Packit 6f3914
Packit 6f3914
# If true, an OpenSearch description file will be output, and all pages will
Packit 6f3914
# contain a <link> tag referring to it.  The value of this option must be the
Packit 6f3914
# base URL from which the finished HTML is served.
Packit 6f3914
#html_use_opensearch = ''
Packit 6f3914
Packit 6f3914
# This is the file name suffix for HTML files (e.g. ".xhtml").
Packit 6f3914
#html_file_suffix = None
Packit 6f3914
Packit 6f3914
# Output file base name for HTML help builder.
Packit 6f3914
htmlhelp_basename = 'dnfdoc'
Packit 6f3914
Packit 6f3914
Packit 6f3914
# -- Options for LaTeX output --------------------------------------------------
Packit 6f3914
Packit 6f3914
latex_elements = {
Packit 6f3914
# The paper size ('letterpaper' or 'a4paper').
Packit 6f3914
#'papersize': 'letterpaper',
Packit 6f3914
Packit 6f3914
# The font size ('10pt', '11pt' or '12pt').
Packit 6f3914
#'pointsize': '10pt',
Packit 6f3914
Packit 6f3914
# Additional stuff for the LaTeX preamble.
Packit 6f3914
#'preamble': '',
Packit 6f3914
}
Packit 6f3914
Packit 6f3914
# Grouping the document tree into LaTeX files. List of tuples
Packit 6f3914
# (source start file, target name, title, author, documentclass [howto/manual]).
Packit 6f3914
latex_documents = [
Packit 6f3914
  ('index', 'dnf.tex', u'DNF Documentation',
Packit 6f3914
   AUTHORS[0], 'manual'),
Packit 6f3914
]
Packit 6f3914
Packit 6f3914
# The name of an image file (relative to this directory) to place at the top of
Packit 6f3914
# the title page.
Packit 6f3914
#latex_logo = None
Packit 6f3914
Packit 6f3914
# For "manual" documents, if this is true, then toplevel headings are parts,
Packit 6f3914
# not chapters.
Packit 6f3914
#latex_use_parts = False
Packit 6f3914
Packit 6f3914
# If true, show page references after internal links.
Packit 6f3914
#latex_show_pagerefs = False
Packit 6f3914
Packit 6f3914
# If true, show URL addresses after external links.
Packit 6f3914
#latex_show_urls = False
Packit 6f3914
Packit 6f3914
# Documents to append as an appendix to all manuals.
Packit 6f3914
#latex_appendices = []
Packit 6f3914
Packit 6f3914
# If false, no module index is generated.
Packit 6f3914
#latex_domain_indices = True
Packit 6f3914
Packit 6f3914
Packit 6f3914
# -- Options for manual page output --------------------------------------------
Packit 6f3914
Packit 6f3914
# One entry per manual page. List of tuples
Packit 6f3914
# (source start file, name, description, authors, manual section).
Packit 6f3914
man_pages = [
Packit 6f3914
    ('automatic', 'dnf-automatic', u'DNF Automatic',
Packit 6f3914
     AUTHORS, 8),
Packit 6f3914
    ('command_ref', 'dnf', u'DNF Command Reference',
Packit 6f3914
     AUTHORS, 8),
Packit 6f3914
    ('conf_ref', 'dnf.conf', u'DNF Configuration Reference',
Packit 6f3914
     AUTHORS, 5),
Packit 6f3914
    ('conf_ref', 'yum.conf', u'redirecting to DNF Configuration Reference',
Packit 6f3914
     AUTHORS, 5),
Packit 6f3914
    ('cli_vs_yum', 'yum2dnf', u'Changes in DNF compared to YUM',
Packit 6f3914
     AUTHORS, 8),
Packit 6f3914
    ('command_ref', 'yum', u'redirecting to DNF Command Reference',
Packit 6f3914
     AUTHORS, 8),
Packit 6f3914
    ('command_ref', 'yum-shell', u'redirecting to DNF Command Reference',
Packit 6f3914
     AUTHORS, 8),
Packit 6f3914
    ('command_ref', 'yum-aliases', u'redirecting to DNF Command Reference',
Packit 6f3914
     AUTHORS, 1),
Packit 6f3914
    ('modularity', 'dnf.modularity', u'Modularity in DNF',
Packit 6f3914
     AUTHORS, 7),
Packit 6f3914
]
Packit 6f3914
Packit 6f3914
# If true, show URL addresses after external links.
Packit 6f3914
#man_show_urls = False
Packit 6f3914
Packit 6f3914
Packit 6f3914
# -- Options for Texinfo output ------------------------------------------------
Packit 6f3914
Packit 6f3914
# Grouping the document tree into Texinfo files. List of tuples
Packit 6f3914
# (source start file, target name, title, author,
Packit 6f3914
#  dir menu entry, description, category)
Packit 6f3914
texinfo_documents = [
Packit 6f3914
  ('index', 'dnf', u'DNF Documentation',
Packit 6f3914
   AUTHORS[0], 'DNF', 'Package manager for RPM-based distributions.',
Packit 6f3914
   'Miscellaneous'),
Packit 6f3914
]
Packit 6f3914
Packit 6f3914
# Documents to append as an appendix to all manuals.
Packit 6f3914
#texinfo_appendices = []
Packit 6f3914
Packit 6f3914
# If false, no module index is generated.
Packit 6f3914
#texinfo_domain_indices = True
Packit 6f3914
Packit 6f3914
# How to display URL addresses: 'footnote', 'no', or 'inline'.
Packit 6f3914
#texinfo_show_urls = 'footnote'
Packit 6f3914
Packit 6f3914
rst_prolog = """
Packit 6f3914
.. default-domain:: py
Packit 6f3914
.. _DNF: https://github.com/rpm-software-management/dnf/
Packit 6f3914
.. _hawkey: http://rpm-software-management.github.io/hawkey/
Packit 6f3914
.. _YUM: http://yum.baseurl.org/
Packit 6f3914
.. _bugzilla: https://bugzilla.redhat.com/enter_bug.cgi?product=Fedora&component=dnf
Packit 6f3914
"""