Skip to content
This repository has been archived by the owner on Jan 13, 2023. It is now read-only.

Commit

Permalink
QoL enhancements for docs devs.
Browse files Browse the repository at this point in the history
- Added extra for pip install.
- Now uses RTD theme when building locally.
- Added instructions for building docs locally.
- Removed construction.gif from `index.rst`.
  • Loading branch information
todofixthis committed Dec 9, 2017
1 parent 0a5d564 commit d66776d
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 11 deletions.
4 changes: 4 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
include docs/conf.py
include docs/make.bat
include docs/Makefile
include LICENSE
include README.rst
recursive-include docs *.rst
recursive-include examples *.py
recursive-include test *.py *.csv
33 changes: 28 additions & 5 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,14 @@ To install this extension, use the following command::
pip install pyota[ccurl]


.. _readme-installing-from-source:

Installing from Source
======================

1. `Create virtualenv`_ (recommended, but not required).
2. ``git clone https://github.com/iotaledger/iota.lib.py.git``
3. ``pip install -e .``
#. `Create virtualenv`_ (recommended, but not required).
#. ``git clone https://github.com/iotaledger/iota.lib.py.git``
#. ``pip install -e .``

Running Unit Tests
------------------
Expand All @@ -66,12 +68,33 @@ PyOTA is also compatible with `tox`_::
=============
Documentation
=============
For the full documentation of this library, please refer to the
`official API`_
PyOTA's documentation is available on `ReadTheDocs`_.

If you are :ref:`installing from source <readme-installing-from-source>`, you
can also build the documentation locally:

#. Install extra dependencies (you only have to do this once)::

pip install '.[docs-builder]'

.. tip::

To install the CCurl extension and the documentation builder tools
together, use the following command::

pip install '.[ccurl,docs-builder]'

#. Switch to the ``docs`` directory::

cd docs

#. Build the documentation::

make html

.. _Create virtualenv: https://realpython.com/blog/python/python-virtual-environments-a-primer/
.. _PyOTA Bug Tracker: https://github.com/iotaledger/iota.lib.py/issues
.. _ReadTheDocs: https://pyota.readthedocs.io/
.. _Slack: https://slack.iota.org/
.. _dedicated forum: https://forum.iota.org/
.. _official API: https://iota.readme.io/
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
# html_theme = 'alabaster'
html_theme = 'sphinx_rtd_theme'

# 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
5 changes: 0 additions & 5 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,4 @@
addresses
api

.. note::
**🚧 PyOTA documentation is still under construction. 🚧**

Follow https://github.com/iotaledger/iota.lib.py/issues/78 for updates.

.. include:: ../README.rst
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@

extras_require = {
'ccurl': ['pyota-ccurl'],
'docs-builder': ['sphinx', 'sphinx_rtd_theme'],
},

test_suite = 'test',
Expand Down

0 comments on commit d66776d

Please sign in to comment.