Skip to content

Commit b61adc1

Browse files
author
Sylvain MARIE
committed
Fixed documentation: client-side search is now enabled (removed --dirty flag following conversation in https://gitter.im/squidfunk/mkdocs-material and squidfunk/mkdocs-material#1279)
1 parent 7584034 commit b61adc1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ after_success:
6363
# - pylint autoclass # note that at the moment the report is simply lost, we dont transform the result into anything
6464
# ***documentation***
6565
- mkdocs build -f docs/mkdocs.yml
66-
- mv reports/junit site/
66+
- mv reports/junit docs/ # not in site/ anymore so that we do not need to use --dirty (it breaks client-side search)
6767
# mkdocs gh-deploy requires special care :
6868
# ---grant the possibility to push on the repo---
6969
- openssl aes-256-cbc -K $encrypted_a1c855bcf509_key -iv $encrypted_a1c855bcf509_iv -in ci_tools/github_travis_rsa.enc -out ci_tools/github_travis_rsa -d
@@ -78,8 +78,8 @@ after_success:
7878
git remote add gh-remote "${GH_REF}";
7979
git fetch gh-remote && git fetch gh-remote gh-pages:gh-pages; # make sure we have the latest gh-remote
8080
# push but only if this is not a build triggered by a pull request
81-
# note: here we use the --dirty flag so that mkdocs does not clean the additional reports that we copied in the site
82-
if [ "${TRAVIS_PULL_REQUEST}" = "false" ] && [ "${TRAVIS_PYTHON_VERSION}" = "3.5" ]; then echo "Pushing to github"; PYTHONPATH=autoclass/ mkdocs gh-deploy -v --dirty -f docs/mkdocs.yml --remote-name gh-remote; git push gh-remote gh-pages; fi;
81+
# note: do not use the --dirty flag as it breaks client-side search
82+
if [ "${TRAVIS_PULL_REQUEST}" = "false" ] && [ "${TRAVIS_PYTHON_VERSION}" = "3.5" ]; then echo "Pushing to github"; PYTHONPATH=autoclass/ mkdocs gh-deploy -v -f docs/mkdocs.yml --remote-name gh-remote; git push gh-remote gh-pages; fi;
8383
else
8484
echo "File 'ci_tools/github_travis_rsa' has not been created, please check your encrypted repo token in .travis.yml, on the line starting with 'openssl aes-256-cbc...'"
8585
fi

0 commit comments

Comments
 (0)