Updated themes doc + added Google analytics (#4158)

This commit is contained in:
Neil Lathwood 2016-08-21 21:10:01 +01:00 committed by GitHub
parent ead3f24008
commit 15ef8bbd23
2 changed files with 5 additions and 1 deletions

View File

@ -1,6 +1,6 @@
site_name: LibreNMS Docs
theme: mkdocs
docs_dir: doc
theme_dir: 'librenms_theme'
site_dir: out
site_url: http://docs.librenms.org
markdown_extensions:
@ -12,6 +12,7 @@ site_author: LibreNMS
site_description: LibreNMS user and developer documentation
repo_url: https://github.com/librenms/librenms
repo_name: GitHub
google_analytics: ['UA-79149977-2', 'docs.librenms.org']
pages:
- Home: index.md
- Installation:

View File

@ -1,6 +1,7 @@
#!/bin/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/librenms_theme.git"
pip install --user mkdocs
pip install --user pymdown-extensions
@ -18,6 +19,8 @@ git checkout master
cd ../
git clone $THEME_REPO
mkdocs build --clean
cd out