Skip to content

Commit 0320eb8

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent c6aee30 commit 0320eb8

34 files changed

+160
-200
lines changed

.tx/config

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,3 @@ source_file = i18n/pot/translation.pot
5454
source_lang = en
5555
file_filter = i18n/<lang>/translation.po
5656
type = PO
57-

conf.py

Lines changed: 77 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
#
32
# QGEP documentation build configuration file, created by
43
# sphinx-quickstart on Tue Jul 28 13:28:43 2015.
@@ -12,186 +11,184 @@
1211
# All configuration values have a default; values that are commented out
1312
# serve to show the default.
1413

15-
import sys
16-
import os
1714

1815
# If extensions (or modules to document with autodoc) are in another directory,
1916
# add these directories to sys.path here. If the directory is relative to the
2017
# documentation root, use os.path.abspath to make it absolute, like shown here.
21-
#sys.path.insert(0, os.path.abspath('.'))
18+
# sys.path.insert(0, os.path.abspath('.'))
2219

2320
# -- General configuration ------------------------------------------------
2421

2522
# If your documentation needs a minimal Sphinx version, state it here.
26-
#needs_sphinx = '1.0'
23+
# needs_sphinx = '1.0'
2724

2825
# Add any Sphinx extension module names here, as strings. They can be
2926
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
3027
# ones.
3128
extensions = []
3229

3330
# Add any paths that contain templates here, relative to this directory.
34-
templates_path = ['templates']
31+
templates_path = ["templates"]
3532

3633
# The suffix of source filenames.
37-
source_suffix = '.rst'
34+
source_suffix = ".rst"
3835

3936
# The encoding of source files.
40-
#source_encoding = 'utf-8-sig'
37+
# source_encoding = 'utf-8-sig'
4138

4239
# The master toctree document.
43-
master_doc = 'index'
40+
master_doc = "index"
4441

4542
# General information about the project.
46-
project = u'QGEP'
47-
copyright = u'2023, The QGEP Project www.teksi.ch'
43+
project = "QGEP"
44+
copyright = "2023, The QGEP Project www.teksi.ch"
4845

4946
# The version info for the project you're documenting, acts as replacement for
5047
# |version| and |release|, also used in various other places throughout the
5148
# built documents.
5249
#
5350
# The short X.Y version.
54-
version = '0.7'
51+
version = "0.7"
5552
# The full version, including alpha/beta/rc tags.
56-
release = '0.8'
53+
release = "0.8"
5754

5855
# The language for content autogenerated by Sphinx. Refer to documentation
5956
# for a list of supported languages.
60-
#language = None
57+
# language = None
6158

6259
# There are two options for replacing |today|: either, you set today to some
6360
# non-false value, then it is used:
64-
#today = ''
61+
# today = ''
6562
# Else, today_fmt is used as the format for a strftime call.
66-
#today_fmt = '%B %d, %Y'
63+
# today_fmt = '%B %d, %Y'
6764

6865
# List of patterns, relative to source directory, that match files and
6966
# directories to ignore when looking for source files.
70-
exclude_patterns = ['_build']
67+
exclude_patterns = ["_build"]
7168

7269
# The reST default role (used for this markup: `text`) to use for all
7370
# documents.
74-
#default_role = None
71+
# default_role = None
7572

7673
# If true, '()' will be appended to :func: etc. cross-reference text.
77-
#add_function_parentheses = True
74+
# add_function_parentheses = True
7875

7976
# If true, the current module name will be prepended to all description
8077
# unit titles (such as .. function::).
81-
#add_module_names = True
78+
# add_module_names = True
8279

8380
# If true, sectionauthor and moduleauthor directives will be shown in the
8481
# output. They are ignored by default.
85-
#show_authors = False
82+
# show_authors = False
8683

8784
# The name of the Pygments (syntax highlighting) style to use.
88-
pygments_style = 'sphinx'
85+
pygments_style = "sphinx"
8986

9087
# A list of ignored prefixes for module index sorting.
91-
#modindex_common_prefix = []
88+
# modindex_common_prefix = []
9289

9390
# If true, keep warnings as "system message" paragraphs in the built documents.
94-
#keep_warnings = False
91+
# keep_warnings = False
9592

9693

9794
# -- Options for HTML output ----------------------------------------------
9895

9996
# The theme to use for HTML and HTML Help pages. See the documentation for
10097
# a list of builtin themes.
101-
html_theme = 'sphinx_rtd_theme'
98+
html_theme = "sphinx_rtd_theme"
10299

103100
# Theme options are theme-specific and customize the look and feel of a theme
104101
# further. For a list of options available for each theme, see the
105102
# documentation.
106-
#html_theme_options = {}
103+
# html_theme_options = {}
107104

108105
# Add any paths that contain custom themes here, relative to this directory.
109-
html_theme_path = ['themes/sphinx_rtd_theme',]
106+
html_theme_path = [
107+
"themes/sphinx_rtd_theme",
108+
]
110109

