Updated to use new theme for docs site (#9320)

* Updated to use new theme for docs site

* Updated theme location

* Removed librenms.css

* Updated index page + re-added librenms.css

* Use built in theme modification

* flexbox grid, dump bootstrap

* tidy up things

* Added path and updated deploy script + mkdocs config

* Removed db schmea changes

* Updated to install python/pip 3

* Removed pip3 install

* Pip3 install

* Updated deploy-docs

* Updated deploy-docs
This commit is contained in:
Neil Lathwood
2018-10-27 23:04:34 +01:00
committed by GitHub
parent c37786d845
commit 1ee2e8e0e0
143 changed files with 302 additions and 155 deletions

View File

@@ -1,18 +1,16 @@
#!/usr/bin/env bash
GH_REPO="@github.com/librenms-docs/librenms-docs.github.io.git"
FULL_REPO="https://${GH_TOKEN}$GH_REPO"
THEME_REPO="https://github.com/librenms-docs/theme_v2.git"
if [ "$EXECUTE_BUILD_DOCS" != "true" ]; then
echo "Doc build skipped"
exit 0
fi
pip install --user 'jinja2<2.9' mkdocs pymdown-extensions
pip install --user git+git://github.com/aleray/mdx_del_ins.git
pip3 install --user mkdocs mkdocs-material pymdown-extensions
pip3 install --user git+git://github.com/aleray/mdx_del_ins.git
mkdir -p out
cd out
git init
@@ -23,20 +21,17 @@ git config user.email "travis@librenms.org"
git checkout master
cd ../
git clone $THEME_REPO
mkdocs build --clean
build_result=$?
# Only deploy after merging to master
if [ "$build_result" == "0" -a "$TRAVIS_PULL_REQUEST" == "false" -a "$TRAVIS_BRANCH" == "master" ]; then
cd out
touch .
git add -A .
git commit -m "GH-Pages update by travis after $TRAVIS_COMMIT"
git push -q origin master
cd out/
mkdocs gh-deploy --config-file ../mkdocs.yml --remote-branch master
# touch .
# git add -A .
# git commit -m "GH-Pages update by travis after $TRAVIS_COMMIT"
# git push -q origin master
else
exit ${build_result} # return doc build result
fi