Skip to content

Commit

Permalink
Added API documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
jfjlaros committed Jan 16, 2021
1 parent 5c732f6 commit bdc60eb
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/api.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
API documentation
=================

.. toctree::
:maxdepth: 2
:caption: Contents:
:glob:

api/simple_rpc
api/protocol
api/extras
5 changes: 5 additions & 0 deletions docs/api/extras.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Extras
======

.. automodule:: simple_rpc.extras
:members:
5 changes: 5 additions & 0 deletions docs/api/protocol.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Protocol
========

.. automodule:: simple_rpc.protocol
:members:
5 changes: 5 additions & 0 deletions docs/api/simple_rpc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
SimpleRPC
=========

.. automodule:: simple_rpc.simple_rpc
:members:
15 changes: 15 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
from subprocess import call

call('pip install six ..', shell=True)

from ordered_map import _get_metadata


author = _get_metadata('Author')
copyright = _get_metadata('Author')
project = _get_metadata('Name')
release = _get_metadata('Version')

autoclass_content = 'both'
extensions = ['sphinx.ext.autodoc']
master_doc = 'index'
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@
install
usage
library
api
credits

0 comments on commit bdc60eb

Please sign in to comment.