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

Commit d66776d

Browse files
committed
QoL enhancements for docs devs.
- Added extra for pip install. - Now uses RTD theme when building locally. - Added instructions for building docs locally. - Removed construction.gif from `index.rst`.
1 parent 0a5d564 commit d66776d

File tree

5 files changed

+34
-11
lines changed

5 files changed

+34
-11
lines changed

MANIFEST.in

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1+
include docs/conf.py
2+
include docs/make.bat
3+
include docs/Makefile
14
include LICENSE
25
include README.rst
6+
recursive-include docs *.rst
37
recursive-include examples *.py
48
recursive-include test *.py *.csv

README.rst

Lines changed: 28 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,14 @@ To install this extension, use the following command::
4545
pip install pyota[ccurl]
4646

4747

48+
.. _readme-installing-from-source:
49+
4850
Installing from Source
4951
======================
5052

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

5557
Running Unit Tests
5658
------------------
@@ -66,12 +68,33 @@ PyOTA is also compatible with `tox`_::
6668
=============
6769
Documentation
6870
=============
69-
For the full documentation of this library, please refer to the
70-
`official API`_
71+
PyOTA's documentation is available on `ReadTheDocs`_.
72+
73+
If you are :ref:`installing from source <readme-installing-from-source>`, you
74+
can also build the documentation locally:
75+
76+
#. Install extra dependencies (you only have to do this once)::
77+
78+
pip install '.[docs-builder]'
79+
80+
.. tip::
81+
82+
To install the CCurl extension and the documentation builder tools
83+
together, use the following command::
84+
85+
pip install '.[ccurl,docs-builder]'
86+
87+
#. Switch to the ``docs`` directory::
88+
89+
cd docs
90+
91+
#. Build the documentation::
7192

93+
make html
7294

7395
.. _Create virtualenv: https://realpython.com/blog/python/python-virtual-environments-a-primer/
7496
.. _PyOTA Bug Tracker: https://github.com/iotaledger/iota.lib.py/issues
97+
.. _ReadTheDocs: https://pyota.readthedocs.io/
7598
.. _Slack: https://slack.iota.org/
7699
.. _dedicated forum: https://forum.iota.org/
77100
.. _official API: https://iota.readme.io/

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
# The theme to use for HTML and HTML Help pages. See the documentation for
8484
# a list of builtin themes.
8585
#
86-
# html_theme = 'alabaster'
86+
html_theme = 'sphinx_rtd_theme'
8787

8888
# Theme options are theme-specific and customize the look and feel of a theme
8989
# further. For a list of options available for each theme, see the

docs/index.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,4 @@
88
addresses
99
api
1010

11-
.. note::
12-
**🚧 PyOTA documentation is still under construction. 🚧**
13-
14-
Follow https://github.com/iotaledger/iota.lib.py/issues/78 for updates.
15-
1611
.. include:: ../README.rst

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060

6161
extras_require = {
6262
'ccurl': ['pyota-ccurl'],
63+
'docs-builder': ['sphinx', 'sphinx_rtd_theme'],
6364
},
6465

6566
test_suite = 'test',

0 commit comments

Comments
 (0)