Skip to content

Commit ccda3a2

Browse files
committed
📝 Rearrange documentation section
1 parent 5fd39c8 commit ccda3a2

35 files changed

+116
-109
lines changed

CHANGELOG.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,14 @@ emergencies when we need to start branches for older versions.
1313

1414
.. _changelog:
1515

16+
`Unreleased <https://github.com/veit/python-basics-tutorial/compare/24.3.0...HEAD>`_
17+
------------------------------------------------------------------------------------
18+
19+
Changed
20+
~~~~~~~
21+
22+
* 📝 Rearrange documentation section
23+
1624
`24.3.0 <https://github.com/veit/python-basics-tutorial/compare/24.2.0...24.3.0>`_: 2024-10-27
1725
----------------------------------------------------------------------------------------------
1826

docs/document/badges.rst

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
Badges
2+
======
3+
4+
Some of this information and more can be accessed as badges. They are helpful in
5+
getting a quick overview of a product. For the
6+
`cookiecutter-namespace-template
7+
<https://github.com/veit/cookiecutter-namespace-template>`_ these are, for
8+
example:
9+
10+
|Downloads| |Versions| |Contributors| |License| |Docs|
11+
12+
.. |Downloads| image::
13+
https://static.pepy.tech/badge/cookiecutter-namespace-template
14+
:target: https://www.pepy.tech/projects/cookiecutter-namespace-template
15+
.. |Versions| image::
16+
https://img.shields.io/pypi/pyversions/cookiecutter-namespace-template.svg
17+
:target: https://pypi.org/project/cookiecutter-namespace-template/
18+
.. |Contributors| image::
19+
https://img.shields.io/github/contributors/veit/cookiecutter-namespace-template.svg
20+
:target: https://github.com/veit/cookiecutter-namespace-template/graphs/contributors
21+
.. |License| image::
22+
https://img.shields.io/github/license/veit/cookiecutter-namespace-template.svg
23+
:target: https://github.com/veit/cookiecutter-namespace-template/blob/main/LICENSE
24+
.. |Docs| image::
25+
https://readthedocs.org/projects/cookiecutter-namespace-template/badge/?version=latest
26+
:target: https://cookiecutter-namespace-template.readthedocs.io/en/latest/
27+
28+
You can also create your own badges, for example:
29+
30+
.. image:: https://img.shields.io/badge/dynamic/json?label=Mastodon&query=totalItems&url=https%3A%2F%2Fmastodon.social%2F@JupyterTutorial%2Ffollowers.json&logo=mastodon
31+
:alt: Mastodon
32+
:target: https://mastodon.social/@JupyterTutorial
33+
34+
.. seealso::
35+
* `shields.io <https://shields.io>`_

docs/document/index.rst

Lines changed: 2 additions & 98 deletions
Original file line numberDiff line numberDiff line change
@@ -46,102 +46,6 @@ or ``LICENSES`` folder) and how to get help if needed.
4646
:titlesonly:
4747
:hidden:
4848

