Skip to content

Commit f44ff30

Browse files
authored
[doc] cleanup references and update external URLs (#12182)
1 parent f26d492 commit f44ff30

File tree

12 files changed

+29
-29
lines changed

12 files changed

+29
-29
lines changed

.flake8

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,6 @@ exclude =
3232
sphinx/search/*,
3333
doc/usage/extensions/example*.py,
3434
per-file-ignores =
35+
doc/conf.py:W605
3536
tests/test_extensions/ext_napoleon_pep526_data_google.py:MLL001,
3637
tests/test_extensions/ext_napoleon_pep526_data_numpy.py:MLL001,

.ruff.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ select = [
367367
"doc/*" = [
368368
"ANN", # documentation doesn't need annotations
369369
]
370-
"doc/conf.py" = ["INP001"]
370+
"doc/conf.py" = ["INP001", "W605"]
371371
"doc/development/tutorials/examples/*" = ["INP001"]
372372
# allow print() in the tutorial
373373
"doc/development/tutorials/examples/recipe.py" = ["T201"]

CHANGES.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,11 @@ Features added
3636
* #12131: Added :confval:`show_warning_types` configuration option.
3737
Patch by Chris Sewell.
3838

39-
* #11701: HTML Search: Adopt the new `<search>`_ element.
39+
* #11701: HTML Search: Adopt the new `\<search\>`_ element.
4040
Patch by Bénédikt Tran.
4141

42-
.. _`<search>`: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/search
42+
.. _`\<search\>`: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/search
43+
4344
* #11803: autodoc: Use an overriden ``__repr__()`` function in an enum,
4445
if defined. Patch by Shengyu Zhang.
4546

EXAMPLES.rst

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ Documentation using the classic theme
6060
* `Buildbot <https://docs.buildbot.net/latest/>`__
6161
* `CMake <https://cmake.org/documentation/>`__ (customized)
6262
* `Chaco <https://docs.enthought.com/chaco/>`__ (customized)
63-
* `Cormoran <https://cormoran.nhopkg.org/docs/>`__
6463
* `DEAP <https://deap.readthedocs.io/>`__ (customized)
6564
* `Director <https://pythonhosted.org/director/>`__
6665
* `EZ-Draw <https://pageperso.lis-lab.fr/~edouard.thiel/ez-draw/doc/en/html/ez-manual.html>`__ (customized)
@@ -71,7 +70,7 @@ Documentation using the classic theme
7170
* `Grok <https://web.archive.org/web/20230708190705/http://grok.zope.org/doc/current/>`__ (customized)
7271
* `GROMACS <https://manual.gromacs.org/documentation/>`__
7372
* `GSL Shell <https://www.nongnu.org/gsl-shell/>`__
74-
* `Hands-on Python Tutorial <https://anh.cs.luc.edu/python/hands-on/3.1/handsonHtml/>`__
73+
* `Hands-on Python Tutorial <http://anh.cs.luc.edu:80/python/hands-on/3.1/handsonHtml/>`__
7574
* `Kaa <https://freevo.github.io/kaa-base/>`__ (customized)
7675
* `Leo <https://leoeditor.com/>`__ (customized)
7776
* `Mayavi <https://docs.enthought.com/mayavi/mayavi/>`__ (customized)
@@ -116,7 +115,7 @@ Documentation using the sphinxdoc theme
116115
* `Pyre <https://pyre.readthedocs.io/>`__
117116
* `pySPACE <https://pyspace.github.io/pyspace/>`__
118117
* `Pysparse <https://pysparse.sourceforge.net/>`__
119-
* `PyTango <https://www.esrf.eu/computing/cs/tango/tango_doc/kernel_doc/pytango/latest/>`__
118+
* `PyTango <https://pytango.readthedocs.io>`__
120119
* `Python Wild Magic <https://vmlaker.github.io/pythonwildmagic/>`__ (customized)
121120
* `RDKit <https://www.rdkit.org/docs/>`__
122121
* `Reteisi <https://www.reteisi.org/contents.html>`__ (customized)
@@ -186,7 +185,6 @@ Documentation using sphinx_rtd_theme
186185
* `dj-stripe <https://dj-stripe.readthedocs.io/>`__
187186
* `edX <https://docs.edx.org/>`__
188187
* `Electrum <https://docs.electrum.org/>`__
189-
* `Elemental <https://libelemental.org/documentation/dev/>`__
190188
* `ESWP3 <https://eswp3.readthedocs.io/>`__
191189
* `Ethereum Homestead <https://www.ethdocs.org/>`__
192190
* `Exhale <https://exhale.readthedocs.io/>`__
@@ -205,7 +203,6 @@ Documentation using sphinx_rtd_theme
205203
* `HDF5 for Python (h5py) <https://docs.h5py.org/>`__
206204
* `HyperKitty <https://hyperkitty.readthedocs.io/>`__
207205
* `Hyperledger Fabric <https://hyperledger-fabric.readthedocs.io/>`__
208-
* `Hyperledger Sawtooth <https://sawtooth.hyperledger.org/docs/>`__
209206
* `IdentityServer <https://docs.identityserver.io/>`__
210207
* `Idris <https://docs.idris-lang.org/>`__
211208
* `Inkscape <https://inkscape-manuals.readthedocs.io/>`__ (customized)
@@ -266,6 +263,7 @@ Documentation using sphinx_rtd_theme
266263
* `Qtile <https://docs.qtile.org/>`__
267264
* `Quex <https://quex.sourceforge.net/doc/html/main.html>`__
268265
* `QuTiP <https://qutip.org/docs/latest/>`__
266+
* `Sawtooth <https://sawtooth.splinter.dev/docs>`__
269267
* `Scapy <https://scapy.readthedocs.io/>`__
270268
* `SimGrid <https://simgrid.org/doc/latest/>`__
271269
* `SimPy <https://simpy.readthedocs.io/>`__
@@ -418,11 +416,9 @@ Homepages and other non-documentation sites
418416
* `Institute for the Design of Advanced Energy Systems (IDAES) <https://idaes-pse.readthedocs.io/>`__ (sphinx_rtd_theme)
419417
* `IDAES Examples <https://idaes.github.io/examples-pse/>`__ (sphinx_rtd_theme)
420418
* `Lei Ma's Statistical Mechanics lecture notes <https://statisticalphysics.leima.is/>`__ (sphinx_bootstrap_theme)
421-
* `Loyola University Chicago CS Academic Programs <https://academics.cs.luc.edu/index.html>`__ (sphinx_rtd_theme, customized)
422419
* `PyXLL <https://www.pyxll.com/>`__ (sphinx_bootstrap_theme, customized)
423420
* `SciPy Cookbook <https://scipy-cookbook.readthedocs.io/>`__ (sphinx_rtd_theme)
424421
* `Tech writer at work blog <https://documatt.com/blog/>`__ (custom theme)
425-
* `Thomas Cokelaer's Python, Sphinx and reStructuredText tutorials <https://thomas-cokelaer.info/tutorials/>`__ (standard)
426422
* `UC Berkeley ME233 Advanced Control Systems II course <https://berkeley-me233.github.io/>`__ (sphinxdoc)
427423
* `Željko Svedružić's Biomolecular Structure and Function Laboratory (BioSFLab) <https://svedruziclab.github.io/>`__ (sphinx_bootstrap_theme)
428424

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ clean: clean
4545

4646
.PHONY: style-check
4747
style-check:
48-
@flake8 .
49-
@ruff check .
48+
@echo '[+] running flake8' ; flake8 .
49+
@echo '[+] running ruff' ; ruff check .
5050

5151
.PHONY: format
5252
format:

doc/changes.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
:tocdepth: 1
22

3-
.. default-role:: any
4-
53
.. _changes:
64

75
=========

doc/conf.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,22 @@
101101
latex_use_xindy = True
102102

103103
linkcheck_timeout = 5
104+
linkcheck_ignore = [
105+
r'^contents\.html$', # extra generated page
106+
'^\.\./contents\.html$',
107+
re.escape('https://gitlab.com/projects/new'), # requires sign-in
108+
re.escape('https://web.libera.chat/?channel=#sphinx-doc'),
109+
]
110+
linkcheck_anchors_ignore_for_url = [
111+
# anchors in Markdown files cannot be accessed directly
112+
'https://github.com/Khan/style-guides/blob/master/style/python.md',
113+
]
104114

105115
autodoc_member_order = 'groupwise'
106116
autosummary_generate = False
107117
todo_include_todos = True
108118
extlinks = {
119+
'dupage': ('https://docutils.sourceforge.io/docs/ref/rst/' '%s.html', '%s'),
109120
'duref': (
110121
'https://docutils.sourceforge.io/docs/ref/rst/' 'restructuredtext.html#%s',
111122
'%s',

doc/development/builders.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ for 'mybuilder' can be defined in the extension's ``pyproject.toml``
2525
Note that it is still necessary to register the builder using
2626
:meth:`~.Sphinx.add_builder` in the extension's :func:`setup` function.
2727

28-
.. _entry points: https://setuptools.readthedocs.io/en/latest/setuptools.html#dynamic-discovery-of-services-and-plugins
28+
.. _entry points: https://setuptools.pypa.io/en/latest/userguide/entry_point.html

doc/tutorial/deploying.rst

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -109,16 +109,11 @@ The quickest way to upload an existing project to GitHub is to:
109109
sources, complicating your workflow.
110110

111111
These steps do not require access to the command line or installing any
112-
additional software. To learn more, you can:
112+
additional software. To learn more, read `this quickstart tutorial`_ or
113+
consult the `official GitHub documentation`_
113114

114-
- Follow `this interactive GitHub course`_ to learn more about how the GitHub
115-
interface works.
116-
- Read `this quickstart tutorial`_ to install extra software on your machine
117-
and have more flexibility. You can either use the Git command line, or the
118-
GitHub Desktop application.
119-
120-
.. _this interactive GitHub course: https://lab.github.com/githubtraining/introduction-to-github
121115
.. _this quickstart tutorial: https://docs.github.com/en/get-started/quickstart
116+
.. _official GitHub documentation: https://docs.github.com/en/get-started
122117

123118
GitLab
124119
~~~~~~

doc/usage/extensions/autodoc.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ you can also enable the :mod:`napoleon <sphinx.ext.napoleon>` extension.
4040
:mod:`napoleon <sphinx.ext.napoleon>` is a preprocessor that converts your
4141
docstrings to correct reStructuredText before :mod:`autodoc` processes them.
4242

43-
.. _Google: https://github.com/google/styleguide/blob/gh-pages/pyguide.md#38-comments-and-docstrings
43+
.. _Google: https://google.github.io/styleguide/pyguide.html#38-comments-and-docstrings
4444
.. _NumPy: https://numpydoc.readthedocs.io/en/latest/format.html#docstring-standard
4545

4646

doc/usage/installation.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ a Python distribution such as `Anaconda`__.
6464

6565
__ https://brew.sh/
6666
__ https://www.macports.org/
67-
__ https://www.anaconda.com/download/#macos
67+
__ https://www.anaconda.com/download
6868

6969
Homebrew
7070
~~~~~~~~
@@ -199,9 +199,7 @@ use the following command.
199199

200200
$ python -m venv .venv
201201

202-
You can read more about them in the `Python Packaging User Guide`_.
203-
204-
.. _Python Packaging User Guide: https://packaging.python.org/guides/installing-using-pip-and-virtual-environments/#creating-a-virtual-environment
202+
.. seealso:: :mod:`venv` -- creating virtual environments
205203

206204
.. warning::
207205

doc/usage/restructuredtext/basics.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ information.
289289
Roles
290290
-----
291291

292-
A role or "custom interpreted text role" (:duref:`ref <roles>`) is an inline
292+
A role or "custom interpreted text role" (:dupage:`ref <roles>`) is an inline
293293
piece of explicit markup. It signifies that the enclosed text should be
294294
interpreted in a specific way. Sphinx uses this to provide semantic markup and
295295
cross-referencing of identifiers, as described in the appropriate section. The

0 commit comments

Comments
 (0)