Skip to content

Commit

Permalink
Replaced docutils link by PyPI reference.
Browse files Browse the repository at this point in the history
  • Loading branch information
claudep authored and felixxm committed Apr 25, 2023
1 parent 4dfc6ff commit 453cfa2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ <h1>{% translate 'Documentation' %}</h1>
<div id="content-main">
<h3>{% blocktranslate with "https://docutils.sourceforge.io/" as link %}The admin documentation system requires Python’s <a href="{{ link }}">docutils</a> library.{% endblocktranslate %}</h3>

<p>{% blocktranslate with "https://docutils.sourceforge.io/" as link %}Please ask your administrators to install <a href="{{ link }}">docutils</a>.{% endblocktranslate %}</p>
<p>{% blocktranslate with "https://pypi.org/project/docutils/" as link %}Please ask your administrators to install <a href="{{ link }}">docutils</a>.{% endblocktranslate %}</p>
</div>

{% endblock %}
2 changes: 1 addition & 1 deletion docs/ref/contrib/admin/admindocs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ the following:
your ``urlpatterns``. Make sure it's included *before* the
``'admin/'`` entry, so that requests to ``/admin/doc/`` don't get
handled by the latter entry.
* Install the docutils Python module (https://docutils.sourceforge.io/).
* Install the :pypi:`docutils` package.
* **Optional:** Using the admindocs bookmarklets requires
``django.contrib.admindocs.middleware.XViewMiddleware`` to be installed.

Expand Down
2 changes: 1 addition & 1 deletion tests/admin_docs/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def test_missing_docutils(self):
'<a href="https://docutils.sourceforge.io/">docutils</a> '
"library.</h3>"
"<p>Please ask your administrators to install "
'<a href="https://docutils.sourceforge.io/">docutils</a>.</p>',
'<a href="https://pypi.org/project/docutils/">docutils</a>.</p>',
html=True,
)
self.assertContains(
Expand Down

0 comments on commit 453cfa2

Please sign in to comment.