diff --git a/.gitignore b/.gitignore index b51a8ee5e..5978cf757 100644 --- a/.gitignore +++ b/.gitignore @@ -16,3 +16,5 @@ _build .doctrees docs/github_images/ .eggs/ + +docs/_images/need_pie_*.png diff --git a/docs/_images/need_pie_10fbc.png b/docs/_images/need_pie_10fbc.png deleted file mode 100644 index ae2ca79cb..000000000 Binary files a/docs/_images/need_pie_10fbc.png and /dev/null differ diff --git a/docs/_images/need_pie_132a2.png b/docs/_images/need_pie_132a2.png deleted file mode 100644 index 53f2f00e9..000000000 Binary files a/docs/_images/need_pie_132a2.png and /dev/null differ diff --git a/docs/_images/need_pie_1bc0e.png b/docs/_images/need_pie_1bc0e.png deleted file mode 100644 index 4e80d1b1f..000000000 Binary files a/docs/_images/need_pie_1bc0e.png and /dev/null differ diff --git a/docs/_images/need_pie_2c3ed.png b/docs/_images/need_pie_2c3ed.png deleted file mode 100644 index 6ad6305d1..000000000 Binary files a/docs/_images/need_pie_2c3ed.png and /dev/null differ diff --git a/docs/_images/need_pie_3d372.png b/docs/_images/need_pie_3d372.png deleted file mode 100644 index bfeabc897..000000000 Binary files a/docs/_images/need_pie_3d372.png and /dev/null differ diff --git a/docs/_images/need_pie_47238.png b/docs/_images/need_pie_47238.png deleted file mode 100644 index 81cbf9f9e..000000000 Binary files a/docs/_images/need_pie_47238.png and /dev/null differ diff --git a/docs/_images/need_pie_64ad3.png b/docs/_images/need_pie_64ad3.png deleted file mode 100644 index 7aee6a070..000000000 Binary files a/docs/_images/need_pie_64ad3.png and /dev/null differ diff --git a/docs/_images/need_pie_76ebe.png b/docs/_images/need_pie_76ebe.png deleted file mode 100644 index 99d0fc32b..000000000 Binary files a/docs/_images/need_pie_76ebe.png and /dev/null differ diff --git a/docs/_images/need_pie_873ef.png b/docs/_images/need_pie_873ef.png deleted file mode 100644 index 8f91afd10..000000000 Binary files a/docs/_images/need_pie_873ef.png and /dev/null differ diff --git a/docs/_images/need_pie_88777.png b/docs/_images/need_pie_88777.png deleted file mode 100644 index 2e9adecc7..000000000 Binary files a/docs/_images/need_pie_88777.png and /dev/null differ diff --git a/docs/_images/need_pie_ca835.png b/docs/_images/need_pie_ca835.png deleted file mode 100644 index dc53d9056..000000000 Binary files a/docs/_images/need_pie_ca835.png and /dev/null differ diff --git a/docs/_images/need_pie_d0d45.png b/docs/_images/need_pie_d0d45.png deleted file mode 100644 index 695a3efab..000000000 Binary files a/docs/_images/need_pie_d0d45.png and /dev/null differ diff --git a/docs/_images/need_pie_d192f.png b/docs/_images/need_pie_d192f.png deleted file mode 100644 index 8922ebfb7..000000000 Binary files a/docs/_images/need_pie_d192f.png and /dev/null differ diff --git a/docs/_images/need_pie_dbfaf.png b/docs/_images/need_pie_dbfaf.png deleted file mode 100644 index 2bbb8ba55..000000000 Binary files a/docs/_images/need_pie_dbfaf.png and /dev/null differ diff --git a/docs/_images/need_pie_df318.png b/docs/_images/need_pie_df318.png deleted file mode 100644 index 50019fe02..000000000 Binary files a/docs/_images/need_pie_df318.png and /dev/null differ diff --git a/docs/_images/need_pie_df9e6.png b/docs/_images/need_pie_df9e6.png deleted file mode 100644 index bb544c3c4..000000000 Binary files a/docs/_images/need_pie_df9e6.png and /dev/null differ diff --git a/docs/_images/need_pie_e2e07.png b/docs/_images/need_pie_e2e07.png deleted file mode 100644 index f24d1df27..000000000 Binary files a/docs/_images/need_pie_e2e07.png and /dev/null differ diff --git a/docs/_images/need_pie_fd3f3.png b/docs/_images/need_pie_fd3f3.png deleted file mode 100644 index c2c38b870..000000000 Binary files a/docs/_images/need_pie_fd3f3.png and /dev/null differ diff --git a/sphinxcontrib/needs/api/need.py b/sphinxcontrib/needs/api/need.py index a1ed3044f..76531e098 100644 --- a/sphinxcontrib/needs/api/need.py +++ b/sphinxcontrib/needs/api/need.py @@ -132,7 +132,7 @@ def run(): id=need_id, regex=env.app.config.needs_id_regex)) # Calculate target id, to be able to set a link back - target_node = nodes.target('', '', ids=[need_id]) + target_node = nodes.target('', '', ids=[need_id], refid=need_id) # Handle status # Check if status is in needs_statuses. If not raise an error. @@ -307,7 +307,7 @@ def run(): style_classes.append(style) node_need = sphinxcontrib.needs.directives.need.Need( - '', classes=style_classes, ids=[need_id]) + '', classes=style_classes, ids=[need_id], refid=need_id) # Render rst-based content and add it to the need-node @@ -377,7 +377,6 @@ def _read_in_links(links_string): else: links.append(link.strip()) - # This may have cut also dynamic function strings, as they can contain , as well. # So let put them together again # ToDo: There may be a smart regex for the splitting. This would avoid this mess of code...