Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
thundergolfer-two committed Apr 23, 2018
1 parent b939959 commit 20d4bff
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 2 deletions.
23 changes: 23 additions & 0 deletions docs/about.rst.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
**politifact-py** is an API wrapper for the Politifact public REST API.

.. code-block:: python
from politifact import Politifact

p = Politifact()
obama_related = p.statements().people('Barack Obama')

for statement in obama_related:
print(statement.ruling)

# OUTPUT:
# > True
# > Pants On Fire!
# > Mostly True
# > ...

Get It Now
==========

.. code-block:: bash

$ pip install politifact
Empty file added docs/api_references.rst
Empty file.
13 changes: 11 additions & 2 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,23 @@
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Welcome to Politifact-Py's documentation!
=========================================
********************************************
politifact-py: Politifact REST API Wrapper
********************************************
Release v\ |version|. (:ref:`Changelog <changelog>`)
.. toctree::
:maxdepth: 2
:caption: Contents:

API Reference
=============

.. toctree::
:maxdepth: 2

api_reference

Indices and tables
==================
Expand Down

0 comments on commit 20d4bff

Please sign in to comment.