Browse Source

Replaced docutils link by PyPI reference.

Claude Paroz 1 year ago
parent
commit
453cfa2815

+ 1 - 1
django/contrib/admindocs/templates/admin_doc/missing_docutils.html

@@ -16,7 +16,7 @@
 <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 %}

+ 1 - 1
docs/ref/contrib/admin/admindocs.txt

@@ -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.
 

+ 1 - 1
tests/admin_docs/test_views.py

@@ -148,7 +148,7 @@ class AdminDocViewTests(TestDataMixin, AdminDocsTestCase):
                 '<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(