Mercurial > p > roundup > code
comparison doc/conf.py @ 5029:333b01621772
Preparing 1.5.1 steps 7/16
7. python setup.py build_doc
* sync conf.py with Sphinx 1.3
| author | anatoly techtonik <techtonik@gmail.com> |
|---|---|
| date | Mon, 11 Jan 2016 21:16:08 +0300 |
| parents | 46b7d1ee4fab |
| children | 515ab1749b14 |
comparison
equal
deleted
inserted
replaced
| 5028:46b7d1ee4fab | 5029:333b01621772 |
|---|---|
| 7 # --- | 7 # --- |
| 8 | 8 |
| 9 # Roundup documentation build configuration file, created by | 9 # Roundup documentation build configuration file, created by |
| 10 # sphinx-quickstart on Tue Jan 20 17:33:20 2009. | 10 # sphinx-quickstart on Tue Jan 20 17:33:20 2009. |
| 11 # | 11 # |
| 12 # This file is execfile()d with the current directory set to its containing dir. | 12 # This file is execfile()d with the current directory set to its |
| 13 # | 13 # containing dir. |
| 14 # The contents of this file are pickled, so don't put values in the namespace | 14 # |
| 15 # that aren't pickleable (module imports are okay, they're removed automatically). | 15 # Note that not all possible configuration values are present in this |
| 16 # autogenerated file. | |
| 16 # | 17 # |
| 17 # All configuration values have a default; values that are commented out | 18 # All configuration values have a default; values that are commented out |
| 18 # serve to show the default. | 19 # serve to show the default. |
| 19 | 20 |
| 20 import sys, os | 21 import sys |
| 22 import os | |
| 21 | 23 |
| 22 | 24 |
| 23 # Read Roundup version by importing it from parent directory, | 25 # Read Roundup version by importing it from parent directory, |
| 24 # this ensures that 'unkown version' is inserted even if | 26 # this ensures that 'unkown version' is inserted even if |
| 25 # `roundup` is importable from other location in sys.path | 27 # `roundup` is importable from other location in sys.path |
| 33 VERSION = SHORTVER = '(unknown version)' | 35 VERSION = SHORTVER = '(unknown version)' |
| 34 finally: | 36 finally: |
| 35 sys.path = SYSSAVE | 37 sys.path = SYSSAVE |
| 36 | 38 |
| 37 | 39 |
| 38 # If your extensions are in another directory, add it here. If the directory | 40 # If extensions (or modules to document with autodoc) are in another directory, |
| 39 # is relative to the documentation root, use os.path.abspath to make it | 41 # add these directories to sys.path here. If the directory is relative to the |
| 40 # absolute, like shown here. | 42 # documentation root, use os.path.abspath to make it absolute, like shown here. |
| 41 #sys.path.append(os.path.abspath('.')) | 43 #sys.path.insert(0, os.path.abspath('.')) |
| 42 | 44 |
| 43 # General configuration | 45 # -- General configuration ------------------------------------------------ |
| 44 # --------------------- | 46 |
| 45 | 47 # If your documentation needs a minimal Sphinx version, state it here. |
| 46 # Add any Sphinx extension module names here, as strings. They can be extensions | 48 #needs_sphinx = '1.0' |
| 47 # coming with Sphinx (named 'sphinx.ext.*') or your custom ones. | 49 |
| 50 # Add any Sphinx extension module names here, as strings. They can be | |
| 51 # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom | |
| 52 # ones. | |
| 48 #extensions = ['toctree'] | 53 #extensions = ['toctree'] |
| 49 | 54 |
| 50 # Add any paths that contain templates here, relative to this directory. | 55 # Add any paths that contain templates here, relative to this directory. |
| 51 templates_path = ['_templates'] | 56 templates_path = ['_templates'] |
| 52 | 57 |
| 53 # The suffix of source filenames. | 58 # The suffix(es) of source filenames. |
| 59 # You can specify multiple suffix as a list of string: | |
| 60 # source_suffix = ['.rst', '.md'] | |
| 54 source_suffix = '.txt' | 61 source_suffix = '.txt' |
| 55 | 62 |
| 56 # The encoding of source files. | 63 # The encoding of source files. |
| 57 #source_encoding = 'utf-8' | 64 #source_encoding = 'utf-8' |
| 58 | 65 |
| 72 # The full version, including alpha/beta/rc tags. | 79 # The full version, including alpha/beta/rc tags. |
| 73 release = VERSION | 80 release = VERSION |
| 74 | 81 |
| 75 # The language for content autogenerated by Sphinx. Refer to documentation | 82 # The language for content autogenerated by Sphinx. Refer to documentation |
| 76 # for a list of supported languages. | 83 # for a list of supported languages. |
| 77 #language = None | 84 # |
| 85 # This is also used if you do content translation via gettext catalogs. | |
| 86 # Usually you set "language" from the command line for these cases. | |
| 87 language = None | |
| 78 | 88 |
| 79 # There are two options for replacing |today|: either, you set today to some | 89 # There are two options for replacing |today|: either, you set today to some |
| 80 # non-false value, then it is used: | 90 # non-false value, then it is used: |
| 81 #today = '' | 91 #today = '' |
| 82 # Else, today_fmt is used as the format for a strftime call. | 92 # Else, today_fmt is used as the format for a strftime call. |
| 83 #today_fmt = '%B %d, %Y' | 93 #today_fmt = '%B %d, %Y' |
| 84 | 94 |
| 85 # List of documents that shouldn't be included in the build. | 95 # List of patterns, relative to source directory, that match files and |
| 86 #unused_docs = [] | 96 # directories to ignore when looking for source files. |
| 87 | 97 exclude_patterns = ['_build'] |
| 88 # List of directories, relative to source directory, that shouldn't be searched | 98 |
| 89 # for source files. | 99 # The reST default role (used for this markup: `text`) to use for all |
| 90 exclude_trees = ['.build'] | 100 # documents. |
| 91 | |
| 92 # The reST default role (used for this markup: `text`) to use for all documents. | |
| 93 #default_role = None | 101 #default_role = None |
| 94 | 102 |
| 95 # If true, '()' will be appended to :func: etc. cross-reference text. | 103 # If true, '()' will be appended to :func: etc. cross-reference text. |
| 96 #add_function_parentheses = True | 104 #add_function_parentheses = True |
| 97 | 105 |
| 104 #show_authors = False | 112 #show_authors = False |
| 105 | 113 |
| 106 # The name of the Pygments (syntax highlighting) style to use. | 114 # The name of the Pygments (syntax highlighting) style to use. |
| 107 pygments_style = 'sphinx' | 115 pygments_style = 'sphinx' |
| 108 | 116 |
| 109 | 117 # A list of ignored prefixes for module index sorting. |
| 110 # Options for HTML output | 118 #modindex_common_prefix = [] |
| 111 # ----------------------- | 119 |
| 112 | 120 # If true, keep warnings as "system message" paragraphs in the built documents. |
| 121 #keep_warnings = False | |
| 122 | |
| 123 # -- Options for HTML output ---------------------------------------------- | |
| 124 | |
| 125 #-- pre Sphinx 1.3 | |
| 113 # The style sheet to use for HTML and HTML Help pages. A file of that name | 126 # The style sheet to use for HTML and HTML Help pages. A file of that name |
| 114 # must exist either in Sphinx' static/ path, or in one of the custom paths | 127 # must exist either in Sphinx' static/ path, or in one of the custom paths |
| 115 # given in html_static_path. | 128 # given in html_static_path. |
| 116 html_style = 'default.css' | 129 html_style = 'default.css' |
| 117 | 130 |
| 131 #-- Sphinx 1.3 | |
| 132 # The theme to use for HTML and HTML Help pages. See the documentation for | |
| 133 # a list of builtin themes. | |
| 134 #html_theme = 'alabaster' | |
| 135 | |
| 136 # Theme options are theme-specific and customize the look and feel of a theme | |
| 137 # further. For a list of options available for each theme, see the | |
| 138 # documentation. | |
| 139 #html_theme_options = {} | |
| 140 | |
| 141 # Add any paths that contain custom themes here, relative to this directory. | |
| 142 #html_theme_path = [] | |
| 143 | |
| 144 # The name for this set of Sphinx documents. If None, it defaults to | |
| 145 # "<project> v<release> documentation". | |
| 146 #html_title = None | |
| 147 | |
| 148 # A shorter title for the navigation bar. Default is the same as html_title. | |
| 149 #html_short_title = None | |
| 150 | |
| 151 # The name of an image file (relative to this directory) to place at the top | |
| 152 # of the sidebar. | |
| 153 #html_logo = None | |
| 154 | |
| 155 # The name of an image file (within the static path) to use as favicon of the | |
| 156 # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 | |
| 157 # pixels large. | |
| 158 #html_favicon = None | |
| 159 | |
| 160 # Add any paths that contain custom static files (such as style sheets) here, | |
| 161 # relative to this directory. They are copied after the builtin static files, | |
| 162 # so a file named "default.css" will overwrite the builtin "default.css". | |
| 163 html_static_path = ['_static'] | |
| 164 | |
| 118 # Add any extra paths that contain custom files (such as robots.txt or | 165 # Add any extra paths that contain custom files (such as robots.txt or |
| 119 # .htaccess) here, relative to this directory. These files are copied | 166 # .htaccess) here, relative to this directory. These files are copied |
| 120 # directly to the root of the documentation. | 167 # directly to the root of the documentation. |
| 121 html_extra_path = ['html_extra'] | 168 html_extra_path = ['html_extra'] |
| 122 | 169 |
| 123 # The name for this set of Sphinx documents. If None, it defaults to | |
| 124 # "<project> v<release> documentation". | |
| 125 #html_title = None | |
| 126 | |
| 127 # A shorter title for the navigation bar. Default is the same as html_title. | |
| 128 #html_short_title = None | |
| 129 | |
| 130 # The name of an image file (relative to this directory) to place at the top | |
| 131 # of the sidebar. | |
| 132 #html_logo = None | |
| 133 | |
| 134 # The name of an image file (within the static path) to use as favicon of the | |
| 135 # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 | |
| 136 # pixels large. | |
| 137 #html_favicon = None | |
| 138 | |
| 139 # Add any paths that contain custom static files (such as style sheets) here, | |
| 140 # relative to this directory. They are copied after the builtin static files, | |
| 141 # so a file named "default.css" will overwrite the builtin "default.css". | |
| 142 html_static_path = ['_static'] | |
| 143 | |
| 144 # If not '', a 'Last updated on:' timestamp is inserted at every page bottom, | 170 # If not '', a 'Last updated on:' timestamp is inserted at every page bottom, |
| 145 # using the given strftime format. | 171 # using the given strftime format. |
| 146 html_last_updated_fmt = '%b %d, %Y' | 172 html_last_updated_fmt = '%b %d, %Y' |
| 147 | 173 |
| 148 # If true, SmartyPants will be used to convert quotes and dashes to | 174 # If true, SmartyPants will be used to convert quotes and dashes to |
| 150 #html_use_smartypants = True | 176 #html_use_smartypants = True |
| 151 | 177 |
| 152 # Custom sidebar templates, maps document names to template names. | 178 # Custom sidebar templates, maps document names to template names. |
| 153 #html_sidebars = {} | 179 #html_sidebars = {} |
| 154 | 180 |
| 155 html_collapse_toctree = True | |
| 156 | |
| 157 # Additional templates that should be rendered to pages, maps page names to | 181 # Additional templates that should be rendered to pages, maps page names to |
| 158 # template names. | 182 # template names. |
| 159 #html_additional_pages = {} | 183 #html_additional_pages = {} |
| 160 | 184 |
| 161 # If false, no module index is generated. | 185 # If false, no module index is generated. |
| 162 #html_use_modindex = True | 186 #html_domain_indices = True |
| 163 | 187 |
| 164 # If false, no index is generated. | 188 # If false, no index is generated. |
| 165 #html_use_index = True | 189 #html_use_index = True |
| 166 | 190 |
| 167 # If true, the index is split into individual pages for each letter. | 191 # If true, the index is split into individual pages for each letter. |
| 168 #html_split_index = False | 192 #html_split_index = False |
| 169 | 193 |
| 170 # If true, the reST sources are included in the HTML build as _sources/<name>. | 194 # If true, links to the reST sources are added to the pages. |
| 171 #html_copy_source = True | 195 #html_show_sourcelink = True |
| 196 | |
| 197 # If true, "Created using Sphinx" is shown in the HTML footer. Default is True. | |
| 198 #html_show_sphinx = True | |
| 199 | |
| 200 # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True. | |
| 201 #html_show_copyright = True | |
| 172 | 202 |
| 173 # If true, an OpenSearch description file will be output, and all pages will | 203 # If true, an OpenSearch description file will be output, and all pages will |
| 174 # contain a <link> tag referring to it. The value of this option must be the | 204 # contain a <link> tag referring to it. The value of this option must be the |
| 175 # base URL from which the finished HTML is served. | 205 # base URL from which the finished HTML is served. |
| 176 #html_use_opensearch = '' | 206 #html_use_opensearch = '' |
| 177 | 207 |
| 178 # If nonempty, this is the file name suffix for HTML files (e.g. ".xhtml"). | 208 # This is the file name suffix for HTML files (e.g. ".xhtml"). |
| 179 #html_file_suffix = '' | 209 #html_file_suffix = None |
| 210 | |
| 211 # Language to be used for generating the HTML full-text search index. | |
| 212 # Sphinx supports the following languages: | |
| 213 # 'da', 'de', 'en', 'es', 'fi', 'fr', 'hu', 'it', 'ja' | |
| 214 # 'nl', 'no', 'pt', 'ro', 'ru', 'sv', 'tr' | |
| 215 #html_search_language = 'en' | |
| 216 | |
| 217 # A dictionary with options for the search language support, empty by default. | |
| 218 # Now only 'ja' uses this config value | |
| 219 #html_search_options = {'type': 'default'} | |
| 220 | |
| 221 # The name of a javascript file (relative to the configuration directory) that | |
| 222 # implements a search results scorer. If empty, the default will be used. | |
| 223 #html_search_scorer = 'scorer.js' | |
| 180 | 224 |
| 181 # Output file base name for HTML help builder. | 225 # Output file base name for HTML help builder. |
| 182 htmlhelp_basename = 'Roundupdoc' | 226 htmlhelp_basename = 'roundupdoc' |
| 183 | 227 |
| 184 | 228 # -- Options for LaTeX output --------------------------------------------- |
| 185 # Options for LaTeX output | 229 |
| 186 # ------------------------ | 230 latex_elements = { |
| 187 | 231 # The paper size ('letterpaper' or 'a4paper'). |
| 188 # The paper size ('letter' or 'a4'). | 232 #'papersize': 'letterpaper', |
| 189 #latex_paper_size = 'letter' | |
| 190 | 233 |
| 191 # The font size ('10pt', '11pt' or '12pt'). | 234 # The font size ('10pt', '11pt' or '12pt'). |
| 192 #latex_font_size = '10pt' | 235 #'pointsize': '10pt', |
| 236 | |
| 237 # Additional stuff for the LaTeX preamble. | |
| 238 #'preamble': '', | |
| 239 | |
| 240 # Latex figure (float) alignment | |
| 241 #'figure_align': 'htbp', | |
| 242 } | |
| 193 | 243 |
| 194 # Grouping the document tree into LaTeX files. List of tuples | 244 # Grouping the document tree into LaTeX files. List of tuples |
| 195 # (source start file, target name, title, author, document class [howto/manual]). | 245 # (source start file, target name, title, |
| 246 # author, documentclass [howto, manual, or own class]). | |
| 196 latex_documents = [ | 247 latex_documents = [ |
| 197 ('docs/index', 'Roundup.tex', u'Roundup Documentation', | 248 ('docs/index', 'Roundup.tex', u'Roundup Documentation', |
| 198 u'Richard Jones', 'manual'), | 249 u'Richard Jones', 'manual'), |
| 199 ] | 250 ] |
| 200 | 251 |
| 204 | 255 |
| 205 # For "manual" documents, if this is true, then toplevel headings are parts, | 256 # For "manual" documents, if this is true, then toplevel headings are parts, |
| 206 # not chapters. | 257 # not chapters. |
| 207 #latex_use_parts = False | 258 #latex_use_parts = False |
| 208 | 259 |
| 209 # Additional stuff for the LaTeX preamble. | 260 # If true, show page references after internal links. |
| 210 #latex_preamble = '' | 261 #latex_show_pagerefs = False |
| 262 | |
| 263 # If true, show URL addresses after external links. | |
| 264 #latex_show_urls = False | |
| 211 | 265 |
| 212 # Documents to append as an appendix to all manuals. | 266 # Documents to append as an appendix to all manuals. |
| 213 #latex_appendices = [] | 267 #latex_appendices = [] |
| 214 | 268 |
| 215 # If false, no module index is generated. | 269 # If false, no module index is generated. |
| 216 #latex_use_modindex = True | 270 #latex_domain_indices = True |
