Skip to content

Commit

Permalink
Changed docs theme
Browse files Browse the repository at this point in the history
  • Loading branch information
giswqs committed Mar 8, 2020
1 parent d8d006d commit fab899b
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 17 deletions.
21 changes: 5 additions & 16 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,17 @@
# Config file for automatic testing at travis-ci.com

language: python
python:
- 3.8
- 3.7
- 3.6
- 3.5

# Command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
- 3.8
- 3.7
- 3.6
- 3.5
install: pip install -U tox-travis

# Command to run tests, e.g. python setup.py test
script: tox

# Assuming you have installed the travis-ci CLI tool, after you
# create the Github repo and add it to Travis, run the
# following command to finish PyPI deployment setup:
# $ travis encrypt --add deploy.password
deploy:
provider: pypi
distributions: sdist bdist_wheel
user: giswqs
password:
secure: PLEASE_REPLACE_ME
secure: V1KvJ2pUWtmdSA44x14L7TzK6aRaf9ooh2qR5HwWy79A8Zo9SffLlt2dx33MDVuXHBAUozF3QnqTMltz9xB8kyAmzgqgkSGLw1elq5p7R6+DBn6rsg0QgGEidOES4+hzkipDPNhfLCzmcHOjk9jYgUgWWeoclYrakKGrfRv3DeXoJp9bsHn/8/5Pv5eBhqy1LVzqfYgvkaVn6IMNtRLCqtEVfRmXCeXaUDlIm81EtY+tan66CydRhvfhNlWLGntiSnte1ebyeLmDlPNxYUKh6ojcr2pls/lH2eHXvFcIgN4sJntQtZaFECbBebQ6p/AUahH1C/fN+SeHI9ahVRRucymJRKPEv844U1Nwgl9aLBp7LS/2fEOm413a0Lh6Pt34aQu/HXpl6c7JpNcZqfwsWAi51vBoirGG4EghPVxGO0jBpXLqFxfk+VDrEhWP+LYA/5PF26LmR8A5VU40rcYcJ31t7uD9g3ltaeo8w/PvdGJGWhQS45BkBX0Ut2OjmRj7ecWWgZyl9ahS5G4wKXwgfNEzynt52CeqBkFwioVa90HiPJeBCm5ctYgDVSppfN/56jhjL0d8xmXWhEw3kQ/mIfLPTBs/kf9z4qaE7vILp2yE3wRkLOlwv92lqHLFFRtCqXM+3UqAlk5U49JjoWLXhMsREqzm9XQvx1AepcSVMrk=
on:
tags: true
repo: giswqs/geemap
Expand Down
22 changes: 21 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,27 @@
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
html_theme = 'alabaster'
# html_theme = 'alabaster'
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'

if not on_rtd: # only import and set the theme if we're building docs locally
import sphinx_rtd_theme
html_theme = 'sphinx_rtd_theme'
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]

html_context = {
'css_files': [
'_static/theme_overrides.css'
]
}
else:
html_context = {
'css_files': [
'//media.readthedocs.org/css/sphinx_rtd_theme.css',
'//media.readthedocs.org/css/readthedocs-doc-embed.css',
'_static/theme_overrides.css'
]
}

# Theme options are theme-specific and customize the look and feel of a
# theme further. For a list of options available for each theme, see the
Expand Down

0 comments on commit fab899b

Please sign in to comment.