Skip to content

Commit 53f721a

Browse files
authored
Merge pull request #351 from tomschr/feature/rework-doc
Introduce new topics for doc
2 parents 6b6cba8 + 838527b commit 53f721a

18 files changed

+39
-11
lines changed

CONTRIBUTING.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ We recommend the following workflow:
6464
a. Write test cases and run the complete test suite, see :ref:`testsuite`
6565
for details.
6666

67-
b. Write a changelog entry, see section :ref:`changelog`.
67+
b. Write a changelog entry, see section :ref:`add-changelog`.
6868

6969
c. If you have implemented a new feature, document it into our
7070
documentation to help our reader. See section :ref:`doc` for
@@ -214,7 +214,7 @@ documentation includes:
214214
edge cases.
215215

216216

217-
.. _changelog:
217+
.. _add-changelog:
218218

219219
Adding a Changelog Entry
220220
------------------------

changelog.d/350.doc.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Restructure usage section. Create subdirectory "usage/" and splitted
2+
all section into different files.

changelog.d/351.doc.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Introduce new topics for:
2+
3+
* "Migration to semver3"
4+
* "Advanced topics"
File renamed without changes.

docs/advanced/index.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Advanced topics
2+
===============
3+
4+
5+
6+
.. toctree::
7+
8+
deal-with-invalid-versions
9+
create-subclasses-from-version
10+
display-deprecation-warnings

docs/usage/semverwithvprefix.py renamed to docs/advanced/semverwithvprefix.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ def parse(cls, version: str) -> "SemVerWithVPrefix":
1717
"""
1818
if not version[0] in ("v", "V"):
1919
raise ValueError(
20-
"{v!r}: not a valid semantic version tag. Must start with 'v' or 'V'".format(
20+
"{v!r}: not a valid semantic version tag. "
21+
"Must start with 'v' or 'V'".format(
2122
v=version
2223
)
2324
)

docs/changelog.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
.. _change-log:
2+
13
.. include:: ../CHANGELOG.rst

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy