Skip to content

Commit 1cc4e2c

Browse files
authored
Merge branch 'main' into add-glossary-build-backend-frontend
2 parents 64a7c8e + 870a1bc commit 1cc4e2c

11 files changed

+31
-83
lines changed

requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
sphinx==4.5.0
1+
sphinx==7.2.6
22
sphinx-autobuild==2021.3.14
3-
sphinx-inline-tabs==2021.4.11b9
3+
sphinx-inline-tabs==2023.4.21
44
python-docs-theme==2023.9
5-
sphinx-copybutton==0.5.0
5+
sphinx-copybutton==0.5.2
66
pypa-docs-theme @ git+https://github.com/pypa/pypa-docs-theme.git
77
sphinx-toolbox==3.5.0

source/conf.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
#
8989
# This is also used if you do content translation via gettext catalogs.
9090
# Usually you set "language" from the command line for these cases.
91-
language = None
91+
language = 'en'
9292

9393
locale_dirs = ['../locales']
9494

@@ -379,11 +379,11 @@
379379

380380
# -- Options for extlinks extension ---------------------------------------
381381
extlinks = {
382-
'issue': (f'{github_repo_issues_url}/%s', '#'), # noqa: WPS323
383-
'pr': (f'{github_repo_url}/pull/%s', 'PR #'), # noqa: WPS323
384-
'commit': (f'{github_repo_url}/commit/%s', ''), # noqa: WPS323
385-
'gh': (f'{github_url}/%s', 'GitHub: '), # noqa: WPS323
386-
'user': (f'{github_sponsors_url}/%s', '@'), # noqa: WPS323
382+
'issue': (f'{github_repo_issues_url}/%s', '#%s'), # noqa: WPS323
383+
'pr': (f'{github_repo_url}/pull/%s', 'PR #%s'), # noqa: WPS323
384+
'commit': (f'{github_repo_url}/commit/%s', '%s'), # noqa: WPS323
385+
'gh': (f'{github_url}/%s', 'GitHub: %s'), # noqa: WPS323
386+
'user': (f'{github_sponsors_url}/%s', '@%s'), # noqa: WPS323
387387
}
388388

