Skip to content

Commit

Permalink
Document improvements
Browse files Browse the repository at this point in the history
- after doc generation automatically open the generated documentation in
a browser
- 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
  • Loading branch information
gaborbernat committed Jun 25, 2018
1 parent 8ab36d3 commit 1b325d5
Show file tree
Hide file tree
Showing 22 changed files with 93 additions and 363 deletions.
7 changes: 3 additions & 4 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
CHANGELOG
=========

Versions follow `Semantic Versioning <https://semver.org/>`_ (<major>.<minor>.<patch>).
Versions follow `Semantic Versioning <https://semver.org/>`_ (``<major>.<minor>.<patch>``).

Backward incompatible (breaking) changes will only be introduced in major versions
with advance notice in the **Deprecations** section of releases.
Expand All @@ -23,6 +20,8 @@ on Github:
folder. If necessary, the generated text can be edited afterwards to e.g. merge rc changes
into the final release notes.
.. include:: ../.tox/docs_out/draft_changelog.rst

.. towncrier release notes start
3.0.0 (2018-04-02)
Expand Down
2 changes: 1 addition & 1 deletion changelog/19.feature.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Add support for multiple PyPy versions using default factors. This allows you
to use, for example, ``pypy27`` knowing that the correct intepreter will be
used by default - by @stephenfin
used by default - by :user:`stephenfin`
2 changes: 1 addition & 1 deletion changelog/477.bugfix.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ Add ``ignore_basepython_conflict``, which determines whether conflicting
``basepython`` settings for environments containing default factors, such as
``py27`` or ``django18-py35``, should be ignored or result in warnings. This
was a common source of misconfiguration and is rarely, if ever, desirable from
a user perspective - by @stephenfin
a user perspective - by :user:`stephenfin`
2 changes: 1 addition & 1 deletion changelog/706.bugfix.rst
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Fix bug with incorrectly defactorized dependencies - by @bartsanchez
Fix bug with incorrectly defactorized dependencies (deps passed to pip were not de-factorized) - by :user:`bartsanchez`
2 changes: 1 addition & 1 deletion changelog/754.misc.rst
Original file line number Diff line number Diff line change
@@ -1 +1 @@
filter out unwanted files in package - by @obestwalter
filter out unwanted files in package - by :user:`obestwalter`
2 changes: 1 addition & 1 deletion changelog/794.feature.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ Add support to explicitly invoke interpreter directives for environments with
long path lengths. In the event that ``tox`` cannot invoke scripts with a
system-limited shebang (e.x. a Linux host running a Jenkins Pipeline), a user
can set the environment variable ``TOX_LIMITED_SHEBANG`` to workaround the
system's limitation (e.x. ``export TOX_LIMITED_SHEBANG=1``) - by @jdknight
system's limitation (e.x. ``export TOX_LIMITED_SHEBANG=1``) - by :user:`jdknight`
2 changes: 1 addition & 1 deletion changelog/797.doc.rst
Original file line number Diff line number Diff line change
@@ -1 +1 @@
extend the plugin documentation and make lot of small fixes and improvements - by @obestwalter
extend the plugin documentation and make lot of small fixes and improvements - by :user:`obestwalter`
2 changes: 1 addition & 1 deletion changelog/798.feature.rst
Original file line number Diff line number Diff line change
@@ -1 +1 @@
introduce a constants module to be used internally and as experimental API - by @obestwalter
introduce a constants module to be used internally and as experimental API - by :user:`obestwalter`
2 changes: 1 addition & 1 deletion changelog/799.doc.rst
Original file line number Diff line number Diff line change
@@ -1 +1 @@
tidy up tests - remove unused fixtures, update old cinstructs, etc. - by @obestwalter
tidy up tests - remove unused fixtures, update old cinstructs, etc. - by :user:`obestwalter`
2 changes: 1 addition & 1 deletion changelog/800.misc.rst
Original file line number Diff line number Diff line change
@@ -1 +1 @@
make the already existing implicit API explicit - by @obestwalter
make the already existing implicit API explicit - by :user:`obestwalter`
2 changes: 1 addition & 1 deletion changelog/801.misc.rst
Original file line number Diff line number Diff line change
@@ -1 +1 @@
improve tox quickstart and corresponding tests - @obestwalter
improve tox quickstart and corresponding tests - by :user:`obestwalter`
2 changes: 1 addition & 1 deletion changelog/802.misc.rst
Original file line number Diff line number Diff line change
@@ -1 +1 @@
tweak codecov settings via .codecov.yml - by @obestwalter
tweak codecov settings via .codecov.yml - by :user:`obestwalter`
2 changes: 2 additions & 0 deletions changelog/856.feature.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Make ``py2`` and ``py3`` aliases also resolve via ``py`` on windows by :user:`asottile`. This enables the following things:
``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.
6 changes: 3 additions & 3 deletions changelog/examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
file ``544.doc.rst``::

explain everything much better - by @passionate_technicalwriter
explain everything much better - by :user:`passionate_technicalwriter`

file ``544.feature.rst``::

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


file ``571.bugfix.rst``::

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

.. see tox/pyproject.toml for all available categories
52 changes: 52 additions & 0 deletions doc/_static/custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
div.document {
width: 100%;
max-width: 1520px;
}

div.body {
max-width: 1280px;
}

img, div.figure {
margin: 0 !important
}

ul > li {
text-align: justify;
}

ul > li > p {
margin-bottom: 0;

}

div.body code.descclassname {
display: none
}

.wy-table-responsive table td {
white-space: normal !important;
}

.wy-table-responsive {
overflow: visible !important;
}

div.toctree-wrapper.compound > ul > li {
margin: 0;
padding: 0
}

code.docutils.literal {
background-color: #ECF0F3;
padding: 0 1px;
}

div#changelog-history h3{
margin-top: 10px;
}

div#changelog-history h2{
font-style: italic;
font-weight: bold;
}
File renamed without changes
File renamed without changes
File renamed without changes.
Loading

0 comments on commit 1b325d5

Please sign in to comment.