John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 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/stable/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 | # -- Project information ----------------------------------------------------- |
| 20 | |
John DeNisco | c96d618 | 2019-11-06 10:58:28 -0800 | [diff] [blame] | 21 | project = u'The Vector Packet Processor' |
John DeNisco | ce96dda | 2018-08-14 16:04:09 -0400 | [diff] [blame] | 22 | copyright = u'2018, Linux Foundation' |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 23 | author = u'John DeNisco' |
| 24 | |
| 25 | # The short X.Y version |
jdenisco | 8b1c7f3 | 2019-09-11 09:05:45 -0400 | [diff] [blame] | 26 | version = u'master' |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 27 | # The full version, including alpha/beta/rc tags |
John DeNisco | c96d618 | 2019-11-06 10:58:28 -0800 | [diff] [blame] | 28 | release = u'20.01' |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 29 | |
| 30 | |
| 31 | # -- General configuration --------------------------------------------------- |
| 32 | |
| 33 | # If your documentation needs a minimal Sphinx version, state it here. |
| 34 | # |
| 35 | # needs_sphinx = '1.0' |
| 36 | |
| 37 | # Add any Sphinx extension module names here, as strings. They can be |
| 38 | # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
| 39 | # ones. |
| 40 | extensions = [ |
| 41 | 'sphinx.ext.autodoc', |
| 42 | 'sphinx.ext.viewcode', |
jdenisco | 8a6e1b1 | 2019-05-13 12:40:21 -0400 | [diff] [blame] | 43 | 'recommonmark', |
Paul Vinciguerra | 340c15c | 2019-11-05 15:34:36 -0500 | [diff] [blame] | 44 | 'sphinxcontrib.spelling'] |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 45 | |
Paul Vinciguerra | 340c15c | 2019-11-05 15:34:36 -0500 | [diff] [blame] | 46 | spelling_word_list_filename = 'spelling_wordlist.txt' |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 47 | # Add any paths that contain templates here, relative to this directory. |
| 48 | templates_path = ['_templates'] |
| 49 | |
| 50 | # The suffix(es) of source filenames. |
| 51 | # You can specify multiple suffix as a list of string: |
| 52 | # |
jdenisco | 8a6e1b1 | 2019-05-13 12:40:21 -0400 | [diff] [blame] | 53 | source_suffix = { |
| 54 | '.rst': 'restructuredtext', |
| 55 | '.md': 'markdown' |
Paul Vinciguerra | 340c15c | 2019-11-05 15:34:36 -0500 | [diff] [blame] | 56 | } |
jdenisco | 8a6e1b1 | 2019-05-13 12:40:21 -0400 | [diff] [blame] | 57 | |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 58 | # The master toctree document. |
| 59 | master_doc = 'index' |
| 60 | |
| 61 | # The language for content autogenerated by Sphinx. Refer to documentation |
| 62 | # for a list of supported languages. |
| 63 | # |
| 64 | # This is also used if you do content translation via gettext catalogs. |
| 65 | # Usually you set "language" from the command line for these cases. |
| 66 | language = None |
| 67 | |
| 68 | # List of patterns, relative to source directory, that match files and |
| 69 | # directories to ignore when looking for source files. |
| 70 | # This pattern also affects html_static_path and html_extra_path . |
| 71 | exclude_patterns = [u'_build', 'Thumbs.db', '.DS_Store'] |
| 72 | |
| 73 | # The name of the Pygments (syntax highlighting) style to use. |
| 74 | pygments_style = 'default' |
| 75 | |
| 76 | |
| 77 | # -- Options for HTML output ------------------------------------------------- |
| 78 | |
| 79 | # The theme to use for HTML and HTML Help pages. See the documentation for |
| 80 | # a list of builtin themes. |
| 81 | # |
| 82 | |
| 83 | # import sphinx_theme |
| 84 | |
| 85 | html_theme = "sphinx_rtd_theme" |
| 86 | # html_theme = 'neo_rtd_theme' |
| 87 | |
| 88 | html_theme_path = ["_themes", ] |
| 89 | # html_theme_path = [sphinx_theme.get_html_theme_path('neo-rtd-theme')] |
| 90 | |
| 91 | # All available themes: |
| 92 | # print(sphinx_theme.THEME_LIST) |
| 93 | # >> ['stanford_theme', 'neo_rtd_theme'] |
| 94 | |
| 95 | # The name of an image file (relative to this directory) to place at the top |
| 96 | # of the sidebar. |
| 97 | html_logo = '_static/fd-io_red_white.png' |
| 98 | |
| 99 | # Theme options are theme-specific and customize the look and feel of a theme |
| 100 | # further. For a list of options available for each theme, see the |
| 101 | # documentation. |
| 102 | # |
| 103 | # html_theme_options = {} |
| 104 | |
| 105 | # Add any paths that contain custom static files (such as style sheets) here, |
| 106 | # relative to this directory. They are copied after the builtin static files, |
| 107 | # so a file named "default.css" will overwrite the builtin "default.css". |
| 108 | html_static_path = ['_static'] |
| 109 | |
Paul Vinciguerra | 340c15c | 2019-11-05 15:34:36 -0500 | [diff] [blame] | 110 | |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 111 | def setup(app): |
| 112 | app.add_stylesheet('css/rules.css') |
| 113 | |
| 114 | # Custom sidebar templates, must be a dictionary that maps document names |
| 115 | # to template names. |
| 116 | # |
| 117 | # The default sidebars (for documents that don't match any pattern) are |
| 118 | # defined by theme itself. Builtin themes are using these templates by |
| 119 | # default: ``['localtoc.html', 'relations.html', 'sourcelink.html', |
| 120 | # 'searchbox.html']``. |
| 121 | # |
| 122 | # html_sidebars = {} |
| 123 | |
| 124 | |
| 125 | # -- Options for HTMLHelp output --------------------------------------------- |
| 126 | |
| 127 | # Output file base name for HTML help builder. |
| 128 | htmlhelp_basename = 'Vector Packet Processor' |
| 129 | |
| 130 | |
| 131 | # -- Options for LaTeX output ------------------------------------------------ |
| 132 | |
| 133 | latex_elements = { |
| 134 | # The paper size ('letterpaper' or 'a4paper'). |
| 135 | # |
| 136 | # 'papersize': 'letterpaper', |
| 137 | |
| 138 | # The font size ('10pt', '11pt' or '12pt'). |
| 139 | # |
| 140 | # 'pointsize': '10pt', |
| 141 | |
| 142 | # Additional stuff for the LaTeX preamble. |
| 143 | # |
| 144 | # 'preamble': '', |
| 145 | |
| 146 | # Latex figure (float) alignment |
| 147 | # |
| 148 | # 'figure_align': 'htbp', |
| 149 | } |
| 150 | |
| 151 | # Grouping the document tree into LaTeX files. List of tuples |
| 152 | # (source start file, target name, title, |
| 153 | # author, documentclass [howto, manual, or own class]). |
| 154 | latex_documents = [ |
Paul Vinciguerra | 340c15c | 2019-11-05 15:34:36 -0500 | [diff] [blame] | 155 | (master_doc, 'Vector Packet Processor.tex', |
| 156 | u'Vector Packet Processor Documentation', |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 157 | u'John DeNisco', 'manual'), |
| 158 | ] |
| 159 | |
| 160 | |
| 161 | # -- Options for manual page output ------------------------------------------ |
| 162 | |
| 163 | # One entry per manual page. List of tuples |
| 164 | # (source start file, name, description, authors, manual section). |
| 165 | man_pages = [ |
Paul Vinciguerra | 340c15c | 2019-11-05 15:34:36 -0500 | [diff] [blame] | 166 | (master_doc, 'Vector Packet Processor', |
| 167 | u'Vector Packet Processor Documentation', |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 168 | [author], 1) |
| 169 | ] |
| 170 | |
| 171 | |
| 172 | # -- Options for Texinfo output ---------------------------------------------- |
| 173 | |
| 174 | # Grouping the document tree into Texinfo files. List of tuples |
| 175 | # (source start file, target name, title, author, |
| 176 | # dir menu entry, description, category) |
| 177 | texinfo_documents = [ |
Paul Vinciguerra | 340c15c | 2019-11-05 15:34:36 -0500 | [diff] [blame] | 178 | (master_doc, 'Vector Packet Processor', |
| 179 | u'Vector Packet Processor Documentation', |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 180 | author, 'Vector Packet Processor', 'One line description of project.', |
| 181 | 'Miscellaneous'), |
| 182 | ] |
| 183 | |
| 184 | |
| 185 | # -- Extension configuration ------------------------------------------------- |