Skip to content

Commit 4d15b25

Browse files
committed
Improve entry page
* Improve main title with semver's version and a catchy phrase * Move the |latest-version| placeholder to the other placeholders like build status, downloads etc. * Remove the "Welcome bla" heading as it introduces a lonly section and it is mostly useless * Add a short explanation about the "version style" major.minor.patch (cited from semver.org) * Reference the other parts with just the filename (with the .rst extension) and without the title. The title is automatically retrieved from the file, no need to repeat it. This makes the overall doc more consistent. * Change py.test -> pytest
1 parent a56fff8 commit 4d15b25

File tree

2 files changed

+22
-15
lines changed

2 files changed

+22
-15
lines changed

docs/development.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ code to your fork and opening a `pull request`_:
88
99
python setup.py test
1010
11-
We use `py.test`_ and `tox`_ to run tests against all supported Python
11+
We use `pytest`_ and `tox`_ to run tests against all supported Python
1212
versions. All test dependencies are resolved automatically, apart from
1313
virtualenv, which for the moment you still may have to install manually:
1414

@@ -24,5 +24,5 @@ You can use the ``clean`` command to remove build and test files and folders:
2424
2525
2626
.. _pull request: https://github.com/k-bx/python-semver/pulls
27-
.. _py.test: http://pytest.org/
27+
.. _pytest: http://pytest.org/
2828
.. _tox: http://tox.testrun.org/

docs/index.rst

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,33 @@
1-
Semver |latest-version|
2-
=======================
1+
Semver |version| -- Semantic Versioning
2+
=======================================
33

4-
|build-status| |python-support| |downloads| |license|
4+
|build-status| |latest-version| |python-support| |downloads| |license|
55

66
.. python-semver documentation master file, created by
77
sphinx-quickstart on Tue May 1 16:51:19 2018.
88
You can adapt this file completely to your liking, but it should at least
99
contain the root `toctree` directive.
1010
11-
Welcome to python-semver's documentation!
12-
=========================================
11+
A Python module for `semantic versioning`_. Simplifies comparing versions.
12+
13+
The module follows the ``MAJOR.MINOR.PATCH`` style:
14+
15+
* ``MAJOR`` version when you make incompatible API changes,
16+
* ``MINOR`` version when you add functionality in a backwards compatible manner, and
17+
* ``PATCH`` version when you make backwards compatible bug fixes.
18+
19+
Additional labels for pre-release and build metadata are supported.
20+
21+
1322

1423
.. toctree::
1524
:maxdepth: 2
16-
:caption: Contents:
25+
:caption: Contents
1726

18-
Install <install.rst>
19-
Usage <usage.rst>
20-
Development <development.rst>
21-
API <api.rst>
22-
23-
A Python module for `semantic versioning`_. Simplifies comparing versions.
27+
install
28+
usage
29+
development
30+
api
2431

2532

2633
.. |latest-version| image:: https://img.shields.io/pypi/v/semver.svg
@@ -41,7 +48,7 @@ A Python module for `semantic versioning`_. Simplifies comparing versions.
4148
.. _semantic versioning: http://semver.org/
4249

4350

44-
Indices and tables
51+
Indices and Tables
4552
==================
4653

4754
* :ref:`genindex`

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