diff --git a/doc/htmldoc/developer_space/index.rst b/doc/htmldoc/developer_space/index.rst
index 180573eda8..085186d23c 100644
--- a/doc/htmldoc/developer_space/index.rst
+++ b/doc/htmldoc/developer_space/index.rst
@@ -122,3 +122,4 @@ Developer guides
guidelines/styleguide/vim_support_sli
templates/*
sli_docs/index
+ cppcomments
diff --git a/doc/htmldoc/networks/spatially_structured_networks.rst b/doc/htmldoc/networks/spatially_structured_networks.rst
index 01cb0bdaa4..2148e063c5 100644
--- a/doc/htmldoc/networks/spatially_structured_networks.rst
+++ b/doc/htmldoc/networks/spatially_structured_networks.rst
@@ -1000,9 +1000,9 @@ Rectified Gabor Function
perpendicular to :math:`\theta`. This probability depends on the
displacement along the coordinates axes, not the distance:
-.. literalinclude:: spatially_structured_networks/scripts/connections.py
- :start-after: #{ conn4gab #}
- :end-before: #{ end #}
+.. literalinclude:: scripts/connections.py
+ :start-after: # { conn4gab #}
+ :end-before: # { end #}
Note that for pool layers with periodic boundary conditions, NEST
always uses the shortest possible displacement vector from driver to
diff --git a/doc/htmldoc/ref_material/pynest_api/index.rst b/doc/htmldoc/ref_material/pynest_api/index.rst
index 9200b5fdef..f04820aa59 100644
--- a/doc/htmldoc/ref_material/pynest_api/index.rst
+++ b/doc/htmldoc/ref_material/pynest_api/index.rst
@@ -1,3 +1,5 @@
+.. _pynest_api:
+
PyNEST API listing
==================
diff --git a/doc/htmldoc/ref_material/pynest_api/nest.spatial.hl_api_spatial.rst b/doc/htmldoc/ref_material/pynest_api/nest.spatial.hl_api_spatial.rst
index 72c56a8b40..60fb589e9b 100644
--- a/doc/htmldoc/ref_material/pynest_api/nest.spatial.hl_api_spatial.rst
+++ b/doc/htmldoc/ref_material/pynest_api/nest.spatial.hl_api_spatial.rst
@@ -1,3 +1,5 @@
+.. _pynest_spatial:
+
Spatial positions functions
===========================