Passed
Pull Request — master (#102)
by Michael
01:59
created

conf   A

Complexity

Total Complexity 0

Size/Duplication

Total Lines 194
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 0
eloc 48
dl 0
loc 194
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
import os
16
import sys
17
sys.path.insert(0, os.path.abspath('..'))
18
19
import gmp
20
21
# -- Project information -----------------------------------------------------
22
23
project = 'gvm-tools'
24
copyright = '2018, Greenbone Networks GmbH'
25
author = 'Greenbone Networks GmbH'
26
27
# The short X.Y version
28
29
version = '{0}.{1}'.format(gmp.VERSION[0], gmp.VERSION[1])
30
# The full version, including alpha/beta/rc tags
31
release = gmp.get_version()
32
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
    'sphinx.ext.autodoc',
45
    'sphinx.ext.githubpages',
46
    'sphinxcontrib.napoleon',
47
]
48
49
# Add any paths that contain templates here, relative to this directory.
50
templates_path = ['_templates']
51
52
# The suffix(es) of source filenames.
53
# You can specify multiple suffix as a list of string:
54
#
55
# source_suffix = ['.rst', '.md']
56
source_suffix = '.rst'
57
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 = ['build']
72
73
# The name of the Pygments (syntax highlighting) style to use.
74
pygments_style = None
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
html_theme = 'alabaster'
83
84
# Theme options are theme-specific and customize the look and feel of a theme
85
# further.  For a list of options available for each theme, see the
86
# documentation.
87
#
88
html_theme_options = {
89
    'github_user': 'greenbone',
90
    'github_repo': 'gvm-tools',
91
    'github_banner': True,
92
    'show_powered_by': False,
93
}
94
95
# Add any paths that contain custom static files (such as style sheets) here,
96
# relative to this directory. They are copied after the builtin static files,
97
# so a file named "default.css" will overwrite the builtin "default.css".
98
html_static_path = ['_static']
99
100
# Custom sidebar templates, must be a dictionary that maps document names
101
# to template names.
102
#
103
# The default sidebars (for documents that don't match any pattern) are
104
# defined by theme itself.  Builtin themes are using these templates by
105
# default: ``['localtoc.html', 'relations.html', 'sourcelink.html',
106
# 'searchbox.html']``.
107
#
108
# html_sidebars = {}
109
html_sidebars = {
110
    '**': [
111
        'sidebarlogo.html',
112
        'localtoc.html',
113
        'relations.html',
114
        'searchbox.html'
115
    ],
116
}
117
118
html_show_sourcelink = False
119
120
121
# -- Options for HTMLHelp output ---------------------------------------------
122
123
# Output file base name for HTML help builder.
124
htmlhelp_basename = 'gvm-toolsdoc'
125
126
127
# -- Options for LaTeX output ------------------------------------------------
128
129
latex_elements = {
130
    # The paper size ('letterpaper' or 'a4paper').
131
    #
132
    # 'papersize': 'letterpaper',
133
134
    # The font size ('10pt', '11pt' or '12pt').
135
    #
136
    # 'pointsize': '10pt',
137
138
    # Additional stuff for the LaTeX preamble.
139
    #
140
    # 'preamble': '',
141
142
    # Latex figure (float) alignment
143
    #
144
    # 'figure_align': 'htbp',
145
}
146
147
# Grouping the document tree into LaTeX files. List of tuples
148
# (source start file, target name, title,
149
#  author, documentclass [howto, manual, or own class]).
150
latex_documents = [
151
    (master_doc, 'gvm-tools.tex', 'gvm-tools Documentation',
152
     'Greenbone Networks GmbH', 'manual'),
153
]
154
155
156
# -- Options for manual page output ------------------------------------------
157
158
# One entry per manual page. List of tuples
159
# (source start file, name, description, authors, manual section).
160
man_pages = [
161
    (master_doc, 'gvm-tools', 'gvm-tools Documentation',
162
     [author], 1)
163
]
164
165
166
# -- Options for Texinfo output ----------------------------------------------
167
168
# Grouping the document tree into Texinfo files. List of tuples
169
# (source start file, target name, title, author,
170
#  dir menu entry, description, category)
171
texinfo_documents = [
172
    (master_doc, 'gvm-tools', 'gvm-tools Documentation',
173
     author, 'gvm-tools', 'One line description of project.',
174
     'Miscellaneous'),
175
]
176
177
178
# -- Options for Epub output -------------------------------------------------
179
180
# Bibliographic Dublin Core info.
181
epub_title = project
182
183
# The unique identifier of the text. This can be a ISBN number
184
# or the project homepage.
185
#
186
# epub_identifier = ''
187
188
# A unique identification for the text.
189
#
190
# epub_uid = ''
191
192
# A list of files that should not be packed into the epub file.
193
epub_exclude_files = ['search.html']
194
195
196
# -- Extension configuration -------------------------------------------------
197