conf   A
last analyzed

Complexity

Total Complexity 0

Size/Duplication

Total Lines 199
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 0
eloc 56
dl 0
loc 199
rs 10
c 0
b 0
f 0
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
# pylint: disable=invalid-name,redefined-builtin,wrong-import-position
16
17
import os
18
import sys
19
20
21
sys.path.insert(0, os.path.abspath('..'))
22
23
import gvmtools
24
25
# -- Project information -----------------------------------------------------
26
27
project = 'gvm-tools'
28
copyright = '2018-2020, Greenbone Networks GmbH'
29
author = 'Greenbone Networks GmbH'
30
31
version = gvmtools.get_version()
32
release = version
33
34
35
# -- General configuration ---------------------------------------------------
36
37
# If your documentation needs a minimal Sphinx version, state it here.
38
#
39
# needs_sphinx = '1.0'
40
41
# Add any Sphinx extension module names here, as strings. They can be
42
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
43
# ones.
44
extensions = [
45
    'sphinx.ext.autodoc',
46
    'sphinx.ext.githubpages',
47
    'sphinx.ext.napoleon',
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 = '.rst'
58
59
# The master toctree document.
60
master_doc = 'index'
61
62
# The language for content autogenerated by Sphinx. Refer to documentation
63
# for a list of supported languages.
64
#
65
# This is also used if you do content translation via gettext catalogs.
66
# Usually you set "language" from the command line for these cases.
67
language = None
68
69
# List of patterns, relative to source directory, that match files and
70
# directories to ignore when looking for source files.
71
# This pattern also affects html_static_path and html_extra_path.
72
exclude_patterns = ['build']
73
74
# The name of the Pygments (syntax highlighting) style to use.
75
pygments_style = None
76
77
78
# -- Options for HTML output -------------------------------------------------
79
80
# The theme to use for HTML and HTML Help pages.  See the documentation for
81
# a list of builtin themes.
82
#
83
html_theme = 'alabaster'
84
85
html_favicon = 'favicon.gif'
86
87
# Theme options are theme-specific and customize the look and feel of a theme
88
# further.  For a list of options available for each theme, see the
89
# documentation.
90
#
91
html_theme_options = {
92
    'github_user': 'greenbone',
93
    'github_repo': 'gvm-tools',
94
    'github_banner': True,
95
    'show_powered_by': False,
96
}
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 = ['_static']
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
html_sidebars = {
113
    '**': [
114
        'sidebarlogo.html',
115
        'localtoc.html',
116
        'relations.html',
117
        'searchbox.html',
118
    ]
119
}
120
121
html_show_sourcelink = False
122
123
124
# -- Options for HTMLHelp output ---------------------------------------------
125
126
# Output file base name for HTML help builder.
127
htmlhelp_basename = 'gvm-toolsdoc'
128
129
# -- Options for LaTeX output ------------------------------------------------
130
latex_elements = {
131
    # The paper size ('letterpaper' or 'a4paper').
132
    #
133
    # 'papersize': 'letterpaper',
134
    # The font size ('10pt', '11pt' or '12pt').
135
    #
136
    # 'pointsize': '10pt',
137
    # Additional stuff for the LaTeX preamble.
138
    #
139
    # 'preamble': '',
140
    # Latex figure (float) alignment
141
    #
142
    # 'figure_align': 'htbp',
143
}
144
# Grouping the document tree into LaTeX files. List of tuples
145
# (source start file, target name, title,
146
#  author, documentclass [howto, manual, or own class]).
147
latex_documents = [
148
    (
149
        master_doc,
150
        'gvm-tools.tex',
151
        'gvm-tools Documentation',
152
        'Greenbone Networks GmbH',
153
        'manual',
154
    )
155
]
156
157
158
# -- Options for manual page output ------------------------------------------
159
160
# One entry per manual page. List of tuples
161
# (source start file, name, description, authors, manual section).
162
man_pages = [(master_doc, 'gvm-tools', 'gvm-tools Documentation', [author], 1)]
163
164
165
# -- Options for Texinfo output ----------------------------------------------
166
167
# Grouping the document tree into Texinfo files. List of tuples
168
# (source start file, target name, title, author,
169
#  dir menu entry, description, category)
170
texinfo_documents = [
171
    (
172
        master_doc,
173
        'gvm-tools',
174
        'gvm-tools Documentation',
175
        author,
176
        'gvm-tools',
177
        'One line description of project.',
178
        'Miscellaneous',
179
    )
180
]
181
182
183
# -- Options for Epub output -------------------------------------------------
184
185
# Bibliographic Dublin Core info.
186
epub_title = project
187
188
# The unique identifier of the text. This can be a ISBN number
189
# or the project homepage.
190
#
191
# epub_identifier = ''
192
193
# A unique identification for the text.
194
#
195
# epub_uid = ''
196
197
# A list of files that should not be packed into the epub file.
198
epub_exclude_files = ['search.html']
199
200
201
# -- Extension configuration -------------------------------------------------
202