Skip to content

Commit

Permalink
Add a changelog and restructure the online documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
xolox committed May 17, 2020
1 parent 96274d5 commit ce12d5d
Show file tree
Hide file tree
Showing 7 changed files with 189 additions and 16 deletions.
137 changes: 137 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
Changelog
=========

The purpose of this document is to list all of the notable changes to this
project. The format was inspired by `Keep a Changelog`_. This project adheres
to `semantic versioning`_.

.. contents::
:local:

.. _Keep a Changelog: http://keepachangelog.com/
.. _semantic versioning: http://semver.org/

`Release 5.0`_ (2018-03-29)
---------------------------

Add support for ``*.ini`` configuration file loading.

.. _Release 5.0: https://github.com/xolox/python-update-dotdee/compare/4.0...5.0

`Release 4.0`_ (2018-03-25)
---------------------------

Merged `pull request #2`_ adding the ability to execute files and use their output.

.. _Release 4.0: https://github.com/xolox/python-update-dotdee/compare/3.0...4.0
.. _pull request #2: https://github.com/xolox/python-update-dotdee/pull/2

`Release 3.0`_ (2017-07-13)
---------------------------

Switch to :mod:`executor.contexts` to allow for remote execution.

.. _Release 3.0: https://github.com/xolox/python-update-dotdee/compare/2.0...3.0

`Release 2.0`_ (2017-07-13)
---------------------------

Cleaner Python API, separate command line interface.

Detailed changes:

- Refactor setup script, add wheel support.
- Refactor all the things! (Coveralls, Read the Docs, Travis CI, tox, pytest, a test suite, code style checks, ...).
- Separate command line interface from Python API.

.. _Release 2.0: https://github.com/xolox/python-update-dotdee/compare/1.1...2.0

`Release 1.1`_ (2017-07-12)
---------------------------

Merged `pull request #1`_ adding support for Python 3.

.. _Release 1.1: https://github.com/xolox/python-update-dotdee/compare/1.0.10...1.1
.. _pull request #1: https://github.com/xolox/python-update-dotdee/pull/1

`Release 1.0.10`_ (2014-05-06)
------------------------------

Make :exc:`.RefuseToOverwrite` error message user friendly (explain how to proceed).

.. _Release 1.0.10: https://github.com/xolox/python-update-dotdee/compare/1.0.9...1.0.10

`Release 1.0.9`_ (2013-09-08)
-----------------------------

Made the version pinning of requirements less strict.

.. _Release 1.0.9: https://github.com/xolox/python-update-dotdee/compare/1.0.8...1.0.9

`Release 1.0.8`_ (2013-08-06)
-----------------------------

Started using :func:`coloredlogs.install()`.

.. _Release 1.0.8: https://github.com/xolox/python-update-dotdee/compare/1.0.7...1.0.8

`Release 1.0.7`_ (2013-08-06)
-----------------------------

Bumped :pypi:`coloredlogs` requirement to 0.4.3.

.. _Release 1.0.7: https://github.com/xolox/python-update-dotdee/compare/1.0.6...1.0.7

`Release 1.0.6`_ (2013-07-21)
-----------------------------

- Added (absolute) version pinning to requirements.
- Moved version number from ``setup.py`` to :mod:`update_dotdee`.

.. _Release 1.0.6: https://github.com/xolox/python-update-dotdee/compare/1.0.5...1.0.6

`Release 1.0.5`_ (2013-07-16)
-----------------------------

Extracted directory creation out into a separate method.

.. _Release 1.0.5: https://github.com/xolox/python-update-dotdee/compare/1.0.4...1.0.5

`Release 1.0.4`_ (2013-07-15)
-----------------------------

Moved log handler initialization to :func:`.main()`.

.. _Release 1.0.4: https://github.com/xolox/python-update-dotdee/compare/1.0.3...1.0.4

`Release 1.0.3`_ (2013-07-08)
-----------------------------

Improved the documentation (e.g. documented natural order sorting).

.. _Release 1.0.3: https://github.com/xolox/python-update-dotdee/compare/1.0.2...1.0.3

`Release 1.0.2`_ (2013-07-08)
-----------------------------

Bug fix: Ignore checksum on the first (migration) run which moves the target
file into the source directory.

.. _Release 1.0.2: https://github.com/xolox/python-update-dotdee/compare/1.0.1...1.0.2

