Skip to content

Commit 5a7f7ec

Browse files
kumuditha-udayangayashk2000
authored andcommitted
Build Doc using README.md (#2965)
1 parent 3eb604e commit 5a7f7ec

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

docs/sources/conf.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@
2828
# Add any Sphinx extension module names here, as strings. They can be
2929
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
3030
# ones.
31-
extensions = [
32-
]
31+
extensions = ['m2r']
3332

3433
# Add any paths that contain templates here, relative to this directory.
3534
templates_path = ['_templates']
@@ -50,4 +49,4 @@
5049
# Add any paths that contain custom static files (such as style sheets) here,
5150
# relative to this directory. They are copied after the builtin static files,
5251
# so a file named "default.css" will overwrite the builtin "default.css".
53-
html_static_path = ['_static']
52+
html_static_path = ['_static']

docs/sources/index.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
contain the root `toctree` directive.
55
Welcome to Phimp.me's documentation!
66
=======================================
7+
.. mdinclude:: ../../README.md
78

89
.. toctree::
910
:maxdepth: 2
@@ -16,4 +17,4 @@ Indices and tables
1617

1718
* :ref:`genindex`
1819
* :ref:`modindex`
19-
* :ref:`search`
20+
* :ref:`search`

scripts/upload-gh-pages.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,17 @@ git config --global user.name "Travis CI"
44
git config --global user.email "noreply+travis@fossasia.org"
55

66
sudo pip install Sphinx
7+
sudo pip install m2r
78

89
cd docs/sources
910

1011
make html
1112

13+
# Copy image files.
14+
mkdir _build/html/docs
15+
cp -r ../images _build/html/docs
16+
cp -r ../../fastlane _build/html
17+
1218
git clone --quiet --branch=gh-pages https://fossasia:$GITHUB_API_KEY@github.com/fossasia/phimpme-android gh-pages > /dev/null
1319
cd gh-pages
1420

0 commit comments

Comments
 (0)