Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions docs/sources/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
]
extensions = ['m2r']

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
Expand All @@ -50,4 +49,4 @@
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']
html_static_path = ['_static']
3 changes: 2 additions & 1 deletion docs/sources/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
contain the root `toctree` directive.
Welcome to Phimp.me's documentation!
=======================================
.. mdinclude:: ../../README.md

.. toctree::
:maxdepth: 2
Expand All @@ -16,4 +17,4 @@ Indices and tables

* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`
* :ref:`search`
6 changes: 6 additions & 0 deletions scripts/upload-gh-pages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,17 @@ git config --global user.name "Travis CI"
git config --global user.email "noreply+travis@fossasia.org"

sudo pip install Sphinx
sudo pip install m2r

cd docs/sources

make html

# Copy image files.
mkdir _build/html/docs
cp -r ../images _build/html/docs
cp -r ../../fastlane _build/html

git clone --quiet --branch=gh-pages https://fossasia:$GITHUB_API_KEY@github.com/fossasia/phimpme-android gh-pages > /dev/null
cd gh-pages

Expand Down