mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Updated themes doc + added Google analytics (#4158)
This commit is contained in:
@ -1,6 +1,6 @@
|
|||||||
site_name: LibreNMS Docs
|
site_name: LibreNMS Docs
|
||||||
theme: mkdocs
|
|
||||||
docs_dir: doc
|
docs_dir: doc
|
||||||
|
theme_dir: 'librenms_theme'
|
||||||
site_dir: out
|
site_dir: out
|
||||||
site_url: http://docs.librenms.org
|
site_url: http://docs.librenms.org
|
||||||
markdown_extensions:
|
markdown_extensions:
|
||||||
@ -12,6 +12,7 @@ site_author: LibreNMS
|
|||||||
site_description: LibreNMS user and developer documentation
|
site_description: LibreNMS user and developer documentation
|
||||||
repo_url: https://github.com/librenms/librenms
|
repo_url: https://github.com/librenms/librenms
|
||||||
repo_name: GitHub
|
repo_name: GitHub
|
||||||
|
google_analytics: ['UA-79149977-2', 'docs.librenms.org']
|
||||||
pages:
|
pages:
|
||||||
- Home: index.md
|
- Home: index.md
|
||||||
- Installation:
|
- Installation:
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
GH_REPO="@github.com/librenms-docs/librenms-docs.github.io.git"
|
GH_REPO="@github.com/librenms-docs/librenms-docs.github.io.git"
|
||||||
FULL_REPO="https://${GH_TOKEN}$GH_REPO"
|
FULL_REPO="https://${GH_TOKEN}$GH_REPO"
|
||||||
|
THEME_REPO="https://github.com/librenms-docs/librenms_theme.git"
|
||||||
|
|
||||||
pip install --user mkdocs
|
pip install --user mkdocs
|
||||||
pip install --user pymdown-extensions
|
pip install --user pymdown-extensions
|
||||||
@ -18,6 +19,8 @@ git checkout master
|
|||||||
|
|
||||||
cd ../
|
cd ../
|
||||||
|
|
||||||
|
git clone $THEME_REPO
|
||||||
|
|
||||||
mkdocs build --clean
|
mkdocs build --clean
|
||||||
|
|
||||||
cd out
|
cd out
|
||||||
|
Reference in New Issue
Block a user