A4MCAR - Travis.yml added for Github pages, conf.py changes for Sphinx documentation
Signed-off-by: Mustafa Ozcelikors <mozcelikors@gmail.com>
diff --git a/a4mcar/.travis.yml b/a4mcar/.travis.yml
new file mode 100644
index 0000000..8e4136e
--- /dev/null
+++ b/a4mcar/.travis.yml
@@ -0,0 +1,28 @@
+# This is for building automatically using a Travis docker, and then deploying to Github Pages
+
+language: python
+
+python:
+ - 3.6
+
+before_install:
+ - sudo apt-get install python-pip
+
+install:
+ - pip install sphinx
+ - pip install sphinx_rtd_theme
+
+script:
+ - sphinx-build -b html docs/howtosetup/source/ docs/howtosetup/build/
+ - cd docs/howtosetup
+ - make html
+
+deploy:
+ provider: pages
+ skip_cleanup: true
+ github_token: $GITHUB_TOKEN #Create token from Github and Set in travis-ci.org dashboard
+ local_dir: ./build/html/
+ on:
+ branch: master
+
+# In conf.py, be sure to add: extensions = ['sphinx.ext.githubpages']
diff --git a/a4mcar/docs/howtosetup/source/conf.py b/a4mcar/docs/howtosetup/source/conf.py
index 0d3a6ad..f43a1bf 100644
--- a/a4mcar/docs/howtosetup/source/conf.py
+++ b/a4mcar/docs/howtosetup/source/conf.py
@@ -30,7 +30,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 = ['sphinx.ext.githubpages'] # Creates .nojekyll
# Add any paths that contain templates here, relative to this directory.
templates_path = ['a4mcartemplates']