Skip to content

Commit 838527b

Browse files
committed
Introduce new topics for doc
* Move some files that better fit into an "Advanced topic" * Introduce "Migration to semver3" topic
1 parent 68553fe commit 838527b

17 files changed

+37
-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/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

docs/index.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ Semver |version| -- Semantic Versioning
1111

1212
install
1313
usage/index
14-
migratetosemver3
14+
migration/index
15+
advanced/index
1516
development
1617
api
1718

@@ -31,6 +32,7 @@ Semver |version| -- Semantic Versioning
3132
changelog
3233
changelog-semver2
3334

35+
3436
Indices and Tables
3537
==================
3638

0 commit comments

Comments
 (0)