Debian Codegraph @

docs/conf.py

raw
1 # Configuration file for the Sphinx documentation builder.
2 #
3 # This file only contains a selection of the most common options. For a full
4 # list see the documentation:
5 # https://www.sphinx-doc.org/en/master/usage/configuration.html
6
7 # -- Path setup --------------------------------------------------------------
8
9 # If extensions (or modules to document with autodoc) are in another directory,
10 # add these directories to sys.path here. If the directory is relative to the
11 # documentation root, use os.path.abspath to make it absolute, like shown here.
12 #
13 # import os
14 # import sys
15 # sys.path.insert(0, os.path.abspath('.'))
16
17 from datetime import date
18
19
20 # -- Project information -----------------------------------------------------
21
22 project = 'sphinx-reredirects'
23 copyright = f'{date.today().year}, Documatt'
24 author = 'Matt'
25
26
27 # -- General configuration ---------------------------------------------------
28
29 # Add any Sphinx extension module names here, as strings. They can be
30 # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
31 # ones.
32 extensions = [
33 ]
34
35 # Add any paths that contain templates here, relative to this directory.
36 templates_path = ['_templates']
37
38 # List of patterns, relative to source directory, that match files and
39 # directories to ignore when looking for source files.
40 # This pattern also affects html_static_path and html_extra_path.
41 exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
42
43 rst_epilog = f'''
44 .. |project| replace:: {project}
45 '''
46
47 highlight_language = 'none'
48
49 # -- Options for HTML output -------------------------------------------------
50
51 # The theme to use for HTML and HTML Help pages. See the documentation for
52 # a list of builtin themes.
53 html_logo = 'logo.png'
54
55 html_theme = 'sphinx_documatt_theme'
56 html_theme_options = {
57 'motto': f'{project} is the extension for <a href="https://www.sphinx-doc.org/">Sphinx documentation</a> projects that handles redirects for moved pages. It generates HTML pages with meta refresh redirects to the new page location to prevent 404 errors if you rename or move your documents.',
58 'header_text': project,
59 'header_logo_style': 'height: 3em',
60 'footer_logo_style': 'height: 3em',
61 }