Skip to content

Commit 54eda2e

Browse files
committed
Sphinx 8 support update
1 parent 35f6013 commit 54eda2e

31 files changed

Lines changed: 30 additions & 58 deletions

requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Version is fixed in the GitLab runner for building documentation
2-
sphinx==5.3.0
2+
sphinx==8.2.3
33
sphinx-intl==2.3.1
4-
sphinx-rtd-theme
4+
sphinx-rtd-theme==3.0.2
55
Jinja2==3.1.6
6-
markupsafe==2.1.5
6+
markupsafe==3.0.2

source/_template/layout.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686

8787
<div class="globalnav globalhead">
8888
<a class="siteNav" href="{{ pathto(master_doc) }}" >
89-
<img src="{{ pathto('_static/' + logo, 1) }}" class="logo" />
89+
<img src="{{ pathto('_static/' + 'logo.png', 1) }}" class="logo" />
9090
<span class="siteNavTitle">
9191
Documentation
9292
</span>

source/admin/cache.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
.. include:: ../substitutions.rst
2-
31
.. _seed-cache:
42

53
=================================

source/admin/cli.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
.. include:: ../substitutions.rst
21

32
======================
43
Command-line interface

source/conf.py

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@
212212

213213
# Additional stuff for the LaTeX preamble.
214214
#'preamble': '',
215-
'preamble': '\setcounter{tocdepth}{2}'
215+
'preamble': r"\setcounter{tocdepth}{2}"
216216
}
217217

218218
# Grouping the document tree into LaTeX files. List of tuples
@@ -290,3 +290,26 @@
290290
r'http://mydomain.lizmap.3liz.com/',
291291
r'http://127.0.0.1/',
292292
]
293+
294+
# Substitutions
295+
rst_prolog = """
296+
.. |qgis_3| replace:: **QGIS 3**
297+
298+
.. |lizmap_3_7| replace:: **Lizmap 3.7**
299+
300+
.. |lizmap_cloud| replace:: `Lizmap Cloud <https://www.lizmap.com>`__
301+
302+
.. |lizmap_plugin_svg| image:: /images/icons/lizmapPlugin.svg
303+
:width: 20
304+
:alt: The Lizmap logo
305+
.. |lizmap_cloud_svg| image:: /images/icons/logo-lizmap-cloud.png
306+
:width: 20
307+
:alt: The Lizmap Cloud logo
308+
.. |add_layer_svg| image:: /images/icons/symbologyAdd.svg
309+
.. |edit_layer_svg| image:: /images/icons/symbologyEdit.svg
310+
.. |remove_layer_svg| image:: /images/icons/symbologyRemove.svg
311+
.. |down_layer_svg| image:: /images/icons/mActionArrowDown.svg
312+
.. |up_layer_svg| image:: /images/icons/mActionArrowUp.svg
313+
.. |refresh_svg| image:: /images/icons/mActionRefresh.svg
314+
.. |properties_svg| image:: /images/icons/mActionPropertiesWidget.svg
315+
"""

source/lizmap_cloud/index.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
.. include:: ../substitutions.rst
2-
31
============
42
Lizmap Cloud
53
============

source/publish/configuration/expression.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
.. include:: ../../substitutions.rst
21

32
QGIS Expression
43
===============

source/publish/configuration/legend.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
.. include:: ../../substitutions.rst
21

32
Legend
43
======

source/publish/configuration/print.rst

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
.. include:: ../../substitutions.rst
2-
31
.. _printing:
42

53
Printing
@@ -33,8 +31,7 @@ In your layout, you can add :
3331
- Or set :guilabel:`Fit segment width` with a correct reference anchor point to adjust the position of the scale bar
3432
* A location map, a map for which you have enabled and configured one *Overview*
3533
* Since |qgis_3|, you can use QGIS expressions, in your labels for instance. You can create automatic source label
36-
according to visible layers following this example on the
37-
`QGIS documentation <https://docs.qgis.org/latest/en/docs/user_manual/print_composer/composer_items/composer_label.html#id4>`_.
34+
according to visible layers following `this example on the QGIS documentation <https://docs.qgis.org/latest/en/docs/user_manual/print_composer/composer_items/composer_label.html#id4>`_.
3835

3936
.. _dynamic_content:
4037

source/publish/configuration/project_for_web.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
.. include:: ../../substitutions.rst
21

32
==============================
43
Prepare a QGIS project for Web

0 commit comments

Comments
 (0)