111110
# The name for this set of Sphinx documents. If None, it defaults to
112111
# "<project> v<release> documentation".
113-
#html_title = None
112+
# html_title = None
114113

115114
# A shorter title for the navigation bar. Default is the same as html_title.
116-
#html_short_title = None
115+
# html_short_title = None
117116

118117
# The name of an image file (relative to this directory) to place at the top
119118
# of the sidebar.
120-
#html_logo = None
119+
# html_logo = None
121120

122121
# The name of an image file (within the static path) to use as favicon of the
123122
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
124123
# pixels large.
125-
#html_favicon = None
124+
# html_favicon = None
126125

127126
# Add any paths that contain custom static files (such as style sheets) here,
128127
# relative to this directory. They are copied after the builtin static files,
129128
# so a file named "default.css" will overwrite the builtin "default.css".
130-
html_static_path = ['_static']
129+
html_static_path = ["_static"]
131130

132131
# Add any extra paths that contain custom files (such as robots.txt or
133132
# .htaccess) here, relative to this directory. These files are copied
134133
# directly to the root of the documentation.
135-
#html_extra_path = []
134+
# html_extra_path = []
136135

137136
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
138137
# using the given strftime format.
139-
#html_last_updated_fmt = '%b %d, %Y'
138+
# html_last_updated_fmt = '%b %d, %Y'
140139

141140
# If true, SmartyPants will be used to convert quotes and dashes to
142141
# typographically correct entities.
143-
#html_use_smartypants = True
142+
# html_use_smartypants = True
144143

145144
# Custom sidebar templates, maps document names to template names.
146-
#html_sidebars = {}
145+
# html_sidebars = {}
147146

148147
# Additional templates that should be rendered to pages, maps page names to
149148
# template names.
150-
#html_additional_pages = {}
149+
# html_additional_pages = {}
151150

152151
# If false, no module index is generated.
153-
#html_domain_indices = True
152+
# html_domain_indices = True
154153

155154
# If false, no index is generated.
156-
#html_use_index = True
155+
# html_use_index = True
157156

158157
# If true, the index is split into individual pages for each letter.
159-
#html_split_index = False
158+
# html_split_index = False
160159

161160
# If true, links to the reST sources are added to the pages.
162-
#html_show_sourcelink = True
161+
# html_show_sourcelink = True
163162

164163
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
165-
#html_show_sphinx = True
164+
# html_show_sphinx = True
166165

167166
# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
168-
#html_show_copyright = True
167+
# html_show_copyright = True
169168

170169
# If true, an OpenSearch description file will be output, and all pages will
171170
# contain a <link> tag referring to it. The value of this option must be the
172171
# base URL from which the finished HTML is served.
173-
#html_use_opensearch = ''
172+
# html_use_opensearch = ''
174173

175174
# This is the file name suffix for HTML files (e.g. ".xhtml").
176-
#html_file_suffix = None
175+
# html_file_suffix = None
177176

178177
# Output file base name for HTML help builder.
179-
htmlhelp_basename = 'QGEPdoc'
178+
htmlhelp_basename = "QGEPdoc"
180179

181180

182181
# -- Options for LaTeX output ---------------------------------------------
183182

