Skip to content

Commit 93e1aea

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 81d5e1e commit 93e1aea

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
@@ -52,7 +52,7 @@ after_success:
5252
# - pylint getversion # note that at the moment the report is simply lost, we dont transform the result into anything
5353
# ***documentation***
5454
- mkdocs build -f docs/mkdocs.yml
55-
- mv reports/junit site/
55+
- mv reports/junit docs/ # not in site/ anymore so that we do not need to use --dirty (it breaks client-side search)
5656
# mkdocs gh-deploy requires special care :
5757
# ---grant the possibility to push on the repo---
5858
- openssl aes-256-cbc -K $encrypted_67de271a4fb2_key -iv $encrypted_67de271a4fb2_iv -in ci_tools/github_travis_rsa.enc -out ci_tools/github_travis_rsa -d
@@ -67,8 +67,8 @@ after_success:
6767
git remote add gh-remote "${GH_REF}";
6868
git fetch gh-remote && git fetch gh-remote gh-pages:gh-pages; # make sure we have the latest gh-remote
6969
# push but only if this is not a build triggered by a pull request
70-
# note: here we use the --dirty flag so that mkdocs does not clean the additional reports that we copied in the site
71-
if [ "${TRAVIS_PULL_REQUEST}" = "false" ] && [ "${TRAVIS_PYTHON_VERSION}" = "3.5" ]; then echo "Pushing to github"; PYTHONPATH=getversion/ mkdocs gh-deploy -v --dirty -f docs/mkdocs.yml --remote-name gh-remote; git push gh-remote gh-pages; fi;
70+
# note: do not use the --dirty flag as it breaks client-side search
71+
if [ "${TRAVIS_PULL_REQUEST}" = "false" ] && [ "${TRAVIS_PYTHON_VERSION}" = "3.5" ]; then echo "Pushing to github"; PYTHONPATH=getversion/ mkdocs gh-deploy -v -f docs/mkdocs.yml --remote-name gh-remote; git push gh-remote gh-pages; fi;
7272
else
7373
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...'"
7474
fi

0 commit comments

Comments
 (0)