| 1 |
# -*- coding: utf-8 -*- |
| 2 |
# |
| 3 |
# Configuration file for the Sphinx documentation builder. |
| 4 |
# |
| 5 |
# This file does only contain a selection of the most common options. For a |
| 6 |
# full list see the documentation: |
| 7 |
# http://www.sphinx-doc.org/en/master/config |
| 8 |
|
| 9 |
# -- Path setup -------------------------------------------------------------- |
| 10 |
|
| 11 |
# If extensions (or modules to document with autodoc) are in another directory, |
| 12 |
# add these directories to sys.path here. If the directory is relative to the |
| 13 |
# documentation root, use os.path.abspath to make it absolute, like shown here. |
| 14 |
# |
| 15 |
# import os |
| 16 |
# import sys |
| 17 |
# sys.path.insert(0, os.path.abspath('.')) |
| 18 |
|
| 19 |
|
| 20 |
# -- Project information ----------------------------------------------------- |
| 21 |
|
| 22 |
project = 'doit' |
| 23 |
copyright = '2008-2020, Eduardo Schettino' |
| 24 |
author = 'Eduardo Schettino (schettino72)' |
| 25 |
|
| 26 |
# The short X.Y version |
| 27 |
version = '0.36' |
| 28 |
# The full version, including alpha/beta/rc tags |
| 29 |
release = '0.36.0' |
| 30 |
|
| 31 |
|
| 32 |
# -- General configuration --------------------------------------------------- |
| 33 |
|
| 34 |
# If your documentation needs a minimal Sphinx version, state it here. |
| 35 |
# |
| 36 |
# needs_sphinx = '1.0' |
| 37 |
|
| 38 |
# Add any Sphinx extension module names here, as strings. They can be |
| 39 |
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
| 40 |
# ones. |
| 41 |
extensions = [ |
| 42 |
'sphinx.ext.autodoc', |
| 43 |
'sphinx.ext.doctest', |
| 44 |
'sphinx.ext.ifconfig', |
| 45 |
'sphinx.ext.viewcode', |
| 46 |
'sphinx.ext.githubpages', |
| 47 |
'sphinx_sitemap', |
| 48 |
'sphinx_reredirects', |
| 49 |
] |
| 50 |
|
| 51 |
# Add any paths that contain templates here, relative to this directory. |
| 52 |
templates_path = ['_templates'] |
| 53 |
|
| 54 |
# The suffix(es) of source filenames. |
| 55 |
# You can specify multiple suffix as a list of string: |
| 56 |
# |
| 57 |
# source_suffix = ['.rst', '.md'] |
| 58 |
source_suffix = '.rst' |
| 59 |
|
| 60 |
# The master toctree document. |
| 61 |
master_doc = 'contents' |
| 62 |
|
| 63 |
# The language for content autogenerated by Sphinx. Refer to documentation |
| 64 |
# for a list of supported languages. |
| 65 |
# |
| 66 |
# This is also used if you do content translation via gettext catalogs. |
| 67 |
# Usually you set "language" from the command line for these cases. |
| 68 |
language = None |
| 69 |
|
| 70 |
# List of patterns, relative to source directory, that match files and |
| 71 |
# directories to ignore when looking for source files. |
| 72 |
# This pattern also affects html_static_path and html_extra_path . |
| 73 |
exclude_patterns = ['_build', 'presentation.rst', 'old'] |
| 74 |
|
| 75 |
# The name of the Pygments (syntax highlighting) style to use. |
| 76 |
pygments_style = None |
| 77 |
|
| 78 |
# non-default configuration for doit |
| 79 |
html_favicon = '_static/favico.ico' |
| 80 |
html_show_sourcelink = False |
| 81 |
html_extra_path = ['index.html', 'robots.txt', 'google726fc03ab55ebbfc.html'] |
| 82 |
html_logo = '_static/doit-logo-small.png' |
| 83 |
|
| 84 |
|
| 85 |
# -- Options for HTML output ------------------------------------------------- |
| 86 |
|
| 87 |
html_baseurl = 'https://pydoit.org' |
| 88 |
|
| 89 |
# The theme to use for HTML and HTML Help pages. See the documentation for |
| 90 |
# a list of builtin themes. |
| 91 |
|
| 92 |
html_theme = 'press' #'sphinx_rtd_theme' |
| 93 |
|
| 94 |
# Theme options are theme-specific and customize the look and feel of a theme |
| 95 |
# further. For a list of options available for each theme, see the |
| 96 |
# documentation. |
| 97 |
# |
| 98 |
# html_theme_options = {} |
| 99 |
|
| 100 |
# Add any paths that contain custom static files (such as style sheets) here, |
| 101 |
# relative to this directory. They are copied after the builtin static files, |
| 102 |
# so a file named "default.css" will overwrite the builtin "default.css". |
| 103 |
html_static_path = ['_static'] |
| 104 |
|
| 105 |
# Custom sidebar templates, must be a dictionary that maps document names |
| 106 |
# to template names. |
| 107 |
# |
| 108 |
# The default sidebars (for documents that don't match any pattern) are |
| 109 |
# defined by theme itself. Builtin themes are using these templates by |
| 110 |
# default: ``['localtoc.html', 'relations.html', 'sourcelink.html', |
| 111 |
# 'searchbox.html']``. |
| 112 |
# |
| 113 |
html_sidebars = { |
| 114 |
'**': [ |
| 115 |
'util/searchbox.html', |
| 116 |
'util/sidetoc.html', |
| 117 |
'donate.html' |
| 118 |
] |
| 119 |
} |
| 120 |
|
| 121 |
|
| 122 |
html_theme_options = { |
| 123 |
"external_links": [ |
| 124 |
("Twitter", "https://twitter.com/pydoit"), |
| 125 |
("Github", "https://github.com/pydoit/doit"), |
| 126 |
], |
| 127 |
} |
| 128 |
|
| 129 |
|
| 130 |
# configuration for sphinx_sitemap extension |
| 131 |
sitemap_url_scheme = "{link}" |
| 132 |
|
| 133 |
redirects = { |
| 134 |
"tutorial_1": "tutorial-1.html", |
| 135 |
"cmd_other": "cmd-other.html", |
| 136 |
"cmd_run": "cmd-run.html", |
| 137 |
"task_args": "task-args.html", |
| 138 |
"task_creation": "task-creation.html", |
| 139 |
} |
| 140 |
|
| 141 |
# -- Options for HTMLHelp output --------------------------------------------- |
| 142 |
|
| 143 |
# Output file base name for HTML help builder. |
| 144 |
htmlhelp_basename = 'doitdoc' |
| 145 |
|
| 146 |
|
| 147 |
# -- Options for LaTeX output ------------------------------------------------ |
| 148 |
|
| 149 |
latex_elements = { |
| 150 |
# The paper size ('letterpaper' or 'a4paper'). |
| 151 |
# |
| 152 |
# 'papersize': 'letterpaper', |
| 153 |
|
| 154 |
# The font size ('10pt', '11pt' or '12pt'). |
| 155 |
# |
| 156 |
# 'pointsize': '10pt', |
| 157 |
|
| 158 |
# Additional stuff for the LaTeX preamble. |
| 159 |
# |
| 160 |
# 'preamble': '', |
| 161 |
|
| 162 |
# Latex figure (float) alignment |
| 163 |
# |
| 164 |
# 'figure_align': 'htbp', |
| 165 |
} |
| 166 |
|
| 167 |
# Grouping the document tree into LaTeX files. List of tuples |
| 168 |
# (source start file, target name, title, |
| 169 |
# author, documentclass [howto, manual, or own class]). |
| 170 |
latex_documents = [ |
| 171 |
(master_doc, 'doit.tex', 'doit Documentation', |
| 172 |
'schettino72', 'manual'), |
| 173 |
] |
| 174 |
|
| 175 |
|
| 176 |
# -- Options for manual page output ------------------------------------------ |
| 177 |
|
| 178 |
# One entry per manual page. List of tuples |
| 179 |
# (source start file, name, description, authors, manual section). |
| 180 |
man_pages = [ |
| 181 |
(master_doc, 'doit', 'doit Documentation', |
| 182 |
[author], 1) |
| 183 |
] |
| 184 |
|
| 185 |
|
| 186 |
# -- Options for Texinfo output ---------------------------------------------- |
| 187 |
|
| 188 |
# Grouping the document tree into Texinfo files. List of tuples |
| 189 |
# (source start file, target name, title, author, |
| 190 |
# dir menu entry, description, category) |
| 191 |
texinfo_documents = [ |
| 192 |
(master_doc, 'doit', 'doit Documentation', |
| 193 |
author, 'doit', 'One line description of project.', |
| 194 |
'Miscellaneous'), |
| 195 |
] |
| 196 |
|
| 197 |
|
| 198 |
# -- Extension configuration ------------------------------------------------- |