Skip to content

Commit 659ba40

Browse files
authored
Readme improvements (#167)
1 parent 0c942eb commit 659ba40

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

README.rst

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Installation and Configuration
2828
Add ``sphinx_issues`` to ``extensions`` in your ``conf.py``.
2929

3030
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
3232
to go:
3333

3434
.. code-block:: python
@@ -54,9 +54,7 @@ to go:
5454
issues_user_uri = "https://github.com/{user}"
5555
issues_user_prefix = "@"
5656
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:
6058

6159
.. code-block:: python
6260
@@ -96,10 +94,9 @@ Use the ``:issue:`` and ``:pr:`` roles in your docs like so:
9694
See PR :pr:`58`
9795
9896
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).
10098

101-
102-
Use the ``:commit:`` role to link to commits.
99+
The ``:commit:`` role links to commits.
103100

104101
.. code-block:: rst
105102
@@ -109,26 +106,31 @@ Use the ``:commit:`` role to link to commits.
109106
110107
Thanks to :user:`bitprophet` for the idea!
111108
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:
113110

114111
.. code-block:: rst
115112
116113
This change is due to :user:`Andreas Mueller <amueller>`.
117114
118115
The syntax ``:role:`My custom title <target>``` works for all roles of this extension.
119116

120-
It can be also used in combination with a list:
121-
122117
.. code-block:: rst
123118
124-
Fix bad bug :issue:`123, (Duplicate) <199>`
119+
Fix bad bug :issue:`123, 199 (Duplicate) <123>`
125120
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>`_.
127122

128123
.. code-block:: rst
129124
130125
:pypi:`sphinx-issues` - A Sphinx extension for linking to your project's issue tracker.
131126
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
132+
install sphinx-issues<5.
133+
132134
Credits
133135
*******
134136

0 commit comments

Comments
 (0)