mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Fixed Travis build
This commit is contained in:
parent
307c84f564
commit
65f2b56c7b
11
.travis.sh
11
.travis.sh
@ -51,14 +51,15 @@ if [ "$TRAVIS_BRANCH" == "master" -a "$TRAVIS_PULL_REQUEST" == "false" ]; then
|
|||||||
git config --global user.email "${GH_EMAIL}"
|
git config --global user.email "${GH_EMAIL}"
|
||||||
git remote set-url origin ${REMOTE}
|
git remote set-url origin ${REMOTE}
|
||||||
|
|
||||||
# Install GitHub pages import helper and Material, so we can use it as a
|
# Install Material, so we can use it as a base template and add overrides
|
||||||
# base template and add overrides
|
|
||||||
pip install --user ghp-import
|
|
||||||
python setup.py install --user
|
python setup.py install --user
|
||||||
|
|
||||||
|
# Override theme configuration
|
||||||
|
sed -i 's/name: null/name: material/g' mkdocs.yml
|
||||||
|
sed -i 's/custom_dir: material/custom_dir: overrides/g' mkdocs.yml
|
||||||
|
|
||||||
# Build documentation with overrides and publish to GitHub pages
|
# Build documentation with overrides and publish to GitHub pages
|
||||||
mkdocs build --theme material --theme-dir overrides
|
mkdocs gh-deploy --force
|
||||||
ghp-import --no-jekyll --force --push site
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Remove overrides directory so it won't get included in the image
|
# Remove overrides directory so it won't get included in the image
|
||||||
|
Loading…
Reference in New Issue
Block a user