| 1 |
# -*- coding: utf-8 -*- |
| 2 |
from __future__ import (absolute_import, division, print_function) |
| 3 |
__metaclass__ = type |
| 4 |
|
| 5 |
# |
| 6 |
# Configuration file for the Sphinx documentation builder. |
| 7 |
# |
| 8 |
# This file does only contain a selection of the most common options. For a |
| 9 |
# full list see the documentation: |
| 10 |
# http://www.sphinx-doc.org/en/master/config |
| 11 |
|
| 12 |
# -- Path setup -------------------------------------------------------------- |
| 13 |
|
| 14 |
# If extensions (or modules to document with autodoc) are in another directory, |
| 15 |
# add these directories to sys.path here. If the directory is relative to the |
| 16 |
# documentation root, use os.path.abspath to make it absolute, like shown here. |
| 17 |
# |
| 18 |
import os |
| 19 |
import sys |
| 20 |
sys.path.insert(0, os.path.abspath('../plugins/plugin_utils/')) |
| 21 |
# sys.path.insert(0, os.path.abspath('.')) |
| 22 |
|
| 23 |
# -- Project information ----------------------------------------------------- |
| 24 |
|
| 25 |
project = 'MerakiAnsibleActions' |
| 26 |
copyright = u'Copyright (c) 2021 Cisco Systems' |
| 27 |
author = u'' |
| 28 |
|
| 29 |
# The short X.Y version |
| 30 |
version = '' |
| 31 |
# The full version, including alpha/beta/rc tags |
| 32 |
release = '' |
| 33 |
|
| 34 |
# -- General configuration --------------------------------------------------- |
| 35 |
|
| 36 |
# If your documentation needs a minimal Sphinx version, state it here. |
| 37 |
# |
| 38 |
# needs_sphinx = '1.0' |
| 39 |
|
| 40 |
# Add any Sphinx extension module names here, as strings. They can be |
| 41 |
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
| 42 |
# ones. |
| 43 |
extensions = [ |
| 44 |
'recommonmark', |
| 45 |
'sphinx.ext.autodoc', |
| 46 |
'sphinx.ext.intersphinx', |
| 47 |
'ansible_basic_sphinx_ext', |
| 48 |
] |
| 49 |
|
| 50 |
# Add any paths that contain templates here, relative to this directory. |
| 51 |
templates_path = ['_templates'] |
| 52 |
|
| 53 |
# The suffix(es) of source filenames. |
| 54 |
# You can specify multiple suffix as a list of string: |
| 55 |
# |
| 56 |
# source_suffix = ['.rst', '.md'] |
| 57 |
source_suffix = { |
| 58 |
'.rst': 'restructuredtext', |
| 59 |
'.md': 'markdown', |
| 60 |
} |
| 61 |
|
| 62 |
# The master toctree document. |
| 63 |
master_doc = 'index' |
| 64 |
|
| 65 |
smartquotes = False |
| 66 |
|
| 67 |
# The language for content autogenerated by Sphinx. Refer to documentation |
| 68 |
# for a list of supported languages. |
| 69 |
# |
| 70 |
# This is also used if you do content translation via gettext catalogs. |
| 71 |
# Usually you set "language" from the command line for these cases. |
| 72 |
language = None |
| 73 |
|
| 74 |
# List of patterns, relative to source directory, that match files and |
| 75 |
# directories to ignore when looking for source files. |
| 76 |
# This pattern also affects html_static_path and html_extra_path . |
| 77 |
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store', '.tmp'] |
| 78 |
|
| 79 |
# The name of the Pygments (syntax highlighting) style to use. |
| 80 |
pygments_style = 'sphinx' |
| 81 |
|
| 82 |
highlight_language = 'YAML+Jinja' |
| 83 |
|
| 84 |
# -- Options for HTML output ------------------------------------------------- |
| 85 |
html_theme_path = ['_themes'] |
| 86 |
# The theme to use for HTML and HTML Help pages. See the documentation for |
| 87 |
# a list of builtin themes. |
| 88 |
# |
| 89 |
# html_theme = 'alabaster' |
| 90 |
html_theme = 'sphinx_rtd_theme' |
| 91 |
|
| 92 |
# Theme options are theme-specific and customize the look and feel of a theme |
| 93 |
# further. For a list of options available for each theme, see the |
| 94 |
# documentation. |
| 95 |
# |
| 96 |
# html_theme_options = {} |
| 97 |
|
| 98 |
# Add any paths that contain custom static files (such as style sheets) here, |
| 99 |
# relative to this directory. They are copied after the builtin static files, |
| 100 |
# so a file named "default.css" will overwrite the builtin "default.css". |
| 101 |
html_static_path = [] |
| 102 |
|
| 103 |
# Custom sidebar templates, must be a dictionary that maps document names |
| 104 |
# to template names. |
| 105 |
# |
| 106 |
# The default sidebars (for documents that don't match any pattern) are |
| 107 |
# defined by theme itself. Builtin themes are using these templates by |
| 108 |
# default: ``['localtoc.html', 'relations.html', 'sourcelink.html', |
| 109 |
# 'searchbox.html']``. |
| 110 |
# |
| 111 |
# html_sidebars = {} |
| 112 |
|
| 113 |
# -- Options for HTMLHelp output --------------------------------------------- |
| 114 |
|
| 115 |
# Output file base name for HTML help builder. |
| 116 |
htmlhelp_basename = 'MerakiAnsibleActionsdoc' |
| 117 |
|
| 118 |
# -- Options for LaTeX output ------------------------------------------------ |
| 119 |
|
| 120 |
latex_elements = {} |
| 121 |
|
| 122 |
# Grouping the document tree into LaTeX files. List of tuples |
| 123 |
# (source start file, target name, title, |
| 124 |
# author, documentclass [howto, manual, or own class]). |
| 125 |
latex_documents = [ |
| 126 |
(master_doc, 'MerakiAnsibleActions.tex', 'MerakiAnsibleActions Documentation', |
| 127 |
'The DNA Center Project', 'manual'), |
| 128 |
] |
| 129 |
|
| 130 |
# -- Options for manual page output ------------------------------------------ |
| 131 |
|
| 132 |
# One entry per manual page. List of tuples |
| 133 |
# (source start file, name, description, authors, manual section). |
| 134 |
man_pages = [ |
| 135 |
(master_doc, 'MerakiAnsibleActions', 'MerakiAnsibleActions Documentation', |
| 136 |
[author], 1) |
| 137 |
] |
| 138 |
|
| 139 |
# -- Options for Texinfo output ---------------------------------------------- |
| 140 |
|
| 141 |
# Grouping the document tree into Texinfo files. List of tuples |
| 142 |
# (source start file, target name, title, author, |
| 143 |
# dir menu entry, description, category) |
| 144 |
texinfo_documents = [ |
| 145 |
(master_doc, 'MerakiAnsibleActions', 'MerakiAnsibleActions Documentation', |
| 146 |
author, 'MerakiAnsibleActions', 'One line description of project.', |
| 147 |
'Miscellaneous'), |
| 148 |
] |
| 149 |
|
| 150 |
# -- Extension configuration ------------------------------------------------- |
| 151 |
|
| 152 |
# -- Options for intersphinx extension --------------------------------------- |
| 153 |
|
| 154 |
# Example configuration for intersphinx: refer to the Python standard library. |
| 155 |
intersphinx_mapping = {'python': ('https://docs.python.org/2', None), |
| 156 |
'ansible': ('https://docs.ansible.com/ansible/latest/', None)} |