`Release 1.0.1`_ (2013-07-07)
-----------------------------

Moved logging initialization out of "user accessible" code which can be run
multiple times and should not cause log duplication.

.. _Release 1.0.1: https://github.com/xolox/python-update-dotdee/compare/1.0...1.0.1

`Release 1.0`_ (2013-07-06)
---------------------------

The first release didn't amount to more than a hundred lines of Python code,
but it did what it was supposed to do 😇 (generate a single text file by
concatenating a directory of text files together).

.. _Release 1.0: https://github.com/xolox/python-update-dotdee/tree/1.0
6 changes: 4 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ The update-dotdee program makes it easy to manage configuration files with
modular contents in the style of Debian_ and dotdee_. The program takes the
pathname of a configuration file and updates that file based on the contents of
the files in the directory with the same name as the file but ending in ``.d``.
It's currently tested on cPython 2.6, 2.7, 3.4, 3.5, 3.6 and PyPy (2.7).
It's currently tested on cPython 2.7, 3.5+ and PyPy (2.7).

.. contents::
:local:
Expand Down Expand Up @@ -147,7 +147,8 @@ configuration files. This is why ConfigLoader_ was added in release 5.0.
Contact
-------

The latest version of update-dotdee is available on PyPI_ and GitHub_. For bug
The latest version of update-dotdee is available on PyPI_ and GitHub_. The
documentation is hosted on `Read the Docs`_ and includes a changelog_. For bug
reports please create an issue on GitHub_. If you have questions, suggestions,
etc. feel free to send me an e-mail at `peter@peterodding.com`_.

Expand All @@ -163,6 +164,7 @@ This software is licensed under the `MIT license`_.
.. _/etc/fstab: https://manpages.debian.org/fstab
.. _/etc/hosts: https://manpages.debian.org/hosts
.. _awk: https://manpages.debian.org/awk
.. _changelog: https://update-dotdee.readthedocs.io/en/latest/changelog.html
.. _ConfigLoader: http://update-dotdee.readthedocs.io/en/latest/#update_dotdee.ConfigLoader
.. _Debian: http://www.debian.org/
.. _dotdee: http://blog.dustinkirkland.com/2011/04/dotdee-modern-proposal-for-improving.html
Expand Down
20 changes: 20 additions & 0 deletions docs/api.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
API documentation
=================

The following API documentation was automatically generated from the source
code of `update-dotdee` |release|:

.. contents::
:local:

:mod:`update_dotdee`
--------------------

.. automodule:: update_dotdee
:members:

:mod:`update_dotdee.cli`
------------------------

.. automodule:: update_dotdee.cli
:members:
1 change: 1 addition & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.. include:: ../CHANGELOG.rst
1 change: 1 addition & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
# Refer to the Python standard library.
# From: http://twistedmatrix.com/trac/ticket/4582.
intersphinx_mapping = dict(
coloredlogs=('https://coloredlogs.readthedocs.io/en/latest', None),
executor=('https://executor.readthedocs.io/en/latest', None),
humanfriendly=('https://humanfriendly.readthedocs.io/en/latest', None),
propertymanager=('https://property-manager.readthedocs.io/en/latest', None),
Expand Down
39 changes: 25 additions & 14 deletions docs/index.rst
Original file line number Diff line number Diff line change
@@ -1,22 +1,33 @@
.. include:: ../README.rst
update-dotdee: Generic modular configuration file manager
=========================================================

API documentation
=================

The following documentation is based on the source code of version |release| of
the `update-dotdee` package.
Welcome to the documentation of `update-dotdee` version |release|!
The following sections are available:

.. contents::
:local:

:mod:`update_dotdee`
--------------------
User documentation
------------------

The readme is the best place to start reading, it's targeted at all users and
documents the command line interface:

.. toctree::
readme.rst

API documentation
-----------------

The following API documentation is automatically generated from the source code:

.. toctree::
api.rst

.. automodule:: update_dotdee
:members:
Change log
----------

:mod:`update_dotdee.cli`
------------------------
The change log lists notable changes to the project:

.. automodule:: update_dotdee.cli
:members:
.. toctree::
changelog.rst
1 change: 1 addition & 0 deletions docs/readme.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.. include:: ../README.rst

0 comments on commit ce12d5d

Please sign in to comment.