Skip to content

Commit 27bb146

Browse files
committed
fix docs
1 parent ed07e5c commit 27bb146

File tree

2 files changed

+21
-13
lines changed

2 files changed

+21
-13
lines changed

.travis.yml

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,20 @@ env:
1515
matrix:
1616
fast_finish: true
1717
include:
18-
- name: default-python2
19-
env: TEST_TARGET=default PY=2.7
18+
- name: legacy-python
19+
env: PY=2.7
2020
- name: default
21-
env: TEST_TARGET=default PY=3.7
21+
env: PY=3.7
2222
- name: notebooks-conding-standard
2323
env: PY=3.7
2424
- name: notebooks-code
2525
env: PY=3.7
26-
- name: latest_branca
26+
- name: latest-branca
2727
env: PY=3.7
2828
- name: docs
2929
env: PY=3.7
3030
allow_failures:
31-
- name: latest_branca
31+
- name: latest-branca
3232
env: PY=3.7
3333

3434
before_install:
@@ -60,11 +60,15 @@ script:
6060
cp -r tests/ examples/ /tmp ;
6161
fi
6262

63-
- if [[ $TEST_TARGET == 'default' ]]; then
63+
- if [[ $TRAVIS_JOB_NAME == 'default' ]]; then
64+
pytest /tmp -vv --ignore=tests/notebooks/test_notebooks.py ;
65+
fi
66+
67+
- if [[ $TRAVIS_JOB_NAME == 'legacy-python' ]]; then
6468
pytest /tmp -vv --ignore=tests/notebooks/test_notebooks.py ;
6569
fi
6670

67-
- if [[ $TRAVIS_JOB_NAME == 'latest_branca' ]]; then
71+
- if [[ $TRAVIS_JOB_NAME == 'latest-branca' ]]; then
6872
conda uninstall branca ;
6973
pip install git+https://github.com/python-visualization/branca.git ;
7074
pytest /tmp -vv --ignore=tests/notebooks/test_notebooks.py ;
@@ -80,15 +84,21 @@ script:
8084
pytest --nbval-lax -p no:python /tmp/examples ;
8185
fi
8286

83-
- if [[ $TEST_TARGET == 'docs' ]]; then
87+
# Docs
88+
- if [[ -z "$TRAVIS_TAG" ]]; then
89+
DEPLOY_DIR=dev ;
90+
else
91+
DEPLOY_DIR="version-$TRAVIS_TAG" ;
92+
fi
93+
94+
- if [[ $TRAVIS_JOB_NAME == 'docs' ]]; then
8495
set -e ;
8596
conda install doctr ;
8697
cp examples/Quickstart.ipynb docs/quickstart.ipynb ;
8798
pushd docs ;
8899
make clean html linkcheck ;
89100
popd ;
90-
python -m doctr deploy --sync .;
91-
python -m doctr deploy --sync --no-require-master --built-docs docs/_build/html "docs-$TRAVIS_BRANCH" ;
101+
python -m doctr deploy --build-tags --key-path github_deploy_key.enc --built-docs docs/_build/html/ $DEPLOY_DIR
92102
fi
93103

94104
doctr:

README.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,8 @@ or
4444
Documentation
4545
-------------
4646

47-
https://python-visualization.github.io/folium/docs-v0.6.0/
47+
https://python-visualization.github.io/folium/
4848

49-
The documentation for the development version can be found here:
50-
https://python-visualization.github.io/folium/docs-master/
5149

5250
Gallery
5351
-------

0 commit comments

Comments
 (0)