Skip to content

Commit

Permalink
[Docs] better formatting (not all on one page)
Browse files Browse the repository at this point in the history
  • Loading branch information
MinchinWeb committed Jul 20, 2015
1 parent f181ebe commit ceeae95
Show file tree
Hide file tree
Showing 9 changed files with 34 additions and 14 deletions.
2 changes: 1 addition & 1 deletion colourettu/_palette.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class palette:
.. note::
If a *string*, *tuple*, or *list* is provided for `start_colour` or
`end_colour`, a conversion to a *colourettu.colour* object will be
`end_colour`, a conversion to a :py:class:`colourettu.colour` object will be
attempted.
.. code:: python
Expand Down
8 changes: 5 additions & 3 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
Changelog
=========

- :feature:'8' allow addition of palettes and palettes and colours
.. currentmodule:: colourettu

- :feature:`8` allow addition of palettes, and palettes and colours
- :support:`-` manage changelog with `Releases <https://github.com/bitprophet/releases>`_
- :feature:`-` add `palette` class
- :feature:`-` add :py:class:`palette` class
- :feature:`-` allow creation of colours from normalized rgb values
- :support:`-` update to Sphinx 1.3 for documentation generation

Expand All @@ -15,4 +17,4 @@ Changelog
- :bug:`-` include extra files so module can install off of pip
- :release:`0.1.0 <2014-12-11>`
- :feature:`-` first working version!
- :feature:`-` base `colour` class, and (relative) `luminance` and `contrast` functions
- :feature:`-` base :py:class:`colour` class, and (relative) :py:func:`luminance` and :py:func:`contrast` functions
6 changes: 6 additions & 0 deletions docs/class-colour.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
*colour* class
==============

.. currentmodule:: colourettu

.. autoclass:: colour
6 changes: 6 additions & 0 deletions docs/class-palette.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
*palette* class
===============

.. currentmodule:: colourettu

.. autoclass:: palette
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
# General information about the project.
project = 'Colourettu'
year = datetime.now().year
year = str(year)[:-2]
year = str(year)[-2:]
copyright = '2014-{}, William Minchin'.format(year)

# The version info for the project you're documenting, acts as replacement for
Expand Down
6 changes: 6 additions & 0 deletions docs/function-contrast.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
*contrast* function
===================

.. currentmodule:: colourettu

.. autofunction:: contrast
6 changes: 6 additions & 0 deletions docs/function-luminance.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
*luminance* function
====================

.. currentmodule:: colourettu

.. autofunction:: luminance
4 changes: 3 additions & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@ Contents

.. toctree::
:maxdepth: 2
:glob:

module-colourettu
class-*
function-*
requirements
upgrades
changelog
Expand Down
8 changes: 0 additions & 8 deletions docs/module-colourettu.rst

This file was deleted.

0 comments on commit ceeae95

Please sign in to comment.