Skip to content

Commit 88aa305

Browse files
authored
Documentation improvements (#859)
- print link to where documentation is generated - remove old documentation css - configure alabaster to display Github stars/Travis CI, and fork me badge - allow the documentation to span up to 1280 pixels, instead of 800 (this allows many code examples to be much more readable, or changelog entries) - remove large spaces in between changelog entries for a more compact view - version strings are italic and bold for a cleaner delimitation inside the changelog - sections in a version changelog has a smaller top margin for a more compact view - automatically render news at top of the documentation under DRAFT section, this allows testing the news fragment before release - remove double header for changelog - use the ``:user:`` extlinks for changelog entries to link to contributors Github profile - improve changelog entry for issue #858 - add a config file for readthedocs see example output at https://tox-gaborbernat.readthedocs.io/en/doc-impr (or deep dive http://tox-gaborbernat.readthedocs.io/en/doc-impr/changelog.html)
1 parent dbbeb67 commit 88aa305

27 files changed

+140
-378
lines changed

.codecov.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,4 @@ comment:
2626
require_changes: no
2727

2828
ignore:
29-
- "tox/_verlib.py" # vendored in and not internally tested
30-
- "tox/__main__.py"
29+
- "src/tox/_verlib.py" # vendored in and not internally tested

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,4 @@ htmlcov
2626
py27/
2727

2828
.*_cache
29+
_draft.rst

CHANGELOG.rst

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
CHANGELOG
2-
=========
3-
4-
Versions follow `Semantic Versioning <https://semver.org/>`_ (<major>.<minor>.<patch>).
1+
Versions follow `Semantic Versioning <https://semver.org/>`_ (``<major>.<minor>.<patch>``).
52

63
Backward incompatible (breaking) changes will only be introduced in major versions
74
with advance notice in the **Deprecations** section of releases.
@@ -23,6 +20,8 @@ on Github:
2320
folder. If necessary, the generated text can be edited afterwards to e.g. merge rc changes
2421
into the final release notes.
2522
23+
.. include:: ../_draft.rst
24+
2625
.. towncrier release notes start
2726
2827
3.0.0 (2018-04-02)
@@ -92,17 +91,17 @@ Features
9291
``platform.machine()``. (`#740 <https://github.com/tox-dev/tox/issues/740>`_)
9392

9493

95-
Documentation improvements
96-
^^^^^^^^^^^^^^^^^^^^^^^^^^
94+
Documentation
95+
^^^^^^^^^^^^^
9796

9897
- Change favicon to the vector beach ball - by @hazalozturk
9998
(`#748 <https://github.com/tox-dev/tox/issues/748>`_)
10099
- Change sphinx theme to alabaster and add logo/favicon - by @hazalozturk
101100
(`#639 <https://github.com/tox-dev/tox/issues/639>`_)
102101

103102

104-
Miscellaneous / trivial changes
105-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
103+
Miscellaneous
104+
^^^^^^^^^^^^^
106105

107106
- Running ``tox`` without a ``setup.py`` now has a more friendly error message
108107
and gives troubleshooting suggestions - by @Volcyy.
@@ -119,8 +118,8 @@ Miscellaneous / trivial changes
119118
2.9.1 (2017-09-29)
120119
------------------
121120

122-
Misc
123-
^^^^
121+
Miscellaneous
122+
^^^^^^^^^^^^^
124123

125124
- integrated new release process and fixed changelog rendering for pypi.org -
126125
by `@obestwalter <https://github.com/obestwalter>`_.
@@ -146,8 +145,8 @@ Bugfixes
146145
(`#571 <https://github.com/tox-dev/tox/issues/571>`_)
147146

148147

149-
Misc
150-
^^^^
148+
Miscellaneous
149+
^^^^^^^^^^^^^
151150

152151
- `#635 <https://github.com/tox-dev/tox/issues/635>`_ inherit from correct exception -
153152
by `@obestwalter <https://github.com/obestwalter>`_
@@ -159,8 +158,8 @@ Misc
159158
by `@obestwalter <https://github.com/obestwalter>`_.
160159

161160

162-
Improved Documentation
163-
^^^^^^^^^^^^^^^^^^^^^^
161+
Documentation
162+
^^^^^^^^^^^^^
164163

165164
- add `towncrier <https://github.com/hawkowl/towncrier>`_ to allow adding
166165
changelog entries with the pull requests without generating merge conflicts;

changelog/19.feature.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
Add support for multiple PyPy versions using default factors. This allows you
22
to use, for example, ``pypy27`` knowing that the correct intepreter will be
3-
used by default - by @stephenfin
3+
used by default - by :user:`stephenfin`

changelog/477.bugfix.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ Add ``ignore_basepython_conflict``, which determines whether conflicting
22
``basepython`` settings for environments containing default factors, such as
33
``py27`` or ``django18-py35``, should be ignored or result in warnings. This
44
was a common source of misconfiguration and is rarely, if ever, desirable from
5-
a user perspective - by @stephenfin
5+
a user perspective - by :user:`stephenfin`

changelog/706.bugfix.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Fix bug with incorrectly defactorized dependencies - by @bartsanchez
1+
Fix bug with incorrectly defactorized dependencies (deps passed to pip were not de-factorized) - by :user:`bartsanchez`

changelog/754.misc.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
filter out unwanted files in package - by @obestwalter
1+
filter out unwanted files in package - by :user:`obestwalter`

changelog/794.feature.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ Add support to explicitly invoke interpreter directives for environments with
22
long path lengths. In the event that ``tox`` cannot invoke scripts with a
33
system-limited shebang (e.x. a Linux host running a Jenkins Pipeline), a user
44
can set the environment variable ``TOX_LIMITED_SHEBANG`` to workaround the
5-
system's limitation (e.x. ``export TOX_LIMITED_SHEBANG=1``) - by @jdknight
5+
system's limitation (e.x. ``export TOX_LIMITED_SHEBANG=1``) - by :user:`jdknight`

changelog/797.doc.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
extend the plugin documentation and make lot of small fixes and improvements - by @obestwalter
1+
extend the plugin documentation and make lot of small fixes and improvements - by :user:`obestwalter`

changelog/798.feature.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
introduce a constants module to be used internally and as experimental API - by @obestwalter
1+
introduce a constants module to be used internally and as experimental API - by :user:`obestwalter`

changelog/799.doc.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
tidy up tests - remove unused fixtures, update old cinstructs, etc. - by @obestwalter
1+
tidy up tests - remove unused fixtures, update old cinstructs, etc. - by :user:`obestwalter`

changelog/800.misc.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
make the already existing implicit API explicit - by @obestwalter
1+
make the already existing implicit API explicit - by :user:`obestwalter`

changelog/801.misc.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
improve tox quickstart and corresponding tests - @obestwalter
1+
improve tox quickstart and corresponding tests - by :user:`obestwalter`

changelog/802.misc.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
tweak codecov settings via .codecov.yml - by @obestwalter
1+
tweak codecov settings via .codecov.yml - by :user:`obestwalter`

changelog/856.feature.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
Make ``py2`` and ``py3`` aliases also resolve via ``py`` on windows
1+
Make ``py2`` and ``py3`` aliases also resolve via ``py`` on windows by :user:`asottile`. This enables the following things:
2+
``tox -e py2`` and ``tox -e py3`` work on windows (they already work on posix); and setting ``basepython=python2`` or ``basepython=python3`` now works on windows.

changelog/859.doc.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Various improvements to documentation: open browser once documentation generation is done, show Github/Travis info on documentation page, remove duplicate header for changelog, generate unreleased news as DRAFT on top of changelog, make the changelog page more compact and readable (width up to 1280px) by :user:`gaborbernat`

changelog/examples.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22
33
file ``544.doc.rst``::
44

5-
explain everything much better - by @passionate_technicalwriter
5+
explain everything much better - by :user:`passionate_technicalwriter`
66

77
file ``544.feature.rst``::
88

9-
``tox --version`` now shows information about all registered plugins - by @obestwalter
9+
``tox --version`` now shows information about all registered plugins - by :user:`obestwalter`
1010

1111

1212
file ``571.bugfix.rst``::
1313

1414
``skip_install`` overrides ``usedevelop`` (``usedevelop`` is an option to choose the
1515
installation type if the package is installed and `skip_install` determines if it should be
16-
installed at all) - by @ferdonline
16+
installed at all) - by :user:`ferdonline`
1717

1818
.. see tox/pyproject.toml for all available categories

doc/_static/custom.css

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
div.document {
2+
width: 100%;
3+
max-width: 1520px;
4+
}
5+
6+
div.body {
7+
max-width: 1280px;
8+
}
9+
10+
img, div.figure {
11+
margin: 0 !important
12+
}
13+
14+
ul > li {
15+
text-align: justify;
16+
}
17+
18+
ul > li > p {
19+
margin-bottom: 0;
20+
21+
}
22+
23+
div.body code.descclassname {
24+
display: none
25+
}
26+
27+
.wy-table-responsive table td {
28+
white-space: normal !important;
29+
}
30+
31+
.wy-table-responsive {
32+
overflow: visible !important;
33+
}
34+
35+
div.toctree-wrapper.compound > ul > li {
36+
margin: 0;
37+
padding: 0
38+
}
39+
40+
code.docutils.literal {
41+
background-color: #ECF0F3;
42+
padding: 0 1px;
43+
}
44+
45+
div#changelog-history h3{
46+
margin-top: 10px;
47+
}
48+
49+
div#changelog-history h2{
50+
font-style: italic;
51+
font-weight: bold;
52+
}
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)