Skip to content

Commit f0d334d

Browse files
committed
add a section on building the docs
1 parent 4f73166 commit f0d334d

File tree

3 files changed

+52
-1
lines changed

3 files changed

+52
-1
lines changed

README.rst

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -831,3 +831,33 @@ commands, ran from the root directory in the repo:
831831
python setup.py bdist_wheel
832832
python setup.py sdist
833833
twine upload dist/*
834+
835+
How to build the documentation:
836+
837+
Building the documentation requires a few Sphinx packages to build the
838+
webpages:
839+
840+
.. code:: bash
841+
842+
pip install sphinx
843+
pip install sphinx_bootstrap_theme
844+
pip install sphinxcontrib-napoleon
845+
846+
Then (once your changes are committed to master) you should be able to
847+
run the documentation-generating bash script and follow the
848+
instructions:
849+
850+
.. code:: bash
851+
852+
git checkout gh-pages
853+
bash build_sphinx_docs.sh master searchtweets
854+
855+
Note that this README is also generated, and so after any README changes
856+
you'll need to re-build the README (you need pandoc version 2.1+ for
857+
this) and commit the result:
858+
859+
.. code:: bash
860+
861+
..
862+
863+
bash make_readme.sh

examples/contributing.rst

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,24 @@ For reference, distributing to Pypi is accomplished by the following commands, r
1616
python setup.py sdist
1717
twine upload dist/*
1818
19+
How to build the documentation:
20+
21+
Building the documentation requires a few Sphinx packages to build the webpages:
22+
23+
.. code:: bash
24+
25+
pip install sphinx
26+
pip install sphinx_bootstrap_theme
27+
pip install sphinxcontrib-napoleon
28+
29+
Then (once your changes are committed to master) you should be able to run the documentation-generating bash script and follow the instructions:
30+
31+
.. code:: bash
32+
33+
git checkout gh-pages
34+
bash build_sphinx_docs.sh master searchtweets
35+
36+
Note that this README is also generated, and so after any README changes you'll need to re-build the README (you need pandoc version 2.1+ for this) and commit the result:
37+
38+
.. code:: bash
39+
bash make_readme.sh

examples/make_readme.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ sed 's/.*parsed-literal.*/::/' credential_handling.rst > _credential_handling.rs
99
mv _api_example.rst api_example.rst
1010
mv _credential_handling.rst credential_handling.rst
1111

12-
/usr/local/bin/pandoc -i base_readme.rst --to rst | sed 's/ipython3/python/' > ../README.rst
12+
$(brew --prefix)/bin/pandoc -i base_readme.rst --to rst | sed 's/ipython3/python/' > ../README.rst
1313
#| sed 's/.*parsed-literal.*/::/'

0 commit comments

Comments
 (0)