389389
linkcheck_ignore = [

source/contribute.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,12 @@ Documentation types
3232
===================
3333

3434
This project consists of four distinct documentation types with specific
35-
purposes. When proposing new additions to the project please pick the
35+
purposes. The project aspires to follow the `Diátaxis process`_
36+
for creating quality documentation. When proposing new additions to the project please pick the
3637
appropriate documentation type.
3738

39+
.. _Diátaxis process: https://diataxis.fr/
40+
3841
Tutorials
3942
---------
4043

source/guides/distributing-packages-using-setuptools.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ development as a whole. For example, it does not provide guidance or tool
1515
recommendations for version control, documentation, or testing.
1616

1717
For more reference material, see :std:doc:`Building and Distributing
18-
Packages <userguide/index>` in the :ref:`setuptools` docs, but note
18+
Packages <setuptools:userguide/index>` in the :ref:`setuptools` docs, but note
1919
that some advisory content there may be outdated. In the event of
2020
conflicts, prefer the advice in the Python Packaging User Guide.
2121

@@ -717,7 +717,7 @@ Lastly, if you don't want to install any dependencies at all, you can run:
717717
718718
For more information, see the
719719
:doc:`Development Mode <setuptools:userguide/development_mode>` section
720-
of the :doc:`setuptools docs <setuptools>`.
720+
of the :ref:`setuptools` docs.
721721

722722
.. _`Packaging your project`:
723723

source/guides/index.rst

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ introduction to packaging, see :doc:`/tutorials/index`.
1313
installing-stand-alone-command-line-tools
1414
installing-using-linux-tools
1515
installing-scientific-packages
16-
index-mirrors-and-caches
17-
hosting-your-own-index
1816

1917
.. toctree::
2018
:maxdepth: 1
@@ -31,6 +29,13 @@ introduction to packaging, see :doc:`/tutorials/index`.
3129
making-a-pypi-friendly-readme
3230
publishing-package-distribution-releases-using-github-actions-ci-cd-workflows
3331

32+
.. toctree::
33+
:maxdepth: 1
34+
:caption: Hosting
35+
36+
index-mirrors-and-caches
37+
hosting-your-own-index
38+
3439
.. toctree::
3540
:maxdepth: 1
3641
:caption: Miscellaneous:

source/overview.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ Python's native packaging is mostly built for distributing reusable
167167
code, called libraries, between developers. You can piggyback
168168
**tools**, or basic applications for developers, on top of Python's
169169
library packaging, using technologies like
170-
:doc:`setuptools entry_points <userguide/entry_point>`.
170+
:doc:`setuptools entry_points <setuptools:userguide/entry_point>`.
171171

172172
Libraries are building blocks, not complete applications. For
173173
distributing applications, there's a whole new world of technologies

source/specifications/name-normalization.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ This means that the following names are all equivalent:
3636
* ``friendly.bard``
3737
* ``friendly_bard``
3838
* ``friendly--bard``
39-
* ``FrIeNdLy-._.-bArD`` (a _terrible_ way to write a name, but it is valid)
39+
* ``FrIeNdLy-._.-bArD`` (a *terrible* way to write a name, but it is valid)
4040

4141
History
4242
=======
Lines changed: 4 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,7 @@
1-
.. _creating-documentation:
1+
:orphan:
22

3+
Creating documentation
34
======================
4-
Creating Documentation
5-
======================
6-
7-
This section covers the basics of how to create documentation using `Sphinx`_ and
8-
host the documentation for free in `Read The Docs`_.
9-
10-
.. _Sphinx: https://www.sphinx-doc.org
11-
.. _Read The Docs: https://readthedocs.org/
12-
13-
Installing Sphinx
14-
-----------------
15-
Use ``pip`` to install Sphinx:
16-
17-
.. tab:: Unix/macOS
18-
19-
.. code-block:: bash
20-
21-
python3 -m pip install --upgrade sphinx
22-
23-
.. tab:: Windows
24-
25-
.. code-block:: bat
26-
27-
py -m pip install --upgrade sphinx
28-
29-
For other installation methods, see this :doc:`installation guide <sphinx:usage/installation>` by Sphinx.
30-
31-
32-
Getting Started With Sphinx
33-
---------------------------
34-
35-
Create a ``docs`` directory inside your project to hold your documentation:
36-
37-
.. code-block:: bash
38-
39-
cd /path/to/project
40-
mkdir docs
41-
42-
Run ``sphinx-quickstart`` inside the ``docs`` directory:
43-
44-
.. code-block:: bash
45-
46-
cd docs
47-
sphinx-quickstart
48-
49-
This sets up a source directory, walks you through some basic configurations, and creates an ``index.rst`` file as well as a ``conf.py`` file.
50-
51-
You can add some information about your project in ``index.rst``, then build them:
52-
53-
.. code-block:: bash
54-
55-
make html
56-
57-
For more details on the build process, see this `guide`_ by Read The Docs.
58-
59-
.. _guide: https://docs.readthedocs.io/en/latest/intro/import-guide.html
60-
61-
Other Sources
62-
-------------
63-
64-
For a more detailed guide on how to use Sphinx and reStructuredText, please see this `documentation tutorial`_ on Hitchhiker's Guide to Python.
655

66-
.. _documentation tutorial: https://docs.python-guide.org/writing/documentation/
6+
This tutorial has been removed since it is not related to packaging and was unmaintained.
7+
Please see the `Sphinx tutorial <https://www.sphinx-doc.org/en/master/tutorial>`_ instead.

source/tutorials/index.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,3 @@ topics, see :doc:`/guides/index`.
1111
installing-packages
1212
managing-dependencies
1313
packaging-projects
14-
creating-documentation

source/tutorials/installing-packages.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ that the virtual environment's variables are set within the current
277277
shell, and not in a subprocess (which then disappears, having no
278278
useful effect).
279279

280-
In both of the above cases, Windows users should _not_ use the
280+
In both of the above cases, Windows users should *not* use the
281281
:command:`source` command, but should rather run the :command:`activate`
282282
script directly from the command shell like so:
283283

0 commit comments

Comments
 (0)