summaryrefslogtreecommitdiffstats
path: root/htmldoc
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2019-02-08 07:30:37 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2019-02-08 07:30:37 +0000
commit8a7b72f7cd1ccd547a03eb4243294e741d661d3f (patch)
tree7bc7be4a8e9e298daa1349348400aa2a653866f2 /htmldoc
parentNew upstream version 1.11.1+dfsg (diff)
downloadnetdata-8a7b72f7cd1ccd547a03eb4243294e741d661d3f.tar.xz
netdata-8a7b72f7cd1ccd547a03eb4243294e741d661d3f.zip
Adding upstream version 1.12.0.upstream/1.12.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--docs/generator/custom/themes/material/partials/footer.html (renamed from htmldoc/themes/material/partials/footer.html)7
-rwxr-xr-xhtmldoc/buildhtml.sh33
-rwxr-xr-xhtmldoc/buildyaml.sh171
3 files changed, 2 insertions, 209 deletions
diff --git a/htmldoc/themes/material/partials/footer.html b/docs/generator/custom/themes/material/partials/footer.html
index ba690f236..fe232b6d5 100644
--- a/htmldoc/themes/material/partials/footer.html
+++ b/docs/generator/custom/themes/material/partials/footer.html
@@ -41,13 +41,9 @@
<div class="md-footer-copyright">
{% if config.copyright %}
<div class="md-footer-copyright__highlight">
- {{ config.copyright }}
+ {{ config.copyright }} | <a href="/docs/privacy-policy/">Privacy Policy</a> | <a href="/docs/terms-of-use/">Terms of Use</a>
</div>
{% endif %}
- <a href="https://twitter.com/linuxnetdata" rel="nofollow"><img src="https://img.shields.io/twitter/follow/linuxnetdata.svg?style=social&amp;label=New%20-%20stay%20in%20touch%20-%20follow%20netdata%20on%20twitter"></a>
- <img src="https://www.google-analytics.com/collect?v=1&amp;t=pageview&amp;_s=1&amp;ds=github&amp;dr=https%3A%2F%2Fgithub.com%2Ffirehol%2Fnetdata%2Fwiki&amp;dl=https%3A%2F%2Fmy-netdata.io%2Fgithub%2Fwiki&amp;_u=MAC%7E&amp;cid=8c51788e-8721-45e3-ae8c-e7c63ba8236b&amp;tid=UA-64295674-3">
-
-
</div>
{% block social %}
{% include "partials/social.html" %}
@@ -55,3 +51,4 @@
</div>
</div>
</footer>
+<script>!function(e,a,t,n,o,c,i){e.GoogleAnalyticsObject=o,e.ga=e.ga||function(){(e.ga.q=e.ga.q||[]).push(arguments)},e.ga.l=1*new Date,c=a.createElement(t),i=a.getElementsByTagName(t)[0],c.async=1,c.src="https://www.google-analytics.com/analytics.js",i.parentNode.insertBefore(c,i)}(window,document,"script",0,"ga"),ga("create","UA-64295674-3",""),ga("set","anonymizeIp",!0),ga("send","pageview","/doc"+window.location.pathname);var links=document.getElementsByTagName("a");if(Array.prototype.map.call(links,function(a){a.host!=document.location.host&&a.addEventListener("click",function(){var e=a.getAttribute("data-md-action")||"follow";ga("send","event","outbound",e,a.href)})}),document.forms.search){var query=document.forms.search.query;query.addEventListener("blur",function(){if(this.value){var e=document.location.pathname;ga("send","pageview",e+"?q="+this.value)}})}</script>
diff --git a/htmldoc/buildhtml.sh b/htmldoc/buildhtml.sh
deleted file mode 100755
index 8a41f454f..000000000
--- a/htmldoc/buildhtml.sh
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/bin/bash
-
-# buildhtml.sh
-
-# Builds the html static site, using mkdocs
-# Assumes that the script is executed from the root netdata folder, by calling htmldoc/buildhtml.sh
-
-# Copy all netdata .md files to htmldoc/src. Exclude htmldoc itself and also the directory node_modules generated by Netlify
-echo "Copying files"
-rm -rf htmldoc/src
-find . -type d \( -path ./htmldoc -o -path ./node_modules \) -prune -o -name "*.md" -print | cpio -pd htmldoc/src
-
-# Modify the first line of the main README.md, to enable proper static html generation
-sed -i '0,/# netdata /s//# Introducing NetData\n\n/' htmldoc/src/README.md
-
-echo "Creating mkdocs.yaml"
-
-# Generate mkdocs.yaml
-htmldoc/buildyaml.sh > htmldoc/mkdocs.yml
-
-echo "Fixing links"
-
-# Fix links (recursively, all types, executing replacements)
-htmldoc/checklinks.sh -rax
-if [ $? -eq 1 ] ; then exit 1 ; fi
-
-echo "Calling mkdocs"
-
-# Build html docs
-mkdocs build --config-file=htmldoc/mkdocs.yml
-
-echo "Finished"
-
diff --git a/htmldoc/buildyaml.sh b/htmldoc/buildyaml.sh
deleted file mode 100755
index 096e4ce5c..000000000
--- a/htmldoc/buildyaml.sh
+++ /dev/null
@@ -1,171 +0,0 @@
-#!/bin/bash
-
-cd htmldoc/src
-
-# create yaml nav subtree with all the files directly under a specific directory
-# arguments:
-# tabs - how deep do we show it in the hierarchy. Level 1 is the top level, max should probably be 3
-# directory - to get mds from to add them to the yaml
-# file - can be left empty to include all files
-# name - what do we call the relevant section on the navbar. Empty if no new section is required
-# maxdepth - how many levels of subdirectories do I include in the yaml in this section. 1 means just the top level and is the default if left empty
-# excludefirstlevel - Optional param. If passed, mindepth is set to 2, to exclude the READMEs in the first directory level
-
-navpart () {
- tabs=$1
- dir=$2
- file=$3
- section=$4
- maxdepth=$5
- excludefirstlevel=$6
- spc=""
-
- i=1
- while [ ${i} -lt ${tabs} ] ; do
- spc=" $spc"
- i=$[$i + 1]
- done
-
- if [ -z "$file" ] ; then file='*' ; fi
- if [[ ! -z "$section" ]] ; then echo "$spc- ${section}:" ; fi
- if [ -z "$maxdepth" ] ; then maxdepth=1; fi
- if [[ ! -z "$excludefirstlevel" ]] ; then mindepth=2 ; else mindepth=1; fi
-
- for f in $(find $dir -mindepth $mindepth -maxdepth $maxdepth -name "${file}.md" -printf '%h\0%d\0%p\n' | sort -t '\0' -n | awk -F '\0' '{print $3}'); do
- # If I'm adding a section, I need the child links to be one level deeper than the requested level in "tabs"
- if [ -z "$section" ] ; then
- echo "$spc- '$f'"
- else
- echo "$spc - '$f'"
- fi
- done
-}
-
-
-echo -e 'site_name: NetData Documentation
-repo_url: https://github.com/netdata/netdata
-repo_name: GitHub
-edit_uri: blob/master
-site_description: NetData Documentation
-copyright: NetData, 2018
-docs_dir: src
-site_dir: build
-#use_directory_urls: false
-theme:
- name: "material"
- custom_dir: themes/material
-markdown_extensions:
- - extra
- - abbr
- - attr_list
- - def_list
- - fenced_code
- - footnotes
- - tables
- - admonition
- - codehilite
- - meta
- - nl2br
- - sane_lists
- - smarty
- - toc:
- permalink: True
- separator: "-"
- - wikilinks
-nav:'
-
-navpart 1 . README "Getting Started"
-
-echo -ne " - 'doc/Why-Netdata.md'
- - 'doc/Demo-Sites.md'
- - Installation:
- - 'installer/README.md'
- - 'docker/README.md'
- - 'installer/UPDATE.md'
- - 'installer/UNINSTALL.md'
-"
-echo -ne "- Using NetData:
-"
-navpart 2 daemon
-navpart 2 web "README" "Web Dashboards"
-navpart 3 web/gui "" "" 3
-navpart 2 web/server "" "Web Server"
-navpart 3 web/server "" "" 2 excludefirstlevel
-navpart 2 web/api "" "Web API"
-navpart 3 web/api "" "" 4 excludefirstlevel
-navpart 2 daemon/config
-#navpart 2 system
-navpart 2 registry
-navpart 2 streaming "" "" 4
-navpart 2 backends "" "Backends" 3
-navpart 2 database
-
-echo -ne " - 'doc/Performance.md'
- - 'doc/netdata-for-IoT.md'
- - 'doc/high-performance-netdata.md'
- - 'doc/netdata-security.md'
- - 'doc/Netdata-Security-and-Disclosure-Information.md'
-"
-
-navpart 2 health README "Health Monitoring"
-navpart 3 health/notifications "" "" 1
-navpart 3 health/notifications "" "Supported Notifications" 2 excludefirstlevel
-
-echo -ne " - Running-behind-another-web-server:
- - 'doc/Running-behind-nginx.md'
- - 'doc/Running-behind-apache.md'
- - 'doc/Running-behind-lighttpd.md'
- - 'doc/Running-behind-caddy.md'
-"
-
-
-navpart 1 collectors "" "Data Collection" 1
-echo -ne " - 'doc/Add-more-charts-to-netdata.md'
- - Internal Plugins:
-"
-navpart 3 collectors/proc.plugin
-navpart 3 collectors/statsd.plugin
-navpart 3 collectors/cgroups.plugin
-navpart 3 collectors/idlejitter.plugin
-navpart 3 collectors/tc.plugin
-navpart 3 collectors/nfacct.plugin
-navpart 3 collectors/checks.plugin
-navpart 3 collectors/diskspace.plugin
-navpart 3 collectors/freebsd.plugin
-navpart 3 collectors/macos.plugin
-
-navpart 2 collectors/plugins.d "" "External Plugins"
-navpart 3 collectors/python.d.plugin "" "Python Plugins" 3
-navpart 3 collectors/node.d.plugin "" "Node.js Plugins" 3
-navpart 3 collectors/charts.d.plugin "" "BASH Plugins" 3
-navpart 3 collectors/apps.plugin
-navpart 3 collectors/fping.plugin
-navpart 3 collectors/freeipmi.plugin
-
-echo -ne " - Third Party Plugins:
- - 'doc/Third-Party-Plugins.md'
-"
-
-echo -ne "- Hacking netdata:
- - CONTRIBUTING.md
- - CODE_OF_CONDUCT.md
- - CONTRIBUTORS.md
-"
-navpart 2 makeself "" "" 4
-navpart 2 packaging "" "" 4
-navpart 2 libnetdata "" "libnetdata" 4
-navpart 2 contrib
-navpart 2 tests
-navpart 2 diagrams/data_structures
-
-echo -ne "- About:
- - 'doc/Donations-netdata-has-received.md'
- - 'doc/a-github-star-is-important.md'
- - CHANGELOG.md
- - HISTORICAL_CHANGELOG.md
- - REDISTRIBUTED.md
-"
-
-
-
-