paperless-ngx/docs/conf.py

334 lines
9.9 KiB
Python
Raw Normal View History

2020-12-05 13:53:11 +01:00
import sphinx_rtd_theme
2016-01-24 20:15:50 -05:00
__version__ = None
__full_version_str__ = None
__major_minor_version_str__ = None
2016-01-24 20:15:50 -05:00
exec(open("../src/paperless/version.py").read())
extensions = [
2022-02-27 15:37:20 +01:00
"sphinx.ext.autodoc",
"sphinx.ext.intersphinx",
"sphinx.ext.todo",
"sphinx.ext.imgmath",
"sphinx.ext.viewcode",
"sphinx_rtd_theme",
2016-01-24 20:15:50 -05:00
]
# Add any paths that contain templates here, relative to this directory.
2022-04-09 21:45:15 -07:00
templates_path = ["_templates"]
2016-01-24 20:15:50 -05:00
# The suffix of source filenames.
2022-02-27 15:37:20 +01:00
source_suffix = ".rst"
2016-01-24 20:15:50 -05:00
# The encoding of source files.
2022-02-27 15:37:20 +01:00
# source_encoding = 'utf-8-sig'
2016-01-24 20:15:50 -05:00
# The master toctree document.
2022-02-27 15:37:20 +01:00
master_doc = "index"
2016-01-24 20:15:50 -05:00
# General information about the project.
2022-02-27 15:37:20 +01:00
project = "Paperless-ngx"
copyright = "2015-2022, Daniel Quinn, Jonas Winkler, and the paperless-ngx team"
2016-01-24 20:15:50 -05:00
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
#
# If the build process ever explodes here, it's because you've set the version
# number in paperless.version to a tuple with 3 numbers in it.
#
# The short X.Y version.
version = __major_minor_version_str__
2016-01-24 20:15:50 -05:00
# The full version, including alpha/beta/rc tags.
release = __full_version_str__
2016-01-24 20:15:50 -05:00
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
2022-02-27 15:37:20 +01:00
# language = None
2016-01-24 20:15:50 -05:00
# There are two options for replacing |today|: either, you set today to some
# non-false value, then it is used:
2022-02-27 15:37:20 +01:00
# today = ''
2016-01-24 20:15:50 -05:00
# Else, today_fmt is used as the format for a strftime call.
2022-02-27 15:37:20 +01:00
# today_fmt = '%B %d, %Y'
2016-01-24 20:15:50 -05:00
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
2022-02-27 15:37:20 +01:00
exclude_patterns = ["_build"]
2016-01-24 20:15:50 -05:00
# The reST default role (used for this markup: `text`) to use for all
# documents.
2022-02-27 15:37:20 +01:00
# default_role = None
2016-01-24 20:15:50 -05:00
# If true, '()' will be appended to :func: etc. cross-reference text.
2022-02-27 15:37:20 +01:00
# add_function_parentheses = True
2016-01-24 20:15:50 -05:00
# If true, the current module name will be prepended to all description
# unit titles (such as .. function::).
2022-02-27 15:37:20 +01:00
# add_module_names = True
2016-01-24 20:15:50 -05:00
# If true, sectionauthor and moduleauthor directives will be shown in the
# output. They are ignored by default.
2022-02-27 15:37:20 +01:00
# show_authors = False
2016-01-24 20:15:50 -05:00
# The name of the Pygments (syntax highlighting) style to use.
2022-02-27 15:37:20 +01:00
pygments_style = "sphinx"
2016-01-24 20:15:50 -05:00
# A list of ignored prefixes for module index sorting.
2022-02-27 15:37:20 +01:00
# modindex_common_prefix = []
2016-01-24 20:15:50 -05:00
# If true, keep warnings as "system message" paragraphs in the built documents.
2022-02-27 15:37:20 +01:00
# keep_warnings = False
2016-01-24 20:15:50 -05:00
# -- Options for HTML output ----------------------------------------------
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
2022-02-27 15:37:20 +01:00
html_theme = "sphinx_rtd_theme"
2016-01-24 20:15:50 -05:00
# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
# documentation.
2022-02-27 15:37:20 +01:00
# html_theme_options = {}
2016-01-24 20:15:50 -05:00
# Add any paths that contain custom themes here, relative to this directory.
html_theme_path = []
# The name for this set of Sphinx documents. If None, it defaults to
# "<project> v<release> documentation".
2022-02-27 15:37:20 +01:00
# html_title = None
2016-01-24 20:15:50 -05:00
# A shorter title for the navigation bar. Default is the same as html_title.
2022-02-27 15:37:20 +01:00
# html_short_title = None
2016-01-24 20:15:50 -05:00
# The name of an image file (relative to this directory) to place at the top
# of the sidebar.
2022-02-27 15:37:20 +01:00
# html_logo = None
2016-01-24 20:15:50 -05:00
# The name of an image file (within the static path) to use as favicon of the
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
# pixels large.
2022-02-27 15:37:20 +01:00
# html_favicon = None
2016-01-24 20:15:50 -05:00
# 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".
2022-02-27 15:37:20 +01:00
html_static_path = ["_static"]
2016-01-24 20:15:50 -05:00
2022-04-05 07:03:37 -07:00
# These paths are either relative to html_static_path
# or fully qualified paths (eg. https://...)
html_css_files = [
"css/custom.css",
]
2022-04-09 21:45:15 -07:00
html_js_files = [
"js/darkmode.js",
]
2016-01-24 20:15:50 -05:00
# Add any extra paths that contain custom files (such as robots.txt or
# .htaccess) here, relative to this directory. These files are copied
# directly to the root of the documentation.
2022-02-27 15:37:20 +01:00
# html_extra_path = []
2016-01-24 20:15:50 -05:00
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
# using the given strftime format.
2022-02-27 15:37:20 +01:00
# html_last_updated_fmt = '%b %d, %Y'
2016-01-24 20:15:50 -05:00
# If true, SmartyPants will be used to convert quotes and dashes to
# typographically correct entities.
2022-02-27 15:37:20 +01:00
# html_use_smartypants = True
2016-01-24 20:15:50 -05:00
# Custom sidebar templates, maps document names to template names.
2022-02-27 15:37:20 +01:00
# html_sidebars = {}
2016-01-24 20:15:50 -05:00
# Additional templates that should be rendered to pages, maps page names to
# template names.
2022-02-27 15:37:20 +01:00
# html_additional_pages = {}
2016-01-24 20:15:50 -05:00
# If false, no module index is generated.
2022-02-27 15:37:20 +01:00
# html_domain_indices = True
2016-01-24 20:15:50 -05:00
# If false, no index is generated.
2022-02-27 15:37:20 +01:00
# html_use_index = True
2016-01-24 20:15:50 -05:00
# If true, the index is split into individual pages for each letter.
2022-02-27 15:37:20 +01:00
# html_split_index = False
2016-01-24 20:15:50 -05:00
# If true, links to the reST sources are added to the pages.
2022-02-27 15:37:20 +01:00
# html_show_sourcelink = True
2016-01-24 20:15:50 -05:00
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
2022-02-27 15:37:20 +01:00
# html_show_sphinx = True
2016-01-24 20:15:50 -05:00
# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
2022-02-27 15:37:20 +01:00
# html_show_copyright = True
2016-01-24 20:15:50 -05:00
# If true, an OpenSearch description file will be output, and all pages will
# contain a <link> tag referring to it. The value of this option must be the
# base URL from which the finished HTML is served.
2022-02-27 15:37:20 +01:00
# html_use_opensearch = ''
2016-01-24 20:15:50 -05:00
# This is the file name suffix for HTML files (e.g. ".xhtml").
2022-02-27 15:37:20 +01:00
# html_file_suffix = None
2016-01-24 20:15:50 -05:00
# Output file base name for HTML help builder.
2022-02-27 15:37:20 +01:00
htmlhelp_basename = "paperless"
2016-01-24 20:15:50 -05:00
# -- Options for LaTeX output ---------------------------------------------
latex_elements = {
2022-02-27 15:37:20 +01:00
# The paper size ('letterpaper' or 'a4paper').
#'papersize': 'letterpaper',
# The font size ('10pt', '11pt' or '12pt').
#'pointsize': '10pt',
# Additional stuff for the LaTeX preamble.
#'preamble': '',
2016-01-24 20:15:50 -05:00
}
# Grouping the document tree into LaTeX files. List of tuples
# (source start file, target name, title,
# author, documentclass [howto, manual, or own class]).
latex_documents = [
2022-02-27 15:37:20 +01:00
("index", "paperless.tex", "Paperless Documentation", "Daniel Quinn", "manual"),
2016-01-24 20:15:50 -05:00
]
# The name of an image file (relative to this directory) to place at the top of
# the title page.
2022-02-27 15:37:20 +01:00
# latex_logo = None
2016-01-24 20:15:50 -05:00
# For "manual" documents, if this is true, then toplevel headings are parts,
# not chapters.
2022-02-27 15:37:20 +01:00
# latex_use_parts = False
2016-01-24 20:15:50 -05:00
# If true, show page references after internal links.
2022-02-27 15:37:20 +01:00
# latex_show_pagerefs = False
2016-01-24 20:15:50 -05:00
# If true, show URL addresses after external links.
2022-02-27 15:37:20 +01:00
# latex_show_urls = False
2016-01-24 20:15:50 -05:00
# Documents to append as an appendix to all manuals.
2022-02-27 15:37:20 +01:00
# latex_appendices = []
2016-01-24 20:15:50 -05:00
# If false, no module index is generated.
2022-02-27 15:37:20 +01:00
# latex_domain_indices = True
2016-01-24 20:15:50 -05:00
# -- Options for manual page output ---------------------------------------
# One entry per manual page. List of tuples
# (source start file, name, description, authors, manual section).
2022-02-27 15:37:20 +01:00
man_pages = [("index", "paperless", "Paperless Documentation", ["Daniel Quinn"], 1)]
2016-01-24 20:15:50 -05:00
# If true, show URL addresses after external links.
2022-02-27 15:37:20 +01:00
# man_show_urls = False
2016-01-24 20:15:50 -05:00
# -- Options for Texinfo output -------------------------------------------
# Grouping the document tree into Texinfo files. List of tuples
# (source start file, target name, title, author,
# dir menu entry, description, category)
texinfo_documents = [
2022-02-27 15:37:20 +01:00
(
"index",
"Paperless",
"Paperless Documentation",
"Daniel Quinn",
"paperless",
"Scan, index, and archive all of your paper documents.",
"Miscellaneous",
),
2016-01-24 20:15:50 -05:00
]
# Documents to append as an appendix to all manuals.
2022-02-27 15:37:20 +01:00
# texinfo_appendices = []
2016-01-24 20:15:50 -05:00
# If false, no module index is generated.
2022-02-27 15:37:20 +01:00
# texinfo_domain_indices = True
2016-01-24 20:15:50 -05:00
# How to display URL addresses: 'footnote', 'no', or 'inline'.
2022-02-27 15:37:20 +01:00
# texinfo_show_urls = 'footnote'
2016-01-24 20:15:50 -05:00
# If true, do not generate a @detailmenu in the "Top" node's menu.
2022-02-27 15:37:20 +01:00
# texinfo_no_detailmenu = False
2016-01-24 20:15:50 -05:00
# -- Options for Epub output ----------------------------------------------
# Bibliographic Dublin Core info.
2022-02-27 15:37:20 +01:00
epub_title = "Paperless"
epub_author = "Daniel Quinn"
epub_publisher = "Daniel Quinn"
epub_copyright = "2015, Daniel Quinn"
2016-01-24 20:15:50 -05:00
# The basename for the epub file. It defaults to the project name.
2022-02-27 15:37:20 +01:00
# epub_basename = u'Paperless'
2016-01-24 20:15:50 -05:00
# The HTML theme for the epub output. Since the default themes are not optimized
# for small screen space, using the same theme for HTML and epub output is
# usually not wise. This defaults to 'epub', a theme designed to save visual
# space.
2022-02-27 15:37:20 +01:00
# epub_theme = 'epub'
2016-01-24 20:15:50 -05:00
# The language of the text. It defaults to the language option
# or en if the language is not set.
2022-02-27 15:37:20 +01:00
# epub_language = ''
2016-01-24 20:15:50 -05:00
# The scheme of the identifier. Typical schemes are ISBN or URL.
2022-02-27 15:37:20 +01:00
# epub_scheme = ''
2016-01-24 20:15:50 -05:00
# The unique identifier of the text. This can be a ISBN number
# or the project homepage.
2022-02-27 15:37:20 +01:00
# epub_identifier = ''
2016-01-24 20:15:50 -05:00
# A unique identification for the text.
2022-02-27 15:37:20 +01:00
# epub_uid = ''
2016-01-24 20:15:50 -05:00
# A tuple containing the cover image and cover page html template filenames.
2022-02-27 15:37:20 +01:00
# epub_cover = ()
2016-01-24 20:15:50 -05:00
# A sequence of (type, uri, title) tuples for the guide element of content.opf.
2022-02-27 15:37:20 +01:00
# epub_guide = ()
2016-01-24 20:15:50 -05:00
# HTML files that should be inserted before the pages created by sphinx.
# The format is a list of tuples containing the path and title.
2022-02-27 15:37:20 +01:00
# epub_pre_files = []
2016-01-24 20:15:50 -05:00
# HTML files shat should be inserted after the pages created by sphinx.
# The format is a list of tuples containing the path and title.
2022-02-27 15:37:20 +01:00
# epub_post_files = []
2016-01-24 20:15:50 -05:00
# A list of files that should not be packed into the epub file.
2022-02-27 15:37:20 +01:00
epub_exclude_files = ["search.html"]
2016-01-24 20:15:50 -05:00
# The depth of the table of contents in toc.ncx.
2022-02-27 15:37:20 +01:00
# epub_tocdepth = 3
2016-01-24 20:15:50 -05:00
# Allow duplicate toc entries.
2022-02-27 15:37:20 +01:00
# epub_tocdup = True
2016-01-24 20:15:50 -05:00
# Choose between 'default' and 'includehidden'.
2022-02-27 15:37:20 +01:00
# epub_tocscope = 'default'
2016-01-24 20:15:50 -05:00
# Fix unsupported image types using the PIL.
2022-02-27 15:37:20 +01:00
# epub_fix_images = False
2016-01-24 20:15:50 -05:00
# Scale large images.
2022-02-27 15:37:20 +01:00
# epub_max_image_width = 0
2016-01-24 20:15:50 -05:00
# How to display URL addresses: 'footnote', 'no', or 'inline'.
2022-02-27 15:37:20 +01:00
# epub_show_urls = 'inline'
2016-01-24 20:15:50 -05:00
# If false, no index is generated.
2022-02-27 15:37:20 +01:00
# epub_use_index = True
2016-01-24 20:15:50 -05:00
# Example configuration for intersphinx: refer to the Python standard library.
2022-02-27 15:37:20 +01:00
intersphinx_mapping = {"http://docs.python.org/": None}