Skip to content

Commit

Permalink
udpated documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
shyal committed Dec 1, 2016
1 parent cebafba commit 1d6defd
Show file tree
Hide file tree
Showing 16 changed files with 37 additions and 55 deletions.
2 changes: 1 addition & 1 deletion docs/source/basic.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.. basic
Basic
basic
********


Expand Down
7 changes: 4 additions & 3 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,10 @@

# -- Options for HTML output ----------------------------------------------

# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
html_theme = 'alabaster'
if 'READTHEDOCS' not in os.environ:
import sphinx_rtd_theme
html_theme = 'sphinx_rtd_theme'
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]

# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
Expand Down
3 changes: 2 additions & 1 deletion docs/source/delays.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ delays
********


Import hoverpy's main class: HoverPy
Demonstrates how to add latency to calls, based on host, and method
type. import hoverpy's main class: HoverPy

.. code:: python
Expand Down
4 changes: 2 additions & 2 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ Contents
.. toctree::
:maxdepth: 2

installation.rst
usage.rst
installation
usage

==================
Indices and tables
Expand Down
2 changes: 1 addition & 1 deletion docs/source/installation.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.. installation
Installation
------------
============

If you plan on trying out the examples:

Expand Down
4 changes: 3 additions & 1 deletion docs/source/modify.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ modify
********


Import hoverpy's main class: HoverPy
Demonstrates how to modify requests. This is particularly useful for
sending curved balls to your applications, and make sure they deal with
them correctly. import hoverpy's main class: HoverPy

.. code:: python
Expand Down
5 changes: 4 additions & 1 deletion docs/source/readthedocs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ readthedocs
********


Import hoverpy's main class: HoverPy
Slightly more advanced example, where we query readthedocs.io for
articles, get these articles. The program can be run in capture or
simulate mode, and the functionality is timed. import hoverpy's main
class: HoverPy

.. code:: python
Expand Down
10 changes: 9 additions & 1 deletion docs/source/usage.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
usage
Usage
=====

.. include:: basic.rst
Expand All @@ -8,10 +8,18 @@ requests.db

You may have noticed this created a ``requests.db`` inside your current directory. This is a boltdb database, holding our requests, and their responses.

----------------------------------------

.. include:: readthedocs.rst

----------------------------------------

.. include:: unittesting.rst

----------------------------------------

.. include:: delays.rst

----------------------------------------

.. include:: modify.rst
40 changes: 0 additions & 40 deletions examples/README.md

This file was deleted.

2 changes: 1 addition & 1 deletion examples/delays/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Import hoverpy's main class: HoverPy
Demonstrates how to add latency to calls, based on host, and method type. import hoverpy's main class: HoverPy

```python
from hoverpy import HoverPy
Expand Down
1 change: 1 addition & 0 deletions examples/delays/delays.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Demonstrates how to add latency to calls, based on host, and method type.
# import hoverpy's main class: HoverPy
from hoverpy import HoverPy

Expand Down
2 changes: 1 addition & 1 deletion examples/modify/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Import hoverpy's main class: HoverPy
Demonstrates how to modify requests. This is particularly useful for sending curved balls to your applications, and make sure they deal with them correctly. import hoverpy's main class: HoverPy

```python
from hoverpy import HoverPy
Expand Down
2 changes: 2 additions & 0 deletions examples/modify/modify.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Demonstrates how to modify requests. This is particularly useful for sending curved
# balls to your applications, and make sure they deal with them correctly.
# import hoverpy's main class: HoverPy
from hoverpy import HoverPy

Expand Down
2 changes: 1 addition & 1 deletion examples/readthedocs/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Import hoverpy's main class: HoverPy
Slightly more advanced example, where we query readthedocs.io for articles, get these articles. The program can be run in capture or simulate mode, and the functionality is timed. import hoverpy's main class: HoverPy

```python
from hoverpy import HoverPy
Expand Down
4 changes: 4 additions & 0 deletions examples/readthedocs/readthedocs.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Slightly more advanced example, where we query readthedocs.io for
# articles, get these articles. The program can be run in capture or
# simulate mode, and the functionality is timed.

# import hoverpy's main class: HoverPy
from hoverpy import HoverPy

Expand Down
2 changes: 1 addition & 1 deletion makefile
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ docs: .PHONY
pandoc --from=markdown --to=rst --output=docs/source/README.rst README.md

pandoc --from=markdown --to=rst --output=docs/source/basic.rst examples/basic/README.md
echo '.. basic\n\nBasic\n********\n\n' | cat - docs/source/basic.rst > temp && mv temp docs/source/basic.rst
echo '.. basic\n\nbasic\n********\n\n' | cat - docs/source/basic.rst > temp && mv temp docs/source/basic.rst

pandoc --from=markdown --to=rst --output=docs/source/readthedocs.rst examples/readthedocs/README.md
echo '.. readthedocs\n\nreadthedocs\n********\n\n' | cat - docs/source/readthedocs.rst > temp && mv temp docs/source/readthedocs.rst
Expand Down

0 comments on commit 1d6defd

Please sign in to comment.