Skip to content

Commit

Permalink
docs: Split into multiple pages
Browse files Browse the repository at this point in the history
This mostly reverts commit 4c8deae. We now have enough documentation to
warrant separate pages and the RTD theme works better with them. We keep
the "Usage" and "Release Notes" sections so any anchors pointing here
are not broken (though the same cannot be said of any links to
subcommands).

The copyright year is updated.

Signed-off-by: Stephen Finucane <[email protected]>
  • Loading branch information
stephenfin committed Aug 29, 2018
1 parent 0c1ef48 commit e7b422e
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 6 deletions.
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@
source_suffix = '.rst'

# The master toctree document.
master_doc = 'index'
master_doc = 'contents'

# General information about the project.
project = u'git-pw'
copyright = u'2017, Stephen Finucane'
copyright = u'2018, Stephen Finucane'
author = u'Stephen Finucane'

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

.. toctree::

index
usage
release-notes
13 changes: 9 additions & 4 deletions docs/index.rst
Original file line number Diff line number Diff line change
@@ -1,18 +1,23 @@
git-pw (Patchwork subcommand for Git)
=====================================

Overview
--------

.. include:: ../README.rst
:start-line: 19
:end-line: 33

.. include:: ../README.rst
:start-line: 34
:end-line: -7

Usage
-----

.. click:: git_pw.shell:cli
:prog: git-pw
:show-nested:
See :doc:`usage`.

Release Notes
-------------

.. release-notes::
See :doc:`release-notes`.
4 changes: 4 additions & 0 deletions docs/release-notes.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Release Notes
=============

.. release-notes::
6 changes: 6 additions & 0 deletions docs/usage.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Usage
=====

.. click:: git_pw.shell:cli
:prog: git-pw
:show-nested:

0 comments on commit e7b422e

Please sign in to comment.