mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
@@ -8,14 +8,31 @@ if [ "$EXECUTE_BUILD_DOCS" != "true" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
pip3 install --upgrade pip
|
pip3 install --upgrade pip
|
||||||
pip3 install --user mkdocs mkdocs-material "pymdown-extensions" "markdown"
|
pip3 install --user --requirement <(cat <<EOF
|
||||||
pip3 install --user git+git://github.com/aleray/mdx_del_ins.git
|
Click==7.0
|
||||||
|
future==0.18.2
|
||||||
|
Jinja2==2.11.1
|
||||||
|
livereload==2.6.1
|
||||||
|
lunr==0.5.6
|
||||||
|
Markdown==3.2.1
|
||||||
|
MarkupSafe==1.1.1
|
||||||
|
mkdocs==1.1
|
||||||
|
mkdocs-material==4.6.3
|
||||||
|
nltk==3.4.5
|
||||||
|
Pygments==2.5.2
|
||||||
|
pymdown-extensions==6.3
|
||||||
|
PyYAML==5.3
|
||||||
|
six==1.14.0
|
||||||
|
tornado==6.0.3
|
||||||
|
EOF
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
mkdir -p out
|
mkdir -p out
|
||||||
cd out
|
cd out
|
||||||
|
|
||||||
git init
|
git init
|
||||||
git remote add origin $FULL_REPO
|
git remote add origin "$FULL_REPO"
|
||||||
git fetch
|
git fetch
|
||||||
git config user.name "librenms-docs"
|
git config user.name "librenms-docs"
|
||||||
git config user.email "travis@librenms.org"
|
git config user.email "travis@librenms.org"
|
||||||
@@ -26,7 +43,7 @@ mkdocs build --clean
|
|||||||
build_result=$?
|
build_result=$?
|
||||||
|
|
||||||
# Only deploy after merging to master
|
# Only deploy after merging to master
|
||||||
if [ "$build_result" == "0" -a "$TRAVIS_PULL_REQUEST" == "false" -a "$TRAVIS_BRANCH" == "master" ]; then
|
if [ "$build_result" == "0" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "master" ]; then
|
||||||
cd out/
|
cd out/
|
||||||
touch .
|
touch .
|
||||||
git add -A .
|
git add -A .
|
||||||
|
Reference in New Issue
Block a user