Skip to content
Permalink
Browse files

Cross-deploy sphinx docs to geomstats.github.io

Signed-off-by: Niklas Koep <niklas.koep@gmail.com>
  • Loading branch information
nkoep committed Feb 11, 2020
1 parent fd0e405 commit c3c18d676ac4eec7cd52b9c4f38f653b6643a6c7
Showing with 35 additions and 10 deletions.
  1. +24 −0 .travis.yml
  2. +2 −0 ci-requirements.txt
  3. +9 −10 docs/conf.py
@@ -32,3 +32,27 @@ env:

after_success:
- bash <(curl -s https://codecov.io/bash) -c -F $GEOMSTATS_BACKEND
- >
PYTHONPATH=. sphinx-build
-b html
-D version=latest
-D release=latest
docs
docs/_build
deploy:
- provider: pages
skip_cleanup: true
token: $GITHUB_PAGES_TOKEN
keep_history: true
repo: geomstats/geomstats.github.io
target_branch: master
fqdn: geomstats.github.io
project_name: geomstats
on:
condition: >
$TRAVIS_PYTHON_VERSION = "3.7" &&
$GEOMSTATS_BACKEND = "numpy" &&
($TRAVIS_BRANCH = "master" || -n $TRAVIS_TAG)
repo: geomstats/geomstats
local_dir: docs/_build
@@ -1,2 +1,4 @@
codecov
coverage
sphinx
sphinx_rtd_theme
@@ -1,20 +1,19 @@
project = 'Geomstats'
copyright = '2019, Geomstats, Inc.'
author = 'Geomstats Team'
import geomstats

version = '0.1'
# The full version, including alpha/beta/rc tags
release = '0.1'

project = 'Geomstats'
copyright = '2019-2020, Geomstats, Inc.'
author = 'Geomstats Team'
release = version = geomstats.__version__

extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.doctest',
'sphinx.ext.coverage',
'sphinx.ext.mathjax',
'sphinx.ext.viewcode',
'sphinx.ext.doctest',
'sphinx.ext.githubpages',
'sphinx.ext.napoleon', # enable numpy or google docstrings
'sphinx.ext.mathjax',
'sphinx.ext.napoleon',
'sphinx.ext.viewcode'
]

# Configure napoleon for numpy docstring

0 comments on commit c3c18d6

Please sign in to comment.
You can’t perform that action at this time.