184183
latex_elements = {
185-
# added by mkuhn: see https://travis-ci.org/QGEP/docs/builds/78364932#L3944
186-
# 'babel': r'\usepackage[german,romanian,english,french]{babel}',
187-
# The paper size ('letterpaper' or 'a4paper').
188-
'papersize': 'a4paper',
189-
190-
# The font size ('10pt', '11pt' or '12pt').
191-
#'pointsize': '10pt',
192-
193-
# Additional stuff for the LaTeX preamble.
194-
'preamble': u'''\\usepackage{combelow}
184+
# added by mkuhn: see https://travis-ci.org/QGEP/docs/builds/78364932#L3944
185+
# 'babel': r'\usepackage[german,romanian,english,french]{babel}',
186+
# The paper size ('letterpaper' or 'a4paper').
187+
"papersize": "a4paper",
188+
# The font size ('10pt', '11pt' or '12pt').
189+
#'pointsize': '10pt',
190+
# Additional stuff for the LaTeX preamble.
191+
"preamble": """\\usepackage{combelow}
195192
\\usepackage{newunicodechar}
196193
197194
\\newunicodechar{Ș}{\\cb{S}}
@@ -203,49 +200,45 @@
203200
\\providecommand{\\setactivedoublequote}{}
204201
% switch new babel-italian to the old behavior
205202
\\setactivedoublequote
206-
'''
203+
""",
207204
}
208205

209206
# Grouping the document tree into LaTeX files. List of tuples
210207
# (source start file, target name, title,
211208
# author, documentclass [howto, manual, or own class]).
212209
latex_documents = [
213-
('index', 'QGEP.tex', u'QGEP Documentation',
214-
u'The QGEP Project/OPENGIS.ch', 'manual'),
210+
("index", "QGEP.tex", "QGEP Documentation", "The QGEP Project/OPENGIS.ch", "manual"),
215211
]
216212

217213
# The name of an image file (relative to this directory) to place at the top of
218214
# the title page.
219-
#latex_logo = None
215+
# latex_logo = None
220216

221217
# For "manual" documents, if this is true, then toplevel headings are parts,
222218
# not chapters.
223-
#latex_use_parts = False
219+
# latex_use_parts = False
224220

225221
# If true, show page references after internal links.
226-
#latex_show_pagerefs = False
222+
# latex_show_pagerefs = False
227223

228224
# If true, show URL addresses after external links.
229-
#latex_show_urls = False
225+
# latex_show_urls = False
230226

231227
# Documents to append as an appendix to all manuals.
232-
#latex_appendices = []
228+
# latex_appendices = []
233229

234230
# If false, no module index is generated.
235-
#latex_domain_indices = True
231+
# latex_domain_indices = True
236232

237233

238234
# -- Options for manual page output ---------------------------------------
239235

240236
# One entry per manual page. List of tuples
241237
# (source start file, name, description, authors, manual section).
242-
man_pages = [
243-
('index', 'qgep', u'QGEP Documentation',
244-
[u'The QGEP Project/OPENGIS.ch'], 1)
245-
]
238+
man_pages = [("index", "qgep", "QGEP Documentation", ["The QGEP Project/OPENGIS.ch"], 1)]
246239

247240
# If true, show URL addresses after external links.
248-
#man_show_urls = False
241+
# man_show_urls = False
249242

250243

251244
# -- Options for Texinfo output -------------------------------------------
@@ -254,22 +247,28 @@
254247
# (source start file, target name, title, author,
255248
# dir menu entry, description, category)
256249
texinfo_documents = [
257-
('index', 'QGEP', u'QGEP Documentation',
258-
u'The QGEP Project/OPENGIS.ch', 'QGEP', 'One line description of project.',
259-
'Miscellaneous'),
250+
(
251+
"index",
252+
"QGEP",
253+
"QGEP Documentation",
254+
"The QGEP Project/OPENGIS.ch",
255+
"QGEP",
256+
"One line description of project.",
257+
"Miscellaneous",
258+
),
260259
]
261260

262261
# Documents to append as an appendix to all manuals.
263-
#texinfo_appendices = []
262+
# texinfo_appendices = []
264263

265264
# If false, no module index is generated.
266-
#texinfo_domain_indices = True
265+
# texinfo_domain_indices = True
267266

268267
# How to display URL addresses: 'footnote', 'no', or 'inline'.
269-
#texinfo_show_urls = 'footnote'
268+
# texinfo_show_urls = 'footnote'
270269

271270
# If true, do not generate a @detailmenu in the "Top" node's menu.
272-
#texinfo_no_detailmenu = False
271+
# texinfo_no_detailmenu = False
273272

274273
# Path for sphinx to find *.mo files for translation
275-
locale_dirs = ['../i18n']
274+
locale_dirs = ["../i18n"]

en/admin-guide/datamodel-tool/index.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ For advanced cases, it is also possible to `upgrade your database manually <../d
1111
Setup
1212
-----
1313

14-
The data-model tool is hidden by default. To make it visible, you must first enable ``Admin mode``
14+
The data-model tool is hidden by default. To make it visible, you must first enable ``Admin mode``
1515
in the plugin settings :
1616

1717
* Go to ``Plugin > QGEP > Settings``
@@ -39,17 +39,17 @@ The main dialog looks like this.
3939
* **Version**: the version to retrieve the files from. Unless ``developer mode`` is enabled in the QGEP settings, only the latest stable version is available. Selecting anything different from the latest stable version should only ever be used on a testing database, as it could upgrade the database to an inconsistent state.
4040

4141
* **Dependencies**:
42-
42+
4343
* **Python requirements**: If there are missing python requirements, click on the **install button** to try to install them automatically. Note that this will not work on all systems. If it fails, you can try to start QGIS with administrator privileges, or `install the dependencies manually <../db-update-pum/index.html#requirements>`_.
4444

4545
* **Postgres service configurations**:
4646

4747
* **File location**: shows the location of the ``pg_service.conf`` file being used
4848

4949
* **PG Config**: allows to select the postgres service configuration of the database on which you want to operate. **WARNING**: by default, the first entry is selected, which may not match the database used by your currently open QGEP project.
50-
50+
5151
* **``+`` button**: opens an utility to add or edit entries from your ``pg_service.conf`` file directly.
52-
52+
5353
Refer to the `installation guide <../../installation-guide/workstation.html>`_ to know more about the ``pg_service.conf`` file.
5454

5555
* **Datamodel**
@@ -68,7 +68,7 @@ The main dialog looks like this.
6868
Troubleshooting
6969
^^^^^^^^^^^^^^^
7070

71-
In case you encounter issues or errors when using the datamodel tool, make sure to look at the
71+
In case you encounter issues or errors when using the datamodel tool, make sure to look at the
7272
QGEP tab in the logs, as it may contain useful information (including errors returned by underlying tools).
7373

7474
Make sure to include this information if submitting a bug report or asking for support.

0 commit comments

Comments
 (0)