You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.rst
+14-12Lines changed: 14 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ Installation and Configuration
28
28
Add ``sphinx_issues`` to ``extensions`` in your ``conf.py``.
29
29
30
30
The extension has default values for GitHub projects.
31
-
Simply set the add the ``issues_default_group_project`` config variable and you are good
31
+
Add the ``issues_github_path`` config variable and you are good
32
32
to go:
33
33
34
34
.. code-block:: python
@@ -54,9 +54,7 @@ to go:
54
54
issues_user_uri ="https://github.com/{user}"
55
55
issues_user_prefix ="@"
56
56
57
-
The extension is very configurable and can be used with any kind of
58
-
issue tracker. Here is how you could configure it for use
59
-
with a custom hosed GitLab instance:
57
+
You can also use this extension with other issue trackers. Here is how you could configure it for a hosted GitLab instance:
60
58
61
59
.. code-block:: python
62
60
@@ -96,10 +94,9 @@ Use the ``:issue:`` and ``:pr:`` roles in your docs like so:
96
94
See PR :pr:`58`
97
95
98
96
99
-
Use the ``:user:`` role in your docs to link to user profiles (GitHub by default, but can be configured via the ``issues_user_uri`` config variable).
97
+
The ``:user:`` role links to user profiles (GitHub by default, but can be configured via the ``issues_user_uri`` config variable).
100
98
101
-
102
-
Use the ``:commit:`` role to link to commits.
99
+
The ``:commit:`` role links to commits.
103
100
104
101
.. code-block:: rst
105
102
@@ -109,26 +106,31 @@ Use the ``:commit:`` role to link to commits.
109
106
110
107
Thanks to :user:`bitprophet` for the idea!
111
108
112
-
You can also use explicit names if you want to use a different name than the github user name:
109
+
You can also change the text of the hyperlink:
113
110
114
111
.. code-block:: rst
115
112
116
113
This change is due to :user:`Andreas Mueller <amueller>`.
117
114
118
115
The syntax ``:role:`My custom title <target>``` works for all roles of this extension.
119
116
120
-
It can be also used in combination with a list:
121
-
122
117
.. code-block:: rst
123
118
124
-
Fix bad bug :issue:`123, (Duplicate) <199>`
119
+
Fix bad bug :issue:`123, 199 (Duplicate) <123>`
125
120
126
-
Use the ``:pypi:`` role to link to PyPI on https://pypi.org.
121
+
The ``:pypi:`` role links to project pages on `PyPI <https://pypi.org>`_.
127
122
128
123
.. code-block:: rst
129
124
130
125
:pypi:`sphinx-issues` - A Sphinx extension for linking to your project's issue tracker.
131
126
127
+
Important note about :cwe: and :cve: roles
128
+
******************************************
129
+
130
+
The ``:cwe:`` and ``:cve:`` are included within `newer versions of Sphinx <https://www.sphinx-doc.org/en/master/usage/restructuredtext/roles.html#role-cve>`_.
131
+
If you use these roles and are using Sphinx<8.1, you will need to
0 commit comments