Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Version is fixed in the GitLab runner for building documentation
sphinx==5.3.0
sphinx==8.2.3
sphinx-intl==2.3.1
sphinx-rtd-theme
sphinx-rtd-theme==3.0.2
Jinja2==3.1.6
markupsafe==2.1.5
markupsafe==3.0.2
2 changes: 1 addition & 1 deletion source/_template/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@

<div class="globalnav globalhead">
<a class="siteNav" href="{{ pathto(master_doc) }}" >
<img src="{{ pathto('_static/' + logo, 1) }}" class="logo" />
<img src="{{ pathto('_static/' + 'logo.png', 1) }}" class="logo" />
<span class="siteNavTitle">
Documentation
</span>
Expand Down
2 changes: 0 additions & 2 deletions source/admin/cache.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
.. include:: ../substitutions.rst

.. _seed-cache:

=================================
Expand Down
1 change: 0 additions & 1 deletion source/admin/cli.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
.. include:: ../substitutions.rst

======================
Command-line interface
Expand Down
25 changes: 24 additions & 1 deletion source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@

# Additional stuff for the LaTeX preamble.
#'preamble': '',
'preamble': '\setcounter{tocdepth}{2}'
'preamble': r"\setcounter{tocdepth}{2}"
}

# Grouping the document tree into LaTeX files. List of tuples
Expand Down Expand Up @@ -290,3 +290,26 @@
r'http://mydomain.lizmap.3liz.com/',
r'http://127.0.0.1/',
]

# Substitutions
rst_prolog = """
.. |qgis_3| replace:: **QGIS 3**

.. |lizmap_3_7| replace:: **Lizmap 3.7**

.. |lizmap_cloud| replace:: `Lizmap Cloud <https://www.lizmap.com>`__

.. |lizmap_plugin_svg| image:: /images/icons/lizmapPlugin.svg
:width: 20
:alt: The Lizmap logo
.. |lizmap_cloud_svg| image:: /images/icons/logo-lizmap-cloud.png
:width: 20
:alt: The Lizmap Cloud logo
.. |add_layer_svg| image:: /images/icons/symbologyAdd.svg
.. |edit_layer_svg| image:: /images/icons/symbologyEdit.svg
.. |remove_layer_svg| image:: /images/icons/symbologyRemove.svg
.. |down_layer_svg| image:: /images/icons/mActionArrowDown.svg
.. |up_layer_svg| image:: /images/icons/mActionArrowUp.svg
.. |refresh_svg| image:: /images/icons/mActionRefresh.svg
.. |properties_svg| image:: /images/icons/mActionPropertiesWidget.svg
"""
16 changes: 8 additions & 8 deletions source/install/py-qgis-server.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Py-QGIS-Server
Pre-requirements
================

We supposed, you already have installed QGIS Server packages, as explain in the
We suppose that you already have installed QGIS Server packages, as explained in the
`QGIS Server documentation <https://docs.qgis.org/latest/en/docs/server_manual/>`_.

.. note::
Expand Down Expand Up @@ -41,12 +41,12 @@ Folders used below

.. code-block:: bash

mkdir -p /srv/qgis/plugins /srv/qgis/config /var/log/qgis /var/lib/py-qgis-server /var/data
mkdir -p /srv/qgis/plugins /srv/qgis/config /srv/data /var/log/qgis /var/lib/py-qgis-server

The file to watch for restarting workers
----------------------------------------

We create an empty file that will be watch by Py-QGIS-Server to check when to restart QGIS Server map workers.
We create an empty file that will be watched by Py-QGIS-Server to check when to restart QGIS Server map workers.

.. code-block:: bash

Expand All @@ -66,7 +66,7 @@ We create the executable file :file:`/usr/bin/qgis-reload` to restart QGIS Serve
touch /var/lib/py-qgis-server/py-qgis-restartmon


Then we when change its mod :
Then we change its mod :

.. code-block:: bash

Expand Down Expand Up @@ -115,7 +115,7 @@ We create the Py-QGIS-Server configuration file :file:`/srv/qgis/server.conf`. I
In this example:

* QGIS Server will be available at ``http://127.0.0.1:7200/ows/``
* the plugins are installed in :file`/srv/qgis/plugins` (``pluginpath``). See :ref:`qgis-server-plugins`.
* the plugins are installed in :file:`/srv/qgis/plugins` (``pluginpath``). See :ref:`qgis-server-plugins`.
* the file to watch for restarting workers is :file:`/var/lib/py-qgis-server/py-qgis-restartmon` (``restartmon``).
* the directory containing the projects to be published :file:`/srv/data` (``rootdir``). The projects must be in sub-folders.
* Lizmap QGIS Server API is enabled
Expand All @@ -141,7 +141,7 @@ First of all, we create an environment file :file:`/srv/qgis/config/qgis-service

In this file, we defined:

* The lang
* The language
* The Xvfb display port, needed to print PDF
* The QGIS options and ``authDB`` path (needed for HTTPS, when used in remote layers such as OSM tiles)
* Lizmap environment variable to reveal settings
Expand Down Expand Up @@ -181,7 +181,7 @@ Then we can create the QGIS `service systemd file <https://wiki.debian.org/syste
[Install]
WantedBy=multi-user.target

Finally, we enable the QGIS Server service to start it and to be sure it is started at system launch :
Finally, we enable the QGIS Server service to start at system launch and we also start the service right now :

.. code-block:: bash