49-
start
50-
rest
51-
code-blocks
52-
placeholder
53-
ui-elements
54-
directives
55-
docstrings
56-
intersphinx
57-
uml/index
58-
extensions
59-
test
49+
sphinx/index
50+
badges
6051
shot-scraper
61-
62-
Badges
63-
------
64-
65-
Some of this information and more can be accessed as badges. They are helpful in
66-
getting a quick overview of a product. For the
67-
`cookiecutter-namespace-template
68-
<https://github.com/veit/cookiecutter-namespace-template>`_ these are, for
69-
example:
70-
71-
|Downloads| |Versions| |Contributors| |License| |Docs|
72-
73-
.. |Downloads| image::
74-
https://static.pepy.tech/badge/cookiecutter-namespace-template
75-
:target: https://www.pepy.tech/projects/cookiecutter-namespace-template
76-
.. |Versions| image::
77-
https://img.shields.io/pypi/pyversions/cookiecutter-namespace-template.svg
78-
:target: https://pypi.org/project/cookiecutter-namespace-template/
79-
.. |Contributors| image::
80-
https://img.shields.io/github/contributors/veit/cookiecutter-namespace-template.svg
81-
:target: https://github.com/veit/cookiecutter-namespace-template/graphs/contributors
82-
.. |License| image::
83-
https://img.shields.io/github/license/veit/cookiecutter-namespace-template.svg
84-
:target: https://github.com/veit/cookiecutter-namespace-template/blob/main/LICENSE
85-
.. |Docs| image::
86-
https://readthedocs.org/projects/cookiecutter-namespace-template/badge/?version=latest
87-
:target: https://cookiecutter-namespace-template.readthedocs.io/en/latest/
88-
89-
You can also create your own badges, for example:
90-
91-
.. image:: https://img.shields.io/badge/dynamic/json?label=Mastodon&query=totalItems&url=https%3A%2F%2Fmastodon.social%2F@JupyterTutorial%2Ffollowers.json&logo=mastodon
92-
:alt: Mastodon
93-
:target: https://mastodon.social/@JupyterTutorial
94-
95-
.. seealso::
96-
* `shields.io <https://shields.io>`_
97-
98-
Sphinx
99-
------
100-
101-
For extensive documentation you can, for example, use `Sphinx
102-
<https://www.sphinx-doc.org/>`_, a documentation tool that converts
103-
reStructuredText into HTML or PDF, EPub and man pages. The Python Basics are
104-
also created with Sphinx. To get a first impression of Sphinx, you can have a
105-
look at the source code of this page by following the link `Sources
106-
<../_sources/document/index.rst.txt>`_.
107-
108-
Originally, Sphinx was developed for the documentation of Python and is now
109-
used in almost all Python projects, including `NumPy and SciPy
110-
<https://docs.scipy.org/doc/>`_, `Matplotlib
111-
<https://matplotlib.org/stable/users/index.html>`_, `Pandas
112-
<https://pandas.pydata.org/docs/>`_ and `SQLAlchemy
113-
<https://docs.sqlalchemy.org/>`_.
114-
115-
The Sphinx `autodoc
116-
<https://www.sphinx-doc.org/en/master/usage/extensions/autodoc.html>`_ feature,
117-
which can be used to create documentation from Python
118-
:doc:`docstrings`, may also be conducive to the spread of Sphinx among Python
119-
developers. Overall, Sphinx allows developers to create complete documentation
120-
in place. Often the documentation is also stored in the same :doc:`Git
121-
<Python4DataScience:productive/git/index>` repository, so that the creation of
122-
the latest software documentation remains easy.
123-
124-
Sphinx is also used in projects outside the Python community, e.g. for the
125-
documentation of the Linux kernel: `Kernel documentation update
126-
<https://lwn.net/Articles/705224/>`_.
127-
128-
`Read the Docs <https://about.readthedocs.com/>`_ was developed to forther
129-
simplify documentation. Read the Docs makes it easy to create and publish
130-
documentation after each commit.
131-
132-
For project documentation, visualising :doc:`Git feature branches
133-
<Python4DataScience:productive/git/workflows/feature-branches>` and :doc:`tags
134-
<Python4DataScience:productive/git/tag>` with
135-
:doc:`Python4DataScience:productive/git/advanced/git-big-picture` can be
136-
helpful.
137-
138-
.. note::
139-
If the content of ``long_description`` in ``setup()`` is written in
140-
reStructured Text, it is displayed as well-formatted HTML on the
141-
:term:`Python Package Index` (:term:`PyPI`).
142-
143-
Other documentation tools
144-
-------------------------
145-
146-
`Pycco <https://pycco-docs.github.io/pycco/>`_
147-
is a Python port of `Docco <https://github.com/jashkenas/docco>`_.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

docs/document/sphinx/index.rst

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
Sphinx
2+
======
3+
4+
For extensive documentation you can, for example, use `Sphinx
5+
<https://www.sphinx-doc.org/>`_, a documentation tool that converts
6+
reStructuredText into HTML or PDF, EPub and man pages. The Python Basics are
7+
also created with Sphinx. To get a first impression of Sphinx, you can have a
8+
look at the source code of this page by following the link `Sources
9+
<../_sources/document/index.rst.txt>`_.
10+
11+
Originally, Sphinx was developed for the documentation of Python and is now
12+
used in almost all Python projects, including `NumPy and SciPy
13+
<https://docs.scipy.org/doc/>`_, `Matplotlib
14+
<https://matplotlib.org/stable/users/index.html>`_, `Pandas
15+
<https://pandas.pydata.org/docs/>`_ and `SQLAlchemy
16+
<https://docs.sqlalchemy.org/>`_.
17+
18+
The Sphinx `autodoc
19+
<https://www.sphinx-doc.org/en/master/usage/extensions/autodoc.html>`_ feature,
20+
which can be used to create documentation from Python
21+
:doc:`docstrings`, may also be conducive to the spread of Sphinx among Python
22+
developers. Overall, Sphinx allows developers to create complete documentation
23+
in place. Often the documentation is also stored in the same :doc:`Git
24+
<Python4DataScience:productive/git/index>` repository, so that the creation of
25+
the latest software documentation remains easy.
26+
27+
Sphinx is also used in projects outside the Python community, e.g. for the
28+
documentation of the Linux kernel: `Kernel documentation update
29+
<https://lwn.net/Articles/705224/>`_.
30+
31+
`Read the Docs <https://about.readthedocs.com/>`_ was developed to forther
32+
simplify documentation. Read the Docs makes it easy to create and publish
33+
documentation after each commit.
34+
35+
For project documentation, visualising :doc:`Git feature branches
36+
<Python4DataScience:productive/git/workflows/feature-branches>` and :doc:`tags
37+
<Python4DataScience:productive/git/tag>` with
38+
:doc:`Python4DataScience:productive/git/advanced/git-big-picture` can be
39+
helpful.
40+
41+
.. note::
42+
If the content of ``long_description`` in ``setup()`` is written in
43+
reStructured Text, it is displayed as well-formatted HTML on the
44+
:term:`Python Package Index` (:term:`PyPI`).
45+
46+
.. toctree::
47+
:titlesonly:
48+
:hidden:
49+
50+
start
51+
rest
52+
code-blocks
53+
placeholder
54+
ui-elements
55+
directives
56+
docstrings
57+
intersphinx
58+
uml/index
59+
extensions
60+
test
File renamed without changes.

0 commit comments

Comments
 (0)