Expand Down Expand Up @@ -214,6 +214,6 @@ Either by editing manually the file :file:`lizmap/var/config/lizmapConfig.ini.ph
lizmapPluginAPIURL="http://127.0.0.1:7200/lizmap/"

; path to find repositories
rootRepositories="/var/data"
rootRepositories="/srv/data"

Your :guilabel:`Server information` panel must show you the QGIS Server version and installed plugins.
2 changes: 0 additions & 2 deletions source/lizmap_cloud/index.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
.. include:: ../substitutions.rst

============
Lizmap Cloud
============
Expand Down
1 change: 0 additions & 1 deletion source/publish/configuration/expression.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
.. include:: ../../substitutions.rst

QGIS Expression
===============
Expand Down
1 change: 0 additions & 1 deletion source/publish/configuration/legend.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
.. include:: ../../substitutions.rst

Legend
======
Expand Down
5 changes: 1 addition & 4 deletions source/publish/configuration/print.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
.. include:: ../../substitutions.rst

.. _printing:

Printing
Expand Down Expand Up @@ -33,8 +31,7 @@ In your layout, you can add :
- Or set :guilabel:`Fit segment width` with a correct reference anchor point to adjust the position of the scale bar
* A location map, a map for which you have enabled and configured one *Overview*
* Since |qgis_3|, you can use QGIS expressions, in your labels for instance. You can create automatic source label
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>`_.
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>`_.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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>`_.
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>`_.

The line seems too long ?


.. _dynamic_content:

Expand Down
1 change: 0 additions & 1 deletion source/publish/configuration/project_for_web.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
.. include:: ../../substitutions.rst

==============================
Prepare a QGIS project for Web
Expand Down
1 change: 0 additions & 1 deletion source/publish/configuration/spatial_search.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
.. include:: ../../substitutions.rst
.. _fts-searches:

Spatial searching
Expand Down
1 change: 0 additions & 1 deletion source/publish/layer_properties/attributes_form.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
.. include:: ../../substitutions.rst

Attributes Form
===============
Expand Down
2 changes: 0 additions & 2 deletions source/publish/layer_properties/display.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
.. include:: ../../substitutions.rst

Display
=======

Expand Down
1 change: 0 additions & 1 deletion source/publish/layer_properties/qgis_server.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
.. include:: ../../substitutions.rst

.. _layer_qgis_server:

Expand Down
1 change: 0 additions & 1 deletion source/publish/layer_properties/rendering.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
.. include:: ../../substitutions.rst

Rendering
=========
Expand Down
1 change: 0 additions & 1 deletion source/publish/lizmap_plugin/actions.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
.. include:: ../../substitutions.rst

Actions — Add some custom buttons triggering PostgreSQL queries
===============================================================
Expand Down
1 change: 0 additions & 1 deletion source/publish/lizmap_plugin/atlas.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
.. include:: ../../substitutions.rst

Atlas — A sequence of entities
==============================
Expand Down
1 change: 0 additions & 1 deletion source/publish/lizmap_plugin/attribute_table.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
.. include:: ../../substitutions.rst

.. _attribute_table:

Expand Down
1 change: 0 additions & 1 deletion source/publish/lizmap_plugin/dataviz.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
.. include:: ../../substitutions.rst

Dataviz — Display some charts
=============================
Expand Down
1 change: 0 additions & 1 deletion source/publish/lizmap_plugin/editing.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
.. include:: ../../substitutions.rst

.. _editing:

Expand Down
1 change: 0 additions & 1 deletion source/publish/lizmap_plugin/filtered_layers_login.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
.. include:: ../../substitutions.rst
.. _filtered-layer-by-user:

Filtered layer by user — Set some features visible/editable or not for some users
Expand Down
1 change: 0 additions & 1 deletion source/publish/lizmap_plugin/form_filtering.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
.. include:: ../../substitutions.rst

Form filtering — Filter layer data based on field values
========================================================
Expand Down
1 change: 0 additions & 1 deletion source/publish/lizmap_plugin/information.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
.. include:: ../../substitutions.rst

Information — Get some news about the project and your server
=============================================================
Expand Down
3 changes: 1 addition & 2 deletions source/publish/lizmap_plugin/installation.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
.. include:: ../../substitutions.rst

Install and upgrade the Lizmap plugin
=====================================
Expand All @@ -23,4 +22,4 @@ Install it with the QGIS plugin manager:
.. image:: /images/introduction-install-lizmap.jpg
:align: center
:width: 60%
:alt: Lizmap plugin installation in the QGIS plugin manager
:alt: Lizmap plugin installation in the QGIS plugin manager
1 change: 0 additions & 1 deletion source/publish/lizmap_plugin/layers.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
.. include:: ../../substitutions.rst

Layers — Settings for each layer
================================
Expand Down
1 change: 0 additions & 1 deletion source/publish/lizmap_plugin/locate_by_layer.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
.. include:: ../../substitutions.rst
.. _locate-by-layer:

Locate by layer — The locating tool
Expand Down
1 change: 0 additions & 1 deletion source/publish/lizmap_plugin/map_options.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
.. include:: ../../substitutions.rst

.. _lizmap-config-map:

Expand Down
1 change: 0 additions & 1 deletion source/publish/lizmap_plugin/time_manager.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
.. include:: ../../substitutions.rst

Time Manager — Animation of temporal vector layers
==================================================
Expand Down
1 change: 0 additions & 1 deletion source/publish/lizmap_plugin/tooltip.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
.. include:: ../../substitutions.rst

Tooltip — Configure the tooltip for some layers
===============================================
Expand Down
1 change: 0 additions & 1 deletion source/publish/quick_start/index.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
.. include:: ../../substitutions.rst

..
_The purpose of this quick start is to provide a page without too much anchor to other pages.
Expand Down
19 changes: 0 additions & 19 deletions source/substitutions.rst

This file was deleted.