diff --git a/Gruntfile.js b/Gruntfile.js index 7bbdedaedd..cac149f718 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -14,7 +14,7 @@ module.exports = function(grunt) { env : { options : { add : { - HUGO_VERSION : '0.72.0' + HUGO_VERSION : '0.56.1' } }, dev : {} diff --git a/config.toml b/config.toml index 67c98d668a..d6735bca7b 100755 --- a/config.toml +++ b/config.toml @@ -1,6 +1,7 @@ baseurl = "" languageCode = "en-us" title = "Sensu Docs" +theme = "hugo-material-docs" metadataformat = "yaml" canonifyURLs = true # Enable Google Analytics by entering your tracking id @@ -9,14 +10,6 @@ enableRobotsTXT = true pygmentsUseClasses = true ignoreFiles = ["sensu-doc-template.md"] disableKinds = ["taxonomy", "taxonomyTerm"] -[markup] - [markup.goldmark] - [markup.goldmark.renderer] - unsafe = true - [markup.tableOfContents] - endLevel = 2 - ordered = false - startLevel = 2 [["menu.sensu-core-1.0"]] name = "Moi API" diff --git a/content/sensu-go/5.17/release-notes.md b/content/sensu-go/5.17/release-notes.md index af5c31490f..2013197c49 100644 --- a/content/sensu-go/5.17/release-notes.md +++ b/content/sensu-go/5.17/release-notes.md @@ -4,43 +4,42 @@ linkTitle: "Release Notes" description: "Read the Sensu Go release notes to learn about what's new in our latest release." weight: -80 product: "Sensu Go" -toc: false version: "5.17" menu: "sensu-go-5.17" --- -- [5.17.2 release notes](#5172-release-notes) -- [5.17.1 release notes](#5171-release-notes) -- [5.17.0 release notes](#5170-release-notes) -- [5.16.1 release notes](#5161-release-notes) -- [5.16.0 release notes](#5160-release-notes) -- [5.15.0 release notes](#5150-release-notes) -- [5.14.2 release notes](#5142-release-notes) -- [5.14.1 release notes](#5141-release-notes) -- [5.14.0 release notes](#5140-release-notes) -- [5.13.2 release notes](#5132-release-notes) -- [5.13.1 release notes](#5131-release-notes) -- [5.13.0 release notes](#5130-release-notes) -- [5.12.0 release notes](#5120-release-notes) -- [5.11.1 release notes](#5111-release-notes) -- [5.11.0 release notes](#5110-release-notes) -- [5.10.2 release notes](#5102-release-notes) -- [5.10.1 release notes](#5101-release-notes) -- [5.10.0 release notes](#5100-release-notes) -- [5.9.0 release notes](#590-release-notes) -- [5.8.0 release notes](#580-release-notes) -- [5.7.0 release notes](#570-release-notes) -- [5.6.0 release notes](#560-release-notes) -- [5.5.1 release notes](#551-release-notes) -- [5.5.0 release notes](#550-release-notes) -- [5.4.0 release notes](#540-release-notes) -- [5.3.0 release notes](#530-release-notes) -- [5.2.1 release notes](#521-release-notes) -- [5.2.0 release notes](#520-release-notes) -- [5.1.1 release notes](#511-release-notes) -- [5.1.0 release notes](#510-release-notes) -- [5.0.1 release notes](#501-release-notes) -- [5.0.0 release notes](#500-release-notes) +- [5.17.2 release notes](#5-17-2-release-notes) +- [5.17.1 release notes](#5-17-1-release-notes) +- [5.17.0 release notes](#5-17-0-release-notes) +- [5.16.1 release notes](#5-16-1-release-notes) +- [5.16.0 release notes](#5-16-0-release-notes) +- [5.15.0 release notes](#5-15-0-release-notes) +- [5.14.2 release notes](#5-14-2-release-notes) +- [5.14.1 release notes](#5-14-1-release-notes) +- [5.14.0 release notes](#5-14-0-release-notes) +- [5.13.2 release notes](#5-13-2-release-notes) +- [5.13.1 release notes](#5-13-1-release-notes) +- [5.13.0 release notes](#5-13-0-release-notes) +- [5.12.0 release notes](#5-12-0-release-notes) +- [5.11.1 release notes](#5-11-1-release-notes) +- [5.11.0 release notes](#5-11-0-release-notes) +- [5.10.2 release notes](#5-10-2-release-notes) +- [5.10.1 release notes](#5-10-1-release-notes) +- [5.10.0 release notes](#5-10-0-release-notes) +- [5.9.0 release notes](#5-9-0-release-notes) +- [5.8.0 release notes](#5-8-0-release-notes) +- [5.7.0 release notes](#5-7-0-release-notes) +- [5.6.0 release notes](#5-6-0-release-notes) +- [5.5.1 release notes](#5-5-1-release-notes) +- [5.5.0 release notes](#5-5-0-release-notes) +- [5.4.0 release notes](#5-4-0-release-notes) +- [5.3.0 release notes](#5-3-0-release-notes) +- [5.2.1 release notes](#5-2-1-release-notes) +- [5.2.0 release notes](#5-2-0-release-notes) +- [5.1.1 release notes](#5-1-1-release-notes) +- [5.1.0 release notes](#5-1-0-release-notes) +- [5.0.1 release notes](#5-0-1-release-notes) +- [5.0.0 release notes](#5-0-0-release-notes) ### Versioning diff --git a/content/sensu-go/5.18/release-notes.md b/content/sensu-go/5.18/release-notes.md index 4ff3e78500..f7fc13f80e 100644 --- a/content/sensu-go/5.18/release-notes.md +++ b/content/sensu-go/5.18/release-notes.md @@ -4,45 +4,44 @@ linkTitle: "Release Notes" description: "Read the Sensu Go release notes to learn about what's new in our latest release." weight: -80 product: "Sensu Go" -toc: false version: "5.18" menu: "sensu-go-5.18" --- -- [5.18.1 release notes](#5181-release-notes) -- [5.18.0 release notes](#5180-release-notes) -- [5.17.2 release notes](#5172-release-notes) -- [5.17.1 release notes](#5171-release-notes) -- [5.17.0 release notes](#5170-release-notes) -- [5.16.1 release notes](#5161-release-notes) -- [5.16.0 release notes](#5160-release-notes) -- [5.15.0 release notes](#5150-release-notes) -- [5.14.2 release notes](#5142-release-notes) -- [5.14.1 release notes](#5141-release-notes) -- [5.14.0 release notes](#5140-release-notes) -- [5.13.2 release notes](#5132-release-notes) -- [5.13.1 release notes](#5131-release-notes) -- [5.13.0 release notes](#5130-release-notes) -- [5.12.0 release notes](#5120-release-notes) -- [5.11.1 release notes](#5111-release-notes) -- [5.11.0 release notes](#5110-release-notes) -- [5.10.2 release notes](#5102-release-notes) -- [5.10.1 release notes](#5101-release-notes) -- [5.10.0 release notes](#5100-release-notes) -- [5.9.0 release notes](#590-release-notes) -- [5.8.0 release notes](#580-release-notes) -- [5.7.0 release notes](#570-release-notes) -- [5.6.0 release notes](#560-release-notes) -- [5.5.1 release notes](#551-release-notes) -- [5.5.0 release notes](#550-release-notes) -- [5.4.0 release notes](#540-release-notes) -- [5.3.0 release notes](#530-release-notes) -- [5.2.1 release notes](#521-release-notes) -- [5.2.0 release notes](#520-release-notes) -- [5.1.1 release notes](#511-release-notes) -- [5.1.0 release notes](#510-release-notes) -- [5.0.1 release notes](#501-release-notes) -- [5.0.0 release notes](#500-release-notes) +- [5.18.1 release notes](#5-18-1-release-notes) +- [5.18.0 release notes](#5-18-0-release-notes) +- [5.17.2 release notes](#5-17-2-release-notes) +- [5.17.1 release notes](#5-17-1-release-notes) +- [5.17.0 release notes](#5-17-0-release-notes) +- [5.16.1 release notes](#5-16-1-release-notes) +- [5.16.0 release notes](#5-16-0-release-notes) +- [5.15.0 release notes](#5-15-0-release-notes) +- [5.14.2 release notes](#5-14-2-release-notes) +- [5.14.1 release notes](#5-14-1-release-notes) +- [5.14.0 release notes](#5-14-0-release-notes) +- [5.13.2 release notes](#5-13-2-release-notes) +- [5.13.1 release notes](#5-13-1-release-notes) +- [5.13.0 release notes](#5-13-0-release-notes) +- [5.12.0 release notes](#5-12-0-release-notes) +- [5.11.1 release notes](#5-11-1-release-notes) +- [5.11.0 release notes](#5-11-0-release-notes) +- [5.10.2 release notes](#5-10-2-release-notes) +- [5.10.1 release notes](#5-10-1-release-notes) +- [5.10.0 release notes](#5-10-0-release-notes) +- [5.9.0 release notes](#5-9-0-release-notes) +- [5.8.0 release notes](#5-8-0-release-notes) +- [5.7.0 release notes](#5-7-0-release-notes) +- [5.6.0 release notes](#5-6-0-release-notes) +- [5.5.1 release notes](#5-5-1-release-notes) +- [5.5.0 release notes](#5-5-0-release-notes) +- [5.4.0 release notes](#5-4-0-release-notes) +- [5.3.0 release notes](#5-3-0-release-notes) +- [5.2.1 release notes](#5-2-1-release-notes) +- [5.2.0 release notes](#5-2-0-release-notes) +- [5.1.1 release notes](#5-1-1-release-notes) +- [5.1.0 release notes](#5-1-0-release-notes) +- [5.0.1 release notes](#5-0-1-release-notes) +- [5.0.0 release notes](#5-0-0-release-notes) ### Versioning diff --git a/content/sensu-go/5.19/release-notes.md b/content/sensu-go/5.19/release-notes.md index 26a25bb847..cd6812cbd7 100644 --- a/content/sensu-go/5.19/release-notes.md +++ b/content/sensu-go/5.19/release-notes.md @@ -4,49 +4,48 @@ linkTitle: "Release Notes" description: "Read the Sensu Go release notes to learn about what's new in our latest release." weight: -80 product: "Sensu Go" -toc: false version: "5.19" menu: "sensu-go-5.19" --- -- [5.19.3 release notes](#5193-release-notes) -- [5.19.2 release notes](#5192-release-notes) -- [5.19.1 release notes](#5191-release-notes) -- [5.19.0 release notes](#5190-release-notes) -- [5.18.1 release notes](#5181-release-notes) -- [5.18.0 release notes](#5180-release-notes) -- [5.17.2 release notes](#5172-release-notes) -- [5.17.1 release notes](#5171-release-notes) -- [5.17.0 release notes](#5170-release-notes) -- [5.16.1 release notes](#5161-release-notes) -- [5.16.0 release notes](#5160-release-notes) -- [5.15.0 release notes](#5150-release-notes) -- [5.14.2 release notes](#5142-release-notes) -- [5.14.1 release notes](#5141-release-notes) -- [5.14.0 release notes](#5140-release-notes) -- [5.13.2 release notes](#5132-release-notes) -- [5.13.1 release notes](#5131-release-notes) -- [5.13.0 release notes](#5130-release-notes) -- [5.12.0 release notes](#5120-release-notes) -- [5.11.1 release notes](#5111-release-notes) -- [5.11.0 release notes](#5110-release-notes) -- [5.10.2 release notes](#5102-release-notes) -- [5.10.1 release notes](#5101-release-notes) -- [5.10.0 release notes](#5100-release-notes) -- [5.9.0 release notes](#590-release-notes) -- [5.8.0 release notes](#580-release-notes) -- [5.7.0 release notes](#570-release-notes) -- [5.6.0 release notes](#560-release-notes) -- [5.5.1 release notes](#551-release-notes) -- [5.5.0 release notes](#550-release-notes) -- [5.4.0 release notes](#540-release-notes) -- [5.3.0 release notes](#530-release-notes) -- [5.2.1 release notes](#521-release-notes) -- [5.2.0 release notes](#520-release-notes) -- [5.1.1 release notes](#511-release-notes) -- [5.1.0 release notes](#510-release-notes) -- [5.0.1 release notes](#501-release-notes) -- [5.0.0 release notes](#500-release-notes) +- [5.19.3 release notes](#5-19-3-release-notes) +- [5.19.2 release notes](#5-19-2-release-notes) +- [5.19.1 release notes](#5-19-1-release-notes) +- [5.19.0 release notes](#5-19-0-release-notes) +- [5.18.1 release notes](#5-18-1-release-notes) +- [5.18.0 release notes](#5-18-0-release-notes) +- [5.17.2 release notes](#5-17-2-release-notes) +- [5.17.1 release notes](#5-17-1-release-notes) +- [5.17.0 release notes](#5-17-0-release-notes) +- [5.16.1 release notes](#5-16-1-release-notes) +- [5.16.0 release notes](#5-16-0-release-notes) +- [5.15.0 release notes](#5-15-0-release-notes) +- [5.14.2 release notes](#5-14-2-release-notes) +- [5.14.1 release notes](#5-14-1-release-notes) +- [5.14.0 release notes](#5-14-0-release-notes) +- [5.13.2 release notes](#5-13-2-release-notes) +- [5.13.1 release notes](#5-13-1-release-notes) +- [5.13.0 release notes](#5-13-0-release-notes) +- [5.12.0 release notes](#5-12-0-release-notes) +- [5.11.1 release notes](#5-11-1-release-notes) +- [5.11.0 release notes](#5-11-0-release-notes) +- [5.10.2 release notes](#5-10-2-release-notes) +- [5.10.1 release notes](#5-10-1-release-notes) +- [5.10.0 release notes](#5-10-0-release-notes) +- [5.9.0 release notes](#5-9-0-release-notes) +- [5.8.0 release notes](#5-8-0-release-notes) +- [5.7.0 release notes](#5-7-0-release-notes) +- [5.6.0 release notes](#5-6-0-release-notes) +- [5.5.1 release notes](#5-5-1-release-notes) +- [5.5.0 release notes](#5-5-0-release-notes) +- [5.4.0 release notes](#5-4-0-release-notes) +- [5.3.0 release notes](#5-3-0-release-notes) +- [5.2.1 release notes](#5-2-1-release-notes) +- [5.2.0 release notes](#5-2-0-release-notes) +- [5.1.1 release notes](#5-1-1-release-notes) +- [5.1.0 release notes](#5-1-0-release-notes) +- [5.0.1 release notes](#5-0-1-release-notes) +- [5.0.0 release notes](#5-0-0-release-notes) ### Versioning diff --git a/content/sensu-go/5.20/release-notes.md b/content/sensu-go/5.20/release-notes.md index ec139e4549..a0af84ce8c 100644 --- a/content/sensu-go/5.20/release-notes.md +++ b/content/sensu-go/5.20/release-notes.md @@ -4,52 +4,51 @@ linkTitle: "Release Notes" description: "Read the Sensu Go release notes to learn about what's new in our latest release." weight: -80 product: "Sensu Go" -toc: false version: "5.20" menu: "sensu-go-5.20" --- -- [5.20.2 release notes](#5202-release-notes) -- [5.20.1 release notes](#5201-release-notes) -- [5.20.0 release notes](#5200-release-notes) -- [5.19.3 release notes](#5193-release-notes) -- [5.19.2 release notes](#5192-release-notes) -- [5.19.1 release notes](#5191-release-notes) -- [5.19.0 release notes](#5190-release-notes) -- [5.18.1 release notes](#5181-release-notes) -- [5.18.0 release notes](#5180-release-notes) -- [5.17.2 release notes](#5172-release-notes) -- [5.17.1 release notes](#5171-release-notes) -- [5.17.0 release notes](#5170-release-notes) -- [5.16.1 release notes](#5161-release-notes) -- [5.16.0 release notes](#5160-release-notes) -- [5.15.0 release notes](#5150-release-notes) -- [5.14.2 release notes](#5142-release-notes) -- [5.14.1 release notes](#5141-release-notes) -- [5.14.0 release notes](#5140-release-notes) -- [5.13.2 release notes](#5132-release-notes) -- [5.13.1 release notes](#5131-release-notes) -- [5.13.0 release notes](#5130-release-notes) -- [5.12.0 release notes](#5120-release-notes) -- [5.11.1 release notes](#5111-release-notes) -- [5.11.0 release notes](#5110-release-notes) -- [5.10.2 release notes](#5102-release-notes) -- [5.10.1 release notes](#5101-release-notes) -- [5.10.0 release notes](#5100-release-notes) -- [5.9.0 release notes](#590-release-notes) -- [5.8.0 release notes](#580-release-notes) -- [5.7.0 release notes](#570-release-notes) -- [5.6.0 release notes](#560-release-notes) -- [5.5.1 release notes](#551-release-notes) -- [5.5.0 release notes](#550-release-notes) -- [5.4.0 release notes](#540-release-notes) -- [5.3.0 release notes](#530-release-notes) -- [5.2.1 release notes](#521-release-notes) -- [5.2.0 release notes](#520-release-notes) -- [5.1.1 release notes](#511-release-notes) -- [5.1.0 release notes](#510-release-notes) -- [5.0.1 release notes](#501-release-notes) -- [5.0.0 release notes](#500-release-notes) +- [5.20.2 release notes](#5-20-2-release-notes) +- [5.20.1 release notes](#5-20-1-release-notes) +- [5.20.0 release notes](#5-20-0-release-notes) +- [5.19.3 release notes](#5-19-3-release-notes) +- [5.19.2 release notes](#5-19-2-release-notes) +- [5.19.1 release notes](#5-19-1-release-notes) +- [5.19.0 release notes](#5-19-0-release-notes) +- [5.18.1 release notes](#5-18-1-release-notes) +- [5.18.0 release notes](#5-18-0-release-notes) +- [5.17.2 release notes](#5-17-2-release-notes) +- [5.17.1 release notes](#5-17-1-release-notes) +- [5.17.0 release notes](#5-17-0-release-notes) +- [5.16.1 release notes](#5-16-1-release-notes) +- [5.16.0 release notes](#5-16-0-release-notes) +- [5.15.0 release notes](#5-15-0-release-notes) +- [5.14.2 release notes](#5-14-2-release-notes) +- [5.14.1 release notes](#5-14-1-release-notes) +- [5.14.0 release notes](#5-14-0-release-notes) +- [5.13.2 release notes](#5-13-2-release-notes) +- [5.13.1 release notes](#5-13-1-release-notes) +- [5.13.0 release notes](#5-13-0-release-notes) +- [5.12.0 release notes](#5-12-0-release-notes) +- [5.11.1 release notes](#5-11-1-release-notes) +- [5.11.0 release notes](#5-11-0-release-notes) +- [5.10.2 release notes](#5-10-2-release-notes) +- [5.10.1 release notes](#5-10-1-release-notes) +- [5.10.0 release notes](#5-10-0-release-notes) +- [5.9.0 release notes](#5-9-0-release-notes) +- [5.8.0 release notes](#5-8-0-release-notes) +- [5.7.0 release notes](#5-7-0-release-notes) +- [5.6.0 release notes](#5-6-0-release-notes) +- [5.5.1 release notes](#5-5-1-release-notes) +- [5.5.0 release notes](#5-5-0-release-notes) +- [5.4.0 release notes](#5-4-0-release-notes) +- [5.3.0 release notes](#5-3-0-release-notes) +- [5.2.1 release notes](#5-2-1-release-notes) +- [5.2.0 release notes](#5-2-0-release-notes) +- [5.1.1 release notes](#5-1-1-release-notes) +- [5.1.0 release notes](#5-1-0-release-notes) +- [5.0.1 release notes](#5-0-1-release-notes) +- [5.0.0 release notes](#5-0-0-release-notes) ### Versioning diff --git a/content/sensu-go/5.21/release-notes.md b/content/sensu-go/5.21/release-notes.md index 2e743c49a8..4b2d299a4b 100644 --- a/content/sensu-go/5.21/release-notes.md +++ b/content/sensu-go/5.21/release-notes.md @@ -4,52 +4,51 @@ linkTitle: "Release Notes" description: "Read the Sensu Go release notes to learn about what's new in our latest release." weight: -80 product: "Sensu Go" -toc: false version: "5.21" menu: "sensu-go-5.21" --- -- [5.20.2 release notes](#5202-release-notes) -- [5.20.1 release notes](#5201-release-notes) -- [5.20.0 release notes](#5200-release-notes) -- [5.19.3 release notes](#5193-release-notes) -- [5.19.2 release notes](#5192-release-notes) -- [5.19.1 release notes](#5191-release-notes) -- [5.19.0 release notes](#5190-release-notes) -- [5.18.1 release notes](#5181-release-notes) -- [5.18.0 release notes](#5180-release-notes) -- [5.17.2 release notes](#5172-release-notes) -- [5.17.1 release notes](#5171-release-notes) -- [5.17.0 release notes](#5170-release-notes) -- [5.16.1 release notes](#5161-release-notes) -- [5.16.0 release notes](#5160-release-notes) -- [5.15.0 release notes](#5150-release-notes) -- [5.14.2 release notes](#5142-release-notes) -- [5.14.1 release notes](#5141-release-notes) -- [5.14.0 release notes](#5140-release-notes) -- [5.13.2 release notes](#5132-release-notes) -- [5.13.1 release notes](#5131-release-notes) -- [5.13.0 release notes](#5130-release-notes) -- [5.12.0 release notes](#5120-release-notes) -- [5.11.1 release notes](#5111-release-notes) -- [5.11.0 release notes](#5110-release-notes) -- [5.10.2 release notes](#5102-release-notes) -- [5.10.1 release notes](#5101-release-notes) -- [5.10.0 release notes](#5100-release-notes) -- [5.9.0 release notes](#590-release-notes) -- [5.8.0 release notes](#580-release-notes) -- [5.7.0 release notes](#570-release-notes) -- [5.6.0 release notes](#560-release-notes) -- [5.5.1 release notes](#551-release-notes) -- [5.5.0 release notes](#550-release-notes) -- [5.4.0 release notes](#540-release-notes) -- [5.3.0 release notes](#530-release-notes) -- [5.2.1 release notes](#521-release-notes) -- [5.2.0 release notes](#520-release-notes) -- [5.1.1 release notes](#511-release-notes) -- [5.1.0 release notes](#510-release-notes) -- [5.0.1 release notes](#501-release-notes) -- [5.0.0 release notes](#500-release-notes) +- [5.20.2 release notes](#5-20-2-release-notes) +- [5.20.1 release notes](#5-20-1-release-notes) +- [5.20.0 release notes](#5-20-0-release-notes) +- [5.19.3 release notes](#5-19-3-release-notes) +- [5.19.2 release notes](#5-19-2-release-notes) +- [5.19.1 release notes](#5-19-1-release-notes) +- [5.19.0 release notes](#5-19-0-release-notes) +- [5.18.1 release notes](#5-18-1-release-notes) +- [5.18.0 release notes](#5-18-0-release-notes) +- [5.17.2 release notes](#5-17-2-release-notes) +- [5.17.1 release notes](#5-17-1-release-notes) +- [5.17.0 release notes](#5-17-0-release-notes) +- [5.16.1 release notes](#5-16-1-release-notes) +- [5.16.0 release notes](#5-16-0-release-notes) +- [5.15.0 release notes](#5-15-0-release-notes) +- [5.14.2 release notes](#5-14-2-release-notes) +- [5.14.1 release notes](#5-14-1-release-notes) +- [5.14.0 release notes](#5-14-0-release-notes) +- [5.13.2 release notes](#5-13-2-release-notes) +- [5.13.1 release notes](#5-13-1-release-notes) +- [5.13.0 release notes](#5-13-0-release-notes) +- [5.12.0 release notes](#5-12-0-release-notes) +- [5.11.1 release notes](#5-11-1-release-notes) +- [5.11.0 release notes](#5-11-0-release-notes) +- [5.10.2 release notes](#5-10-2-release-notes) +- [5.10.1 release notes](#5-10-1-release-notes) +- [5.10.0 release notes](#5-10-0-release-notes) +- [5.9.0 release notes](#5-9-0-release-notes) +- [5.8.0 release notes](#5-8-0-release-notes) +- [5.7.0 release notes](#5-7-0-release-notes) +- [5.6.0 release notes](#5-6-0-release-notes) +- [5.5.1 release notes](#5-5-1-release-notes) +- [5.5.0 release notes](#5-5-0-release-notes) +- [5.4.0 release notes](#5-4-0-release-notes) +- [5.3.0 release notes](#5-3-0-release-notes) +- [5.2.1 release notes](#5-2-1-release-notes) +- [5.2.0 release notes](#5-2-0-release-notes) +- [5.1.1 release notes](#5-1-1-release-notes) +- [5.1.0 release notes](#5-1-0-release-notes) +- [5.0.1 release notes](#5-0-1-release-notes) +- [5.0.0 release notes](#5-0-0-release-notes) ### Versioning diff --git a/layouts/_default/single.html b/layouts/_default/single.html index ad7838e36e..6b432914eb 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -28,7 +28,14 @@

{{ .Title }} {{ if .Draft }} (Draft){{ end }}

- {{ partial "toc" . }} +
+
+
+
+
+
+
+
{{ partial "footer" . }} diff --git a/layouts/partials/footer_js.html b/layouts/partials/footer_js.html index 416b331cb0..96a2518fa4 100644 --- a/layouts/partials/footer_js.html +++ b/layouts/partials/footer_js.html @@ -9,7 +9,6 @@ - {{ range .Site.Params.custom_js }} {{ end }} diff --git a/layouts/partials/toc.html b/layouts/partials/toc.html deleted file mode 100644 index df70bb4d25..0000000000 --- a/layouts/partials/toc.html +++ /dev/null @@ -1,8 +0,0 @@ - diff --git a/offline/partials/toc.html b/offline/partials/toc.html index 3490df1963..394ee60b45 100644 --- a/offline/partials/toc.html +++ b/offline/partials/toc.html @@ -42,8 +42,8 @@

Contents

diff --git a/offline/shortcodes/alert.html b/offline/shortcodes/alert.html deleted file mode 100644 index 5e78066447..0000000000 --- a/offline/shortcodes/alert.html +++ /dev/null @@ -1,6 +0,0 @@ -{{ $color := .Get 0 }} -{{ $message := .Get 1 }} -{{ $link := .Get 2 }} -{{ $params := slice $color $message $link }} - -{{ partial "alert" $params }} diff --git a/offline/shortcodes/check.html b/offline/shortcodes/check.html deleted file mode 100644 index cc2f85cf56..0000000000 --- a/offline/shortcodes/check.html +++ /dev/null @@ -1 +0,0 @@ -check mark diff --git a/offline/shortcodes/cross.html b/offline/shortcodes/cross.html deleted file mode 100644 index 8b21dfb455..0000000000 --- a/offline/shortcodes/cross.html +++ /dev/null @@ -1 +0,0 @@ -cross mark diff --git a/offline/shortcodes/note.html b/offline/shortcodes/note.html deleted file mode 100644 index 73b276a7f4..0000000000 --- a/offline/shortcodes/note.html +++ /dev/null @@ -1,4 +0,0 @@ -
-

{{ .Get "title" }}

-

{{ printf "%s" .Inner | markdownify }}

-
\ No newline at end of file diff --git a/offline/shortcodes/warning.html b/offline/shortcodes/warning.html deleted file mode 100644 index 16f3978356..0000000000 --- a/offline/shortcodes/warning.html +++ /dev/null @@ -1,4 +0,0 @@ -
-

{{ .Get "title" }}

-

{{ printf "%s" .Inner | markdownify }}

-
\ No newline at end of file diff --git a/static/js/toc.js b/static/js/toc.js deleted file mode 100644 index e3c51aa6ba..0000000000 --- a/static/js/toc.js +++ /dev/null @@ -1,57 +0,0 @@ -// This is messy, because docs content isn't nested in
s. Instead, we: -// 1. Detect the ToC anchors (links) -// 2. Query the
for these headings -// 3. Re-format the ToC (in Hugo v0.70.0, the template is not customizable) -// 4. Split the
's childNodes into
s with these headings as boundaries -// 5. Use the new parent as IntersectionObserver entries -(function () { - // 1 - const $toc = document.getElementById('TableOfContents'); - const $tocElements = Array.from($toc.querySelectorAll('li')).filter($el => $el.innerHTML.trim()); - const tocLinks = $tocElements.map($li => ( - `#${CSS.escape($li.querySelector('a').getAttribute('href').replace('#', ''))}` - )); - - // 2 - const $headings = Array.from(document.querySelectorAll(tocLinks.join(','))); - // 3 - $headings.map(($heading, i) => ( - $tocElements[i].classList.add($heading.tagName.toLowerCase()) - )); - while($toc.firstChild){ - $toc.removeChild($toc.firstChild); - } - $tocElements.forEach($el => $toc.appendChild($el)); - - // 4 - const $article = document.querySelector('main article h1').parentElement; - const $articleNodes = Array.from($article.childNodes); - // Use Set for unique indices - const sectionBoundaries = [...new Set([ - 0, - ...$headings.map($heading => ( - // $heading.tagName === 'H2' ? $articleNodes.indexOf($heading) : 0 - $articleNodes.indexOf($heading) - )), - $articleNodes.length - 1 - ])]; - for (let i=1; i < sectionBoundaries.length; i++) { - const $section = document.createElement('section'); - $article.appendChild($section); - $articleNodes.slice(sectionBoundaries[i-1], sectionBoundaries[i]).map($child => $section.appendChild($child)); - } - - // 5 - const observer = new IntersectionObserver(entries => { - entries.forEach(entry => { - const id = CSS.escape(entry.target.firstChild.getAttribute('id')); - const $li = $toc.querySelector(`a[href="#${id}"]`).parentElement; - if (entry.intersectionRatio > 0) { - $li.classList.add('active'); - } else { - $li.classList.remove('active'); - } - }); - }, { rootMargin: '-125px 0px -60px' }); - $headings.forEach(heading => observer.observe(heading.parentElement)); -})(); diff --git a/static/stylesheets/scss/_drawer.scss b/static/stylesheets/scss/_drawer.scss index efa4562aac..f3c0b09ed6 100644 --- a/static/stylesheets/scss/_drawer.scss +++ b/static/stylesheets/scss/_drawer.scss @@ -1,7 +1,7 @@ .drawer { display: flex; + flex: 0 0 75%; height: calc(100vh - #{$header-height-sm}); - justify-content: flex-end; left: -75%; max-width: 26rem; position: fixed; @@ -19,11 +19,10 @@ } @media (min-width: $breakpoint-lg) { - grid-area: drawer; + flex: 0 0 25%; height: calc(100vh - #{$header-height-lg}); - max-width: 100%; - position: sticky; - top: 7rem; + position: static; + width: 25%; z-index: 1; } @@ -62,9 +61,10 @@ @media (min-width: $breakpoint-lg) { background-color: transparent; min-width: auto; + max-width: 31rem; overflow: auto; - width: 100%; padding-top: 6rem; + position: fixed; } nav { diff --git a/static/stylesheets/scss/_layout.scss b/static/stylesheets/scss/_layout.scss index df71fbb350..2e3878a43f 100644 --- a/static/stylesheets/scss/_layout.scss +++ b/static/stylesheets/scss/_layout.scss @@ -1,19 +1,15 @@ main { align-items: stretch; - display: grid; - grid-template-areas: "main"; + display: flex; margin: 0 auto; - max-width: 1500px; + max-width: 1236px; padding-top: $header-height-sm; #home & { - display: flex; max-width: 100%; } @media (min-width: $breakpoint-lg) { - grid-template-areas: "drawer main aside"; - grid-template-columns: 1fr 3fr 1fr; padding-top: $header-height-lg; } } @@ -26,12 +22,13 @@ main { .article { background-color: white; - grid-area: main; - margin: 0; + border-left: 2px solid #eaeaea; + flex: 0 0 100%; + margin: 0 0 0 auto; overflow-x: hidden; @media (min-width: $breakpoint-lg) { - border-left: 2px solid #eaeaea; + flex: 0 0 75%; } diff --git a/static/stylesheets/scss/_toc.scss b/static/stylesheets/scss/_toc.scss index b6204ddd31..2f93dbfa37 100644 --- a/static/stylesheets/scss/_toc.scss +++ b/static/stylesheets/scss/_toc.scss @@ -3,84 +3,3 @@ margin-left: 2rem; } } - -aside#toc { - background: white; - display: none; - grid-area: aside; - padding: 4rem 0 9rem 1rem; - - & > div { - background-color: #fbfbfb; - padding: 2rem 1rem 2rem 1.5rem; - position: sticky; - top: 11rem; - width: 100%; - } - - a { - display: block; - margin-bottom: 1rem; - position: relative; - text-decoration: none; - - &::before { - border-bottom: 4px solid transparent; - border-left-color: $green; - border-left-style: solid; - border-left-width: 0; - border-top: 4px solid transparent; - content: ''; - display: block; - left: -1.25rem; - position: absolute; - top: 6px; - transition: border 0.3s; - } - } - - code { - padding: 0; - } - - h4 { - font-size: 1.6rem; - font-style: normal; - margin-top: 0; - } - - li { - display: block; - font-size: 1.4rem; - padding-left: 1.6rem; - position: relative; - - &.active > a { - color: $green; - } - - &.active a::before { - border-left-width: 6px; - } - - &.active ~ li > a { - color: inherit; - } - - &.active ~ li > a::before { - border-left-width: 0; - } - - &.h3 { - padding-left: 3.2rem; - } - } - - ul ul { - margin-left: 0; - } - - @media (min-width: $breakpoint-lg) { - display: block; - } -} diff --git a/static/stylesheets/scss/main.scss b/static/stylesheets/scss/main.scss index 52310fabda..dc2c79b7ce 100644 --- a/static/stylesheets/scss/main.scss +++ b/static/stylesheets/scss/main.scss @@ -17,4 +17,3 @@ @import "product-picker"; @import "search"; @import "table"; -@import "toc"; diff --git a/themes/hugo-material-docs/CHANGELOG.md b/themes/hugo-material-docs/CHANGELOG.md new file mode 100644 index 0000000000..f9259b8a3a --- /dev/null +++ b/themes/hugo-material-docs/CHANGELOG.md @@ -0,0 +1,33 @@ +# Changelog + + +### 8th April 2017 + +`.Now` has been deprecated. Hence the required minimum version of Hugo is v0.20. + +### 11th May 2016 + +#### Add templates for section lists + +Sections such as www.example.com/foo/ will now be rendered with a list of all pages that are part of this section. The list shows the pages' title and a summary of their content. + +[Show me the diff](https://github.com/digitalcraftsman/hugo-material-docs/commit/1f8393a8d4ce1b8ee3fc7d87be05895c12810494) + +### 22nd March 2016 + +#### Changing setup for Google Analytics + +Formerly, the tracking id for Google Analytics was set like below: + +```toml +[params] + google_analytics = ["UA-XXXXXXXX-X", "auto"] +``` + +Now the theme uses Hugo's own Google Analytics config option. The variable moved outside the scope of `params` and the setup requires only the tracking id as a string: + +```toml +googleAnalytics = "UA-XXXXXXXX-X" +``` + +[Show me the diff](https://github.com/digitalcraftsman/hugo-material-docs/commit/fa10c8eef935932426d46b662a51f29a5e0d48e2) diff --git a/themes/hugo-material-docs/LICENSE.md b/themes/hugo-material-docs/LICENSE.md new file mode 100644 index 0000000000..1a5879b3b9 --- /dev/null +++ b/themes/hugo-material-docs/LICENSE.md @@ -0,0 +1,20 @@ +Copyright (c) 2016 Digitalcraftsman
+Copyright (c) 2016 Martin Donath + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to +deal in the Software without restriction, including without limitation the +rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +sell copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +IN THE SOFTWARE. \ No newline at end of file diff --git a/themes/hugo-material-docs/README.md b/themes/hugo-material-docs/README.md new file mode 100644 index 0000000000..2b7475df57 --- /dev/null +++ b/themes/hugo-material-docs/README.md @@ -0,0 +1,11 @@ +# Sensu Material Docs + +This is the Sensu Docs fork of the Material Docs theme. + +The original project can be found on GitHub at [digitalcraftsman/hugo-material-docs](https://github.com/digitalcraftsman/hugo-material-docs). + +A material design theme for [Hugo](https://gohugo.io). + +## License + +The theme is released under the MIT license. Read the [license](LICENSE.md) for more information. diff --git a/themes/hugo-material-docs/archetypes/default.md b/themes/hugo-material-docs/archetypes/default.md new file mode 100644 index 0000000000..a49ba48448 --- /dev/null +++ b/themes/hugo-material-docs/archetypes/default.md @@ -0,0 +1,2 @@ +--- +--- \ No newline at end of file diff --git a/themes/hugo-material-docs/exampleSite/config.toml b/themes/hugo-material-docs/exampleSite/config.toml new file mode 100755 index 0000000000..85c63523b1 --- /dev/null +++ b/themes/hugo-material-docs/exampleSite/config.toml @@ -0,0 +1,78 @@ +baseurl = "https://example.org/" +languageCode = "en-us" +title = "Material Docs" +theme = "hugo-material-docs" +metadataformat = "yaml" +canonifyurls = true +# Enable Google Analytics by entering your tracking id +googleAnalytics = "" + +[params] + # General information + author = "Digitalcraftsman" + description = "A material design theme for documentations." + copyright = "Released under the MIT license" + + # Repository + provider = "GitHub" + repo_url = "https://github.com/digitalcraftsman/hugo-material-docs" + + version = "1.0.0" + logo = "images/logo.png" + favicon = "" + + permalink = "#" + + # Custom assets + custom_css = [] + custom_js = [] + + # Syntax highlighting theme + highlight_css = "" + + [params.palette] + primary = "red" + accent = "teal" + + [params.font] + text = "Ubuntu" + code = "Ubuntu Mono" + + +[social] + twitter = "" + github = "digitalcraftsman" + email = "hello@email.com" + + +[[menu.main]] + name = "Material" + url = "/" + weight = 0 + +[[menu.main]] + name = "Getting started" + url = "getting-started/" + weight = 10 + +[[menu.main]] + name = "Adding content" + url = "adding-content/" + weight = 20 + +[[menu.main]] + name = "Roadmap" + url = "roadmap/" + weight = 30 + +[[menu.main]] + name = "License" + url = "license/" + weight = 40 + + +[blackfriday] + smartypants = true + fractions = true + smartDashes = true + plainIDAnchors = true diff --git a/themes/hugo-material-docs/exampleSite/content/adding-content/index.md b/themes/hugo-material-docs/exampleSite/content/adding-content/index.md new file mode 100644 index 0000000000..2fce91e39c --- /dev/null +++ b/themes/hugo-material-docs/exampleSite/content/adding-content/index.md @@ -0,0 +1,61 @@ +--- +date: 2016-03-09T19:56:50+01:00 +title: Adding content +weight: 20 +--- + +## Hello world + +Let's create our first content file for your documentation. Open a terminal and add the following command for each new file you want to add. Replace `` with a general term that describes your document in detail. + +```sh +hugo new /filename.md +``` + +Visitors of your website will find the final document under `www.example.com//filename/`. + +Since it's possible to have multiple content files in the same section I recommend to create at least one `index.md` file per section. This ensures that users will find an index page under `www.example.com/`. + +## Homepage + +To add content to the homepage you need to add a small indicator to the frontmatter of the content file: + +```toml +type: index +``` + +Otherwise the theme will not be able to find the corresponding content file. + +## Table of contents + +You maybe noticed that the menu on the left contains a small table of contents of the current page. All `

` tags (`## Headline` in Markdown) will be added automatically. + +## Admonitions + +Admonition is a handy feature that adds block-styled side content to your documentation, for example hints, notes or warnings. It can be enabled by using the corresponding [shortcodes](http://gohugo.io/extras/shortcodes/) inside your content: + +```go +{{}} +Nothing to see here, move along. +{{}} +``` + +This will print the following block: + +{{< note title="Note" >}} +Nothing to see here, move along. +{{< /note >}} + +The shortcode adds a neutral color for the note class and a red color for the warning class. You can also add a custom title: + +```go +{{}} +Nothing to see here, move along. +{{}} +``` + +This will print the following block: + +{{< warning title="Don't try this at home" >}} +Nothing to see here, move along. +{{< /warning >}} diff --git a/themes/hugo-material-docs/exampleSite/content/getting-started/index.md b/themes/hugo-material-docs/exampleSite/content/getting-started/index.md new file mode 100644 index 0000000000..e501c04b1c --- /dev/null +++ b/themes/hugo-material-docs/exampleSite/content/getting-started/index.md @@ -0,0 +1,240 @@ +--- +date: 2016-03-09T00:11:02+01:00 +title: Getting started +weight: 10 +--- + +## Installation + +### Installing Hugo + +Hugo itself is just a single binary without dependencies on expensive runtimes like Ruby, Python or PHP and without dependencies on any databases. You just need to download the [latest version](https://github.com/spf13/hugo/releases). For more information read the official [installation guides](http://gohugo.io/overview/installing/). + +Let's make sure Hugo is set up as expected. You should see a similar version number in your terminal: + +```sh +hugo version +# Hugo Static Site Generator v0.15 BuildDate: 2016-01-03T12:47:47+01:00 +``` + +### Installing Material + +Next, assuming you have Hugo up and running the `hugo-material-docs` theme can be installed with `git`: + +```sh +# create a new Hugo website +hugo new site my-awesome-docs + +# move into the themes folder of your website +cd my-awesome-docs/themes/ + +# download the theme +git clone git@github.com:digitalcraftsman/hugo-material-docs.git +``` + +## Setup + +Next, take a look in the `exampleSite` folder at `themes/hugo-material-docs/`. This directory contains an example config file and the content that you are currently reading. It serves as an example setup for your documentation. + +Copy at least the `config.toml` in the root directory of your website. Overwrite the existing config file if necessary. + +Hugo includes a development server, so you can view your changes as you go - +very handy. Spin it up with the following command: + +``` sh +hugo server +``` + +Now you can go to [localhost:1313](http://localhost:1313) and the Material +theme should be visible. You can now start writing your documentation, or read +on and customize the theme through some options. + +## Configuration + +Before you are able to deploy your documentation you should take a few minute to adjust some information in the `config.toml`. Open the file in an editor: + +```toml +baseurl = "https://example.com/" +languageCode = "en-us" +title = "Material Docs" + +[params] + # General information + author = "Digitalcraftsman" + description = "A material design theme for documentations." + copyright = "Released under the MIT license" +``` + +## Options + +### Github integration + +If your project is hosted on GitHub, add the repository link to the +configuration. If the `provider` equals **GitHub**, the Material theme will +add a download and star button, and display the number of stars: + +```toml +[params] + # Repository + provider = "GitHub" + repo_url = "https://github.com/digitalcraftsman/hugo-material-docs" +``` + +### Adding a version + +In order to add the current version next to the project banner inside the +drawer, you can set the variable `version`: + +```toml +[params] + version = "1.0.0" +``` + +This will also change the link behind the download button to point to the +archive with the respective version on GitHub, assuming a release tagged with +this exact version identifier. + +### Adding a logo + +If your project has a logo, you can add it to the drawer/navigation by defining +the variable `logo`. Ideally, the image of your logo should have +rectangular shape with a minimum resolution of 128x128 and leave some room +towards the edges. The logo will also be used as a web application icon on iOS. +Either save your logo somewhere in the `static/` folder and reference the file relative to this location or use an external URL: + +```toml +[params] + logo = "images/logo.png" +``` + +### Adding a custom favicon + +Favicons are small small icons that are displayed in the tabs right next to the title of the current page. As with the logo above you need to save your favicon in `static/` and link it relative to this folder or use an external URL: + +```toml +[params] + favicon = "favicon.ico" +``` + +### Google Analytics + +You can enable Google Analytics by replacing `UA-XXXXXXXX-X` with your own tracking code. + +```toml +googleAnalytics = "UA-XXXXXXXX-X" +``` + +### Small tweaks + +This theme provides a simple way for making small adjustments, that is changing +some margins, centering text, etc. The `custom_css` and `custom_js` option allow you to add further CSS and JS files. They can either reside locally in the `/static` folder or on an external server, e.g. a CDN. In both cases use either the relative path to `/static` or the absolute URL to the external ressource. + + +```toml +[params] + # Custom assets + custom_css = [ + "foo.css", + "bar.css" + ] + + custom_js = ["buzz.js"] +``` + +### Changing the color palette + +Material defines a default hue for every primary and accent color on Google's +material design [color palette][]. This makes it very easy to change the overall look of the theme. Just set the variables `palette.primary` and `palette.accent` to one of the colors defined in the palette: + +```toml +[params.palette] + primary = "red" + accent = "light-green" +``` + +Color names can be written upper- or lowercase but must match the names of the +material design [color palette](http://www.materialui.co/colors). Valid values are: _red_, _pink_, _purple_, _deep purple_, _indigo_, _blue_, _light-blue_, _cyan_, _teal_, _green_, _light-green_, +_lime_, _yellow_, _amber_, _orange_, _deep-orange_, _brown_, _grey_ and +_blue-grey_. The last three colors can only be used as a primary color. + +![Color palette](/images/colors.png) + +If the color is set via this configuration, an additional CSS file called +`palettes.css` is included that defines the color palettes. + +### Changing the font family + +Material uses the [Ubuntu font family](http://font.ubuntu.com) by default, specifically the regular sans-serif type for text and the monospaced type for code. Both fonts are loaded from [Google Fonts](https://www.google.com/fonts) and can be easily changed to other fonts, like for example Google's own [Roboto font](https://www.google.com/fonts/specimen/Roboto): + +```toml +[params.font] + text = "Roboto" + code = "Roboto Mono" +``` + +The text font will be loaded in font-weights 400 and **700**, the monospaced +font in regular weight. + +### Syntax highlighting + +This theme uses the popular [Highlight.js](https://highlightjs.org/) library to colorize code examples. The default theme is called `Github` with a few small tweaks. You can link our own theme if you like. Again, store your stylesheet in the `static/` folder and set the relative path in the config file: + +```toml +[params] + # Syntax highlighting theme + highlight_css = "path/to/theme.css" +``` + +### Adding a GitHub and Twitter account + +If you have a GitHub and/or Twitter account, you can add links to your +accounts to the drawer by setting the variables `github` and +`twitter` respectively: + +``` toml +[social] + twitter = "" + github = "digitalcraftsman" +``` + +### Adding menu entries + +Once you created your first content files you can link them manually in the sidebar on the left. A menu entry has the following schema: + +```toml +[[menu.main]] + name = "Material" + url = "/" + weight = 0 + pre = "" +``` + +`name` is the title displayed in the menu and `url` the relative URL to the content. The `weight` attribute allows you to modify the order of the menu entries. A menu entry appears further down the more weight you add. The `pre` attribute is optional and allows you to *pre*pend elements to a menu link, e.g. an icon. + +Instead of just linking a single file you can enhance the sidebar by creating a nested menu. This way you can list all pages of a section instead of linking them one by one (without nesting). + +You need extend the frontmatter of each file content file in a section slightly. The snippet below registers this content file as 'child' of a menu entry that already exists. + +```yaml +menu: + main: + parent: Material + identifier: + weight: 0 +``` + +`main` specifies to which menu the content file should be added. `main` is the only menu in this theme by default. `parent` let's you register this content file to an existing menu entry, in this case the `Material` link. Note that the parent in the frontmatter needs to match the name in `config.toml`. + +`identifier` is the link that is shown in the menu. Ideally you choose the same name for the `identifier` and the `title` of the page. Again, `weight` allows you to change the order of the nested links in a section. + +### Markdown extensions + +Hugo uses [Blackfriday](https://github.com/russross/blackfriday) to process your content. For a detailed description of all options take a look at the [Blackfriday configuration](http://gohugo.io/overview/configuration/#configure-blackfriday-rendering) section in the Hugo documentation. + +```toml +[blackfriday] + smartypants = true + fractions = true + smartDashes = true + plainIDAnchors = true +``` diff --git a/themes/hugo-material-docs/exampleSite/content/index.md b/themes/hugo-material-docs/exampleSite/content/index.md new file mode 100644 index 0000000000..a48262edab --- /dev/null +++ b/themes/hugo-material-docs/exampleSite/content/index.md @@ -0,0 +1,55 @@ +--- +date: 2016-03-08T21:07:13+01:00 +title: Material for Hugo +type: index +weight: 0 +--- + +## Beautiful documentation + +Material is a theme for [Hugo](https://gohugo.io), a fast and flexible static site generator. It is built using Google's [material design](https://www.google.com/design/spec/material-design/introduction.html) +guidelines, fully responsive, optimized for touch and pointer devices as well +as all sorts of screen sizes. + +![Material Screenshot](/images/screen.png) + +Material is very lightweight – it is built from scratch using Javascript and +CSS that weighs less than 30kb (minified, gzipped and excluding Google Fonts +and Analytics). Yet, it is highly customizable and degrades gracefully in older +browsers. + +## Quick start + +Install with `git`: + +```sh +git clone git@github.com:digitalcraftsman/hugo-material-docs.git themes/hugo-material-docs +``` + +## Features + +- Beautiful, readable and very user-friendly design based on Google's material + design guidelines, packed in a full responsive template with a well-defined + and [easily customizable color palette]({{< relref "getting-started/index.md#changing-the-color-palette" >}}), great typography, as well as a + beautiful search interface and footer. + +- Well-tested and optimized Javascript and CSS including a cross-browser + fixed/sticky header, a drawer that even works without Javascript using + the [checkbox hack](http://tutorialzine.com/2015/08/quick-tip-css-only-dropdowns-with-the-checkbox-hack/) with fallbacks, responsive tables that scroll when + the screen is too small and well-defined print styles. + +- Extra configuration options like a [project logo]({{< relref "getting-started/index.md#adding-a-logo" >}}), links to the authors + [GitHub and Twitter accounts]({{< relref "getting-started/index.md#adding-a-github-and-twitter-account" >}}) and display of the amount of stars the + project has on GitHub. + +- Web application capability on iOS – when the page is saved to the homescreen, + it behaves and looks like a native application. + +See the [getting started guide]({{< relref "getting-started/index.md" >}}) for instructions how to get +it up and running. + +## Acknowledgements + +Last but not least a big thank you to [Martin Donath](https://github.com/squidfunk). He created the original [Material theme](https://github.com/squidfunk/mkdocs-material) for Hugo's companion [MkDocs](http://www.mkdocs.org/). This port wouldn't be possible without him. + +Furthermore, thanks to [Steve Francia](https://gihub.com/spf13) for creating Hugo and the [awesome community](https://github.com/spf13/hugo/graphs/contributors) around the project. diff --git a/themes/hugo-material-docs/exampleSite/content/license/index.md b/themes/hugo-material-docs/exampleSite/content/license/index.md new file mode 100644 index 0000000000..2758c652c4 --- /dev/null +++ b/themes/hugo-material-docs/exampleSite/content/license/index.md @@ -0,0 +1,27 @@ +--- +date: 2016-03-09T20:10:46+01:00 +title: License +weight: 40 +--- + +Copyright (c) 2016 Digitalcraftsman
+Copyright (c) 2016 Martin Donath + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to +deal in the Software without restriction, including without limitation the +rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +sell copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +IN THE SOFTWARE. + diff --git a/themes/hugo-material-docs/exampleSite/content/roadmap/index.md b/themes/hugo-material-docs/exampleSite/content/roadmap/index.md new file mode 100644 index 0000000000..ea6f25221d --- /dev/null +++ b/themes/hugo-material-docs/exampleSite/content/roadmap/index.md @@ -0,0 +1,27 @@ +--- +date: 2016-03-09T20:08:11+01:00 +title: Roadmap +weight: 30 +--- + +Quo vadis? The port of the original [Material theme](https://github.com/squidfunk/mkdocs-material) has replicated nearly all of its features. A few are still missing but I've good news: the Hugo community is actively working on this issues. Maybe with the next release of Hugo we can abandon this list. Stay tuned. + +## Localization + +Currently, it is possible to collect all strings in a single place for easy customization. However, this only enables you to define all strings in a single language. This approach is quite limiting in terms of localization support. Therefore, I decided to wait for a native integration. This way we can avoid a second setup of all strings in your website. + +Keep an eye on [#1734](https://github.com/spf13/hugo/issues/1734). + +## Search + +Beside third-party services, some hacky workarounds and Grunt-/Gulp-based scripts that only require unnecessary dependencies, future versions of Hugo will support the generation of a content index as a core feature. + +This approach plays well with this theme since MkDocs does the same. + +Keep an eye on [#1853](https://github.com/spf13/hugo/pull/1853). + +## Contributing + +Did you found an bug or you would like to suggest a new feature? I'm open for feedback. Please open a new [issue](https://github.com/digitalcraftsman/hugo-material-docs/issues) and let me know. + +You're also welcome to contribute with [pull requests](https://github.com/digitalcraftsman/hugo-material-docs/pulls). diff --git a/themes/hugo-material-docs/exampleSite/static/.gitkeep b/themes/hugo-material-docs/exampleSite/static/.gitkeep new file mode 100644 index 0000000000..e69de29bb2 diff --git a/themes/hugo-material-docs/images/screenshot.png b/themes/hugo-material-docs/images/screenshot.png new file mode 100644 index 0000000000..97ac0628a4 Binary files /dev/null and b/themes/hugo-material-docs/images/screenshot.png differ diff --git a/themes/hugo-material-docs/images/tn.png b/themes/hugo-material-docs/images/tn.png new file mode 100644 index 0000000000..d3d374b30b Binary files /dev/null and b/themes/hugo-material-docs/images/tn.png differ diff --git a/themes/hugo-material-docs/layouts/404.html b/themes/hugo-material-docs/layouts/404.html new file mode 100644 index 0000000000..e69de29bb2 diff --git a/themes/hugo-material-docs/layouts/_default/__list.html b/themes/hugo-material-docs/layouts/_default/__list.html new file mode 100644 index 0000000000..61069f45f7 --- /dev/null +++ b/themes/hugo-material-docs/layouts/_default/__list.html @@ -0,0 +1,57 @@ +{{ partial "head" . }} + +
+
+
+ + + + + +
+ {{ partial "header" . }} +
+ +
+
+ {{ partial "drawer" . }} +
+ +
+
+

Pages in {{ .Title | singularize }}

+ + {{ range .Data.Pages }} + +

{{ .Title }}

+
+ +
+ {{ printf "%s" .Summary | markdownify }} + +
+ {{ end }} + + +
+
+ +
+
+
+
+
+
+
+
+
+ +{{ partial "footer_js" . }} diff --git a/themes/hugo-material-docs/layouts/_default/single.html b/themes/hugo-material-docs/layouts/_default/single.html new file mode 100644 index 0000000000..3ec90a15a1 --- /dev/null +++ b/themes/hugo-material-docs/layouts/_default/single.html @@ -0,0 +1,57 @@ +{{ partial "head" . }} + +{{ if (eq (trim .Site.Params.provider " " | lower) "github") | and (isset .Site.Params "repo_url") }} + {{ $repo_id := replace .Site.Params.repo_url "https://github.com/" ""}} + {{ .Scratch.Set "repo_id" $repo_id }} +{{ end }} + +
+
+
+ + + + + +
+ {{ partial "header" . }} +
+ +
+
+ {{ partial "drawer" . }} +
+ +
+
+

{{ .Title }} {{ if .IsDraft }} (Draft){{ end }}

+ + {{ .Content }} + + + +
+ {{ partial "footer" . }} +
+
+
+ +
+
+
+
+
+
+
+
+
+ +{{ partial "footer_js" . }} diff --git a/themes/hugo-material-docs/layouts/index.html b/themes/hugo-material-docs/layouts/index.html new file mode 100644 index 0000000000..9b32d9c34f --- /dev/null +++ b/themes/hugo-material-docs/layouts/index.html @@ -0,0 +1,59 @@ +{{ partial "head" . }} + +{{ if (eq (trim .Site.Params.provider " " | lower) "github") | and (isset .Site.Params "repo_url") }} + {{ $repo_id := replace .Site.Params.repo_url "https://github.com/" ""}} + {{ .Scratch.Set "repo_id" $repo_id }} +{{ end }} + +
+
+
+ + + + + +
+ {{ partial "header" . }} +
+ +
+
+ {{ partial "drawer" . }} +
+ +
+
+ {{ range where .Site.Pages "Type" "index" }} +

{{ .Title }} {{ if .IsDraft }} (Draft){{ end }}

+ + {{ .Content }} + {{ end }} + + + +
+ {{ partial "footer" . }} +
+
+
+ +
+
+
+
+
+
+
+
+
+ +{{ partial "footer_js" . }} diff --git a/themes/hugo-material-docs/layouts/partials/drawer.html b/themes/hugo-material-docs/layouts/partials/drawer.html new file mode 100644 index 0000000000..a06c24001d --- /dev/null +++ b/themes/hugo-material-docs/layouts/partials/drawer.html @@ -0,0 +1,78 @@ + diff --git a/themes/hugo-material-docs/layouts/partials/footer.html b/themes/hugo-material-docs/layouts/partials/footer.html new file mode 100644 index 0000000000..c0017542f4 --- /dev/null +++ b/themes/hugo-material-docs/layouts/partials/footer.html @@ -0,0 +1,74 @@ +{{ if .IsPage }} +{{ if .Prev | or .Next }} + +{{ end }} +{{ end }} + +{{ if .IsHome }} +{{ if gt (len .Site.Pages) 2 }} + +{{ end }} +{{ end }} diff --git a/themes/hugo-material-docs/layouts/partials/footer_js.html b/themes/hugo-material-docs/layouts/partials/footer_js.html new file mode 100644 index 0000000000..c7bce69d70 --- /dev/null +++ b/themes/hugo-material-docs/layouts/partials/footer_js.html @@ -0,0 +1,100 @@ + + + + {{ range .Site.Params.custom_js }} + + {{ end }} + + + + {{ with .Site.GoogleAnalytics }} + + {{ end }} + + + + + + + diff --git a/themes/hugo-material-docs/layouts/partials/head.html b/themes/hugo-material-docs/layouts/partials/head.html new file mode 100644 index 0000000000..70cab2a76e --- /dev/null +++ b/themes/hugo-material-docs/layouts/partials/head.html @@ -0,0 +1,79 @@ + + + + + + + + + + + + {{ .Title }}{{ if not .IsHome }} - {{ .Site.Title }}{{ end }} + {{ .Hugo.Generator }} + + {{ with .Site.Params.description }} + + {{ end }} + + {{ with .Site.Params.author }} + + {{ end }} + + + {{ with .Site.Title }}{{ end }} + {{ with .Site.Params.logo }}{{ end }} + {{ with .Site.Title }}{{ end }} + + + + + + + + + + + + + + {{/* set default values if no custom ones are defined */}} + {{ $text := or .Site.Params.font.text "Roboto" }} + {{ $code := or .Site.Params.font.code "Roboto Mono" }} + + + + {{ range .Site.Params.custom_css }} + + {{ end }} + + + {{ with .RSSLink }} + + + {{ end }} + + + diff --git a/themes/hugo-material-docs/layouts/partials/header.html b/themes/hugo-material-docs/layouts/partials/header.html new file mode 100644 index 0000000000..19bfbb4157 --- /dev/null +++ b/themes/hugo-material-docs/layouts/partials/header.html @@ -0,0 +1,45 @@ + \ No newline at end of file diff --git a/themes/hugo-material-docs/layouts/partials/nav.html b/themes/hugo-material-docs/layouts/partials/nav.html new file mode 100644 index 0000000000..bcbb340de8 --- /dev/null +++ b/themes/hugo-material-docs/layouts/partials/nav.html @@ -0,0 +1,19 @@ +{{ $currentNode := . }} + +{{ range .Site.Menus.main.ByWeight }} + +{{ $.Scratch.Set "currentMenuEntry" . }} +
  • + {{ if .HasChildren }} + {{ .Name | title }} +
      + {{ range .Children }} + {{ $.Scratch.Set "currentMenuEntry" . }} + {{ partial "nav_link" $currentNode }} + {{ end }} +
    + {{ else }} + {{ partial "nav_link" $currentNode }} + {{ end }} +
  • +{{ end }} diff --git a/themes/hugo-material-docs/layouts/partials/nav_link.html b/themes/hugo-material-docs/layouts/partials/nav_link.html new file mode 100644 index 0000000000..1ff5b9984c --- /dev/null +++ b/themes/hugo-material-docs/layouts/partials/nav_link.html @@ -0,0 +1,13 @@ +{{ $currentMenuEntry := .Scratch.Get "currentMenuEntry" }} +{{ $isCurrent := eq .Permalink ($currentMenuEntry.URL | absURL | printf "%s") }} + + + + {{ $currentMenuEntry.Pre }} + {{ $currentMenuEntry.Name }} + + +{{ if $isCurrent }} +
      +
    +{{ end }} diff --git a/layouts/shortcodes/check.html b/themes/hugo-material-docs/layouts/shortcodes/check.html similarity index 100% rename from layouts/shortcodes/check.html rename to themes/hugo-material-docs/layouts/shortcodes/check.html diff --git a/layouts/shortcodes/cross.html b/themes/hugo-material-docs/layouts/shortcodes/cross.html similarity index 100% rename from layouts/shortcodes/cross.html rename to themes/hugo-material-docs/layouts/shortcodes/cross.html diff --git a/layouts/shortcodes/note.html b/themes/hugo-material-docs/layouts/shortcodes/note.html similarity index 100% rename from layouts/shortcodes/note.html rename to themes/hugo-material-docs/layouts/shortcodes/note.html diff --git a/layouts/shortcodes/warning.html b/themes/hugo-material-docs/layouts/shortcodes/warning.html similarity index 100% rename from layouts/shortcodes/warning.html rename to themes/hugo-material-docs/layouts/shortcodes/warning.html diff --git a/themes/hugo-material-docs/static/fonts/icon.eot b/themes/hugo-material-docs/static/fonts/icon.eot new file mode 100755 index 0000000000..8f81638c2d Binary files /dev/null and b/themes/hugo-material-docs/static/fonts/icon.eot differ diff --git a/themes/hugo-material-docs/static/fonts/icon.svg b/themes/hugo-material-docs/static/fonts/icon.svg new file mode 100755 index 0000000000..86250e7b40 --- /dev/null +++ b/themes/hugo-material-docs/static/fonts/icon.svg @@ -0,0 +1,22 @@ + + + +Generated by IcoMoon + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/themes/hugo-material-docs/static/fonts/icon.ttf b/themes/hugo-material-docs/static/fonts/icon.ttf new file mode 100755 index 0000000000..b5ab5601be Binary files /dev/null and b/themes/hugo-material-docs/static/fonts/icon.ttf differ diff --git a/themes/hugo-material-docs/static/fonts/icon.woff b/themes/hugo-material-docs/static/fonts/icon.woff new file mode 100755 index 0000000000..ed0f20d5b8 Binary files /dev/null and b/themes/hugo-material-docs/static/fonts/icon.woff differ diff --git a/themes/hugo-material-docs/static/images/colors.png b/themes/hugo-material-docs/static/images/colors.png new file mode 100644 index 0000000000..45e4b60415 Binary files /dev/null and b/themes/hugo-material-docs/static/images/colors.png differ diff --git a/static/images/emoji-check-mark.png b/themes/hugo-material-docs/static/images/emoji-check-mark.png similarity index 100% rename from static/images/emoji-check-mark.png rename to themes/hugo-material-docs/static/images/emoji-check-mark.png diff --git a/static/images/emoji-cross-mark.png b/themes/hugo-material-docs/static/images/emoji-cross-mark.png similarity index 100% rename from static/images/emoji-cross-mark.png rename to themes/hugo-material-docs/static/images/emoji-cross-mark.png diff --git a/themes/hugo-material-docs/static/images/favicon.ico b/themes/hugo-material-docs/static/images/favicon.ico new file mode 100644 index 0000000000..e85006a3ce Binary files /dev/null and b/themes/hugo-material-docs/static/images/favicon.ico differ diff --git a/themes/hugo-material-docs/static/images/logo.png b/themes/hugo-material-docs/static/images/logo.png new file mode 100644 index 0000000000..573aca1380 Binary files /dev/null and b/themes/hugo-material-docs/static/images/logo.png differ diff --git a/themes/hugo-material-docs/static/images/screen.png b/themes/hugo-material-docs/static/images/screen.png new file mode 100644 index 0000000000..cb10504b4a Binary files /dev/null and b/themes/hugo-material-docs/static/images/screen.png differ diff --git a/themes/hugo-material-docs/static/javascripts/application.js b/themes/hugo-material-docs/static/javascripts/application.js new file mode 100644 index 0000000000..1199f2e1dc --- /dev/null +++ b/themes/hugo-material-docs/static/javascripts/application.js @@ -0,0 +1 @@ +function pegasus(t,e){return e=new XMLHttpRequest,e.open("GET",t),t=[],e.onreadystatechange=e.then=function(n,o,i,r){if(n&&n.call&&(t=[,n,o]),4==e.readyState&&(i=t[0|e.status/200])){try{r=JSON.parse(e.responseText)}catch(s){r=null}i(r,e)}},e.send(),e}if("document"in self&&("classList"in document.createElement("_")?!function(){"use strict";var t=document.createElement("_");if(t.classList.add("c1","c2"),!t.classList.contains("c2")){var e=function(t){var e=DOMTokenList.prototype[t];DOMTokenList.prototype[t]=function(t){var n,o=arguments.length;for(n=0;o>n;n++)t=arguments[n],e.call(this,t)}};e("add"),e("remove")}if(t.classList.toggle("c3",!1),t.classList.contains("c3")){var n=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,e){return 1 in arguments&&!this.contains(t)==!e?e:n.call(this,t)}}t=null}():!function(t){"use strict";if("Element"in t){var e="classList",n="prototype",o=t.Element[n],i=Object,r=String[n].trim||function(){return this.replace(/^\s+|\s+$/g,"")},s=Array[n].indexOf||function(t){for(var e=0,n=this.length;n>e;e++)if(e in this&&this[e]===t)return e;return-1},a=function(t,e){this.name=t,this.code=DOMException[t],this.message=e},c=function(t,e){if(""===e)throw new a("SYNTAX_ERR","An invalid or illegal string was specified");if(/\s/.test(e))throw new a("INVALID_CHARACTER_ERR","String contains an invalid character");return s.call(t,e)},l=function(t){for(var e=r.call(t.getAttribute("class")||""),n=e?e.split(/\s+/):[],o=0,i=n.length;i>o;o++)this.push(n[o]);this._updateClassName=function(){t.setAttribute("class",this.toString())}},u=l[n]=[],d=function(){return new l(this)};if(a[n]=Error[n],u.item=function(t){return this[t]||null},u.contains=function(t){return t+="",-1!==c(this,t)},u.add=function(){var t,e=arguments,n=0,o=e.length,i=!1;do t=e[n]+"",-1===c(this,t)&&(this.push(t),i=!0);while(++nc;c++)a[s[c]]=i(a[s[c]],a);n&&(e.addEventListener("mouseover",this.onMouse,!0),e.addEventListener("mousedown",this.onMouse,!0),e.addEventListener("mouseup",this.onMouse,!0)),e.addEventListener("click",this.onClick,!0),e.addEventListener("touchstart",this.onTouchStart,!1),e.addEventListener("touchmove",this.onTouchMove,!1),e.addEventListener("touchend",this.onTouchEnd,!1),e.addEventListener("touchcancel",this.onTouchCancel,!1),Event.prototype.stopImmediatePropagation||(e.removeEventListener=function(t,n,o){var i=Node.prototype.removeEventListener;"click"===t?i.call(e,t,n.hijacked||n,o):i.call(e,t,n,o)},e.addEventListener=function(t,n,o){var i=Node.prototype.addEventListener;"click"===t?i.call(e,t,n.hijacked||(n.hijacked=function(t){t.propagationStopped||n(t)}),o):i.call(e,t,n,o)}),"function"==typeof e.onclick&&(r=e.onclick,e.addEventListener("click",function(t){r(t)},!1),e.onclick=null)}}var e=navigator.userAgent.indexOf("Windows Phone")>=0,n=navigator.userAgent.indexOf("Android")>0&&!e,o=/iP(ad|hone|od)/.test(navigator.userAgent)&&!e,i=o&&/OS 4_\d(_\d)?/.test(navigator.userAgent),r=o&&/OS [6-7]_\d/.test(navigator.userAgent),s=navigator.userAgent.indexOf("BB10")>0;t.prototype.needsClick=function(t){switch(t.nodeName.toLowerCase()){case"button":case"select":case"textarea":if(t.disabled)return!0;break;case"input":if(o&&"file"===t.type||t.disabled)return!0;break;case"label":case"iframe":case"video":return!0}return/\bneedsclick\b/.test(t.className)},t.prototype.needsFocus=function(t){switch(t.nodeName.toLowerCase()){case"textarea":return!0;case"select":return!n;case"input":switch(t.type){case"button":case"checkbox":case"file":case"image":case"radio":case"submit":return!1}return!t.disabled&&!t.readOnly;default:return/\bneedsfocus\b/.test(t.className)}},t.prototype.sendClick=function(t,e){var n,o;document.activeElement&&document.activeElement!==t&&document.activeElement.blur(),o=e.changedTouches[0],n=document.createEvent("MouseEvents"),n.initMouseEvent(this.determineEventType(t),!0,!0,window,1,o.screenX,o.screenY,o.clientX,o.clientY,!1,!1,!1,!1,0,null),n.forwardedTouchEvent=!0,t.dispatchEvent(n)},t.prototype.determineEventType=function(t){return n&&"select"===t.tagName.toLowerCase()?"mousedown":"click"},t.prototype.focus=function(t){var e;o&&t.setSelectionRange&&0!==t.type.indexOf("date")&&"time"!==t.type&&"month"!==t.type?(e=t.value.length,t.setSelectionRange(e,e)):t.focus()},t.prototype.updateScrollParent=function(t){var e,n;if(e=t.fastClickScrollParent,!e||!e.contains(t)){n=t;do{if(n.scrollHeight>n.offsetHeight){e=n,t.fastClickScrollParent=n;break}n=n.parentElement}while(n)}e&&(e.fastClickLastScrollTop=e.scrollTop)},t.prototype.getTargetElementFromEventTarget=function(t){return t.nodeType===Node.TEXT_NODE?t.parentNode:t},t.prototype.onTouchStart=function(t){var e,n,r;if(t.targetTouches.length>1)return!0;if(e=this.getTargetElementFromEventTarget(t.target),n=t.targetTouches[0],o){if(r=window.getSelection(),r.rangeCount&&!r.isCollapsed)return!0;if(!i){if(n.identifier&&n.identifier===this.lastTouchIdentifier)return t.preventDefault(),!1;this.lastTouchIdentifier=n.identifier,this.updateScrollParent(e)}}return this.trackingClick=!0,this.trackingClickStart=t.timeStamp,this.targetElement=e,this.touchStartX=n.pageX,this.touchStartY=n.pageY,t.timeStamp-this.lastClickTimen||Math.abs(e.pageY-this.touchStartY)>n?!0:!1},t.prototype.onTouchMove=function(t){return this.trackingClick?((this.targetElement!==this.getTargetElementFromEventTarget(t.target)||this.touchHasMoved(t))&&(this.trackingClick=!1,this.targetElement=null),!0):!0},t.prototype.findControl=function(t){return void 0!==t.control?t.control:t.htmlFor?document.getElementById(t.htmlFor):t.querySelector("button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea")},t.prototype.onTouchEnd=function(t){var e,s,a,c,l,u=this.targetElement;if(!this.trackingClick)return!0;if(t.timeStamp-this.lastClickTimethis.tapTimeout)return!0;if(this.cancelNextClick=!1,this.lastClickTime=t.timeStamp,s=this.trackingClickStart,this.trackingClick=!1,this.trackingClickStart=0,r&&(l=t.changedTouches[0],u=document.elementFromPoint(l.pageX-window.pageXOffset,l.pageY-window.pageYOffset)||u,u.fastClickScrollParent=this.targetElement.fastClickScrollParent),a=u.tagName.toLowerCase(),"label"===a){if(e=this.findControl(u)){if(this.focus(u),n)return!1;u=e}}else if(this.needsFocus(u))return t.timeStamp-s>100||o&&window.top!==window&&"input"===a?(this.targetElement=null,!1):(this.focus(u),this.sendClick(u,t),o&&"select"===a||(this.targetElement=null,t.preventDefault()),!1);return o&&!i&&(c=u.fastClickScrollParent,c&&c.fastClickLastScrollTop!==c.scrollTop)?!0:(this.needsClick(u)||(t.preventDefault(),this.sendClick(u,t)),!1)},t.prototype.onTouchCancel=function(){this.trackingClick=!1,this.targetElement=null},t.prototype.onMouse=function(t){return this.targetElement?t.forwardedTouchEvent?!0:t.cancelable&&(!this.needsClick(this.targetElement)||this.cancelNextClick)?(t.stopImmediatePropagation?t.stopImmediatePropagation():t.propagationStopped=!0,t.stopPropagation(),t.preventDefault(),!1):!0:!0},t.prototype.onClick=function(t){var e;return this.trackingClick?(this.targetElement=null,this.trackingClick=!1,!0):"submit"===t.target.type&&0===t.detail?!0:(e=this.onMouse(t),e||(this.targetElement=null),e)},t.prototype.destroy=function(){var t=this.layer;n&&(t.removeEventListener("mouseover",this.onMouse,!0),t.removeEventListener("mousedown",this.onMouse,!0),t.removeEventListener("mouseup",this.onMouse,!0)),t.removeEventListener("click",this.onClick,!0),t.removeEventListener("touchstart",this.onTouchStart,!1),t.removeEventListener("touchmove",this.onTouchMove,!1),t.removeEventListener("touchend",this.onTouchEnd,!1),t.removeEventListener("touchcancel",this.onTouchCancel,!1)},t.notNeeded=function(t){var e,o,i,r;if("undefined"==typeof window.ontouchstart)return!0;if(o=+(/Chrome\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1]){if(!n)return!0;if(e=document.querySelector("meta[name=viewport]")){if(-1!==e.content.indexOf("user-scalable=no"))return!0;if(o>31&&document.documentElement.scrollWidth<=window.outerWidth)return!0}}if(s&&(i=navigator.userAgent.match(/Version\/([0-9]*)\.([0-9]*)/),i[1]>=10&&i[2]>=3&&(e=document.querySelector("meta[name=viewport]")))){if(-1!==e.content.indexOf("user-scalable=no"))return!0;if(document.documentElement.scrollWidth<=window.outerWidth)return!0}return"none"===t.style.msTouchAction||"manipulation"===t.style.touchAction?!0:(r=+(/Firefox\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1],r>=27&&(e=document.querySelector("meta[name=viewport]"),e&&(-1!==e.content.indexOf("user-scalable=no")||document.documentElement.scrollWidth<=window.outerWidth))?!0:"none"===t.style.touchAction||"manipulation"===t.style.touchAction?!0:!1)},t.attach=function(e,n){return new t(e,n)},"function"==typeof define&&"object"==typeof define.amd&&define.amd?define(function(){return t}):"undefined"!=typeof module&&module.exports?(module.exports=t.attach,module.exports.FastClick=t):window.FastClick=t}(),function(){var t=function(e){var n=new t.Index;return n.pipeline.add(t.trimmer,t.stopWordFilter,t.stemmer),e&&e.call(n,n),n};t.version="0.6.0",t.utils={},t.utils.warn=function(t){return function(e){t.console&&console.warn&&console.warn(e)}}(this),t.utils.asString=function(t){return void 0===t||null===t?"":t.toString()},t.EventEmitter=function(){this.events={}},t.EventEmitter.prototype.addListener=function(){var t=Array.prototype.slice.call(arguments),e=t.pop(),n=t;if("function"!=typeof e)throw new TypeError("last argument must be a function");n.forEach(function(t){this.hasHandler(t)||(this.events[t]=[]),this.events[t].push(e)},this)},t.EventEmitter.prototype.removeListener=function(t,e){if(this.hasHandler(t)){var n=this.events[t].indexOf(e);this.events[t].splice(n,1),this.events[t].length||delete this.events[t]}},t.EventEmitter.prototype.emit=function(t){if(this.hasHandler(t)){var e=Array.prototype.slice.call(arguments,1);this.events[t].forEach(function(t){t.apply(void 0,e)})}},t.EventEmitter.prototype.hasHandler=function(t){return t in this.events},t.tokenizer=function(e){return arguments.length&&null!=e&&void 0!=e?Array.isArray(e)?e.map(function(e){return t.utils.asString(e).toLowerCase()}):e.toString().trim().toLowerCase().split(t.tokenizer.seperator):[]},t.tokenizer.seperator=/[\s\-]+/,t.Pipeline=function(){this._stack=[]},t.Pipeline.registeredFunctions={},t.Pipeline.registerFunction=function(e,n){n in this.registeredFunctions&&t.utils.warn("Overwriting existing registered function: "+n),e.label=n,t.Pipeline.registeredFunctions[e.label]=e},t.Pipeline.warnIfFunctionNotRegistered=function(e){var n=e.label&&e.label in this.registeredFunctions;n||t.utils.warn("Function is not registered with pipeline. This may cause problems when serialising the index.\n",e)},t.Pipeline.load=function(e){var n=new t.Pipeline;return e.forEach(function(e){var o=t.Pipeline.registeredFunctions[e];if(!o)throw new Error("Cannot load un-registered function: "+e);n.add(o)}),n},t.Pipeline.prototype.add=function(){var e=Array.prototype.slice.call(arguments);e.forEach(function(e){t.Pipeline.warnIfFunctionNotRegistered(e),this._stack.push(e)},this)},t.Pipeline.prototype.after=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var o=this._stack.indexOf(e);if(-1==o)throw new Error("Cannot find existingFn");o+=1,this._stack.splice(o,0,n)},t.Pipeline.prototype.before=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var o=this._stack.indexOf(e);if(-1==o)throw new Error("Cannot find existingFn");this._stack.splice(o,0,n)},t.Pipeline.prototype.remove=function(t){var e=this._stack.indexOf(t);-1!=e&&this._stack.splice(e,1)},t.Pipeline.prototype.run=function(t){for(var e=[],n=t.length,o=this._stack.length,i=0;n>i;i++){for(var r=t[i],s=0;o>s&&(r=this._stack[s](r,i,t),void 0!==r&&""!==r);s++);void 0!==r&&""!==r&&e.push(r)}return e},t.Pipeline.prototype.reset=function(){this._stack=[]},t.Pipeline.prototype.toJSON=function(){return this._stack.map(function(e){return t.Pipeline.warnIfFunctionNotRegistered(e),e.label})},t.Vector=function(){this._magnitude=null,this.list=void 0,this.length=0},t.Vector.Node=function(t,e,n){this.idx=t,this.val=e,this.next=n},t.Vector.prototype.insert=function(e,n){this._magnitude=void 0;var o=this.list;if(!o)return this.list=new t.Vector.Node(e,n,o),this.length++;if(en.idx?n=n.next:(o+=e.val*n.val,e=e.next,n=n.next);return o},t.Vector.prototype.similarity=function(t){return this.dot(t)/(this.magnitude()*t.magnitude())},t.SortedSet=function(){this.length=0,this.elements=[]},t.SortedSet.load=function(t){var e=new this;return e.elements=t,e.length=t.length,e},t.SortedSet.prototype.add=function(){var t,e;for(t=0;t1;){if(r===t)return i;t>r&&(e=i),r>t&&(n=i),o=n-e,i=e+Math.floor(o/2),r=this.elements[i]}return r===t?i:-1},t.SortedSet.prototype.locationFor=function(t){for(var e=0,n=this.elements.length,o=n-e,i=e+Math.floor(o/2),r=this.elements[i];o>1;)t>r&&(e=i),r>t&&(n=i),o=n-e,i=e+Math.floor(o/2),r=this.elements[i];return r>t?i:t>r?i+1:void 0},t.SortedSet.prototype.intersect=function(e){for(var n=new t.SortedSet,o=0,i=0,r=this.length,s=e.length,a=this.elements,c=e.elements;;){if(o>r-1||i>s-1)break;a[o]!==c[i]?a[o]c[i]&&i++:(n.add(a[o]),o++,i++)}return n},t.SortedSet.prototype.clone=function(){var e=new t.SortedSet;return e.elements=this.toArray(),e.length=e.elements.length,e},t.SortedSet.prototype.union=function(t){var e,n,o;return this.length>=t.length?(e=this,n=t):(e=t,n=this),o=e.clone(),o.add.apply(o,n.toArray()),o},t.SortedSet.prototype.toJSON=function(){return this.toArray()},t.Index=function(){this._fields=[],this._ref="id",this.pipeline=new t.Pipeline,this.documentStore=new t.Store,this.tokenStore=new t.TokenStore,this.corpusTokens=new t.SortedSet,this.eventEmitter=new t.EventEmitter,this._idfCache={},this.on("add","remove","update",function(){this._idfCache={}}.bind(this))},t.Index.prototype.on=function(){var t=Array.prototype.slice.call(arguments);return this.eventEmitter.addListener.apply(this.eventEmitter,t)},t.Index.prototype.off=function(t,e){return this.eventEmitter.removeListener(t,e)},t.Index.load=function(e){e.version!==t.version&&t.utils.warn("version mismatch: current "+t.version+" importing "+e.version);var n=new this;return n._fields=e.fields,n._ref=e.ref,n.documentStore=t.Store.load(e.documentStore),n.tokenStore=t.TokenStore.load(e.tokenStore),n.corpusTokens=t.SortedSet.load(e.corpusTokens),n.pipeline=t.Pipeline.load(e.pipeline),n},t.Index.prototype.field=function(t,e){var e=e||{},n={name:t,boost:e.boost||1};return this._fields.push(n),this},t.Index.prototype.ref=function(t){return this._ref=t,this},t.Index.prototype.add=function(e,n){var o={},i=new t.SortedSet,r=e[this._ref],n=void 0===n?!0:n;this._fields.forEach(function(n){var r=this.pipeline.run(t.tokenizer(e[n.name]));o[n.name]=r,t.SortedSet.prototype.add.apply(i,r)},this),this.documentStore.set(r,i),t.SortedSet.prototype.add.apply(this.corpusTokens,i.toArray());for(var s=0;s0&&(o=1+Math.log(this.documentStore.length/n)),this._idfCache[e]=o},t.Index.prototype.search=function(e){var n=this.pipeline.run(t.tokenizer(e)),o=new t.Vector,i=[],r=this._fields.reduce(function(t,e){return t+e.boost},0),s=n.some(function(t){return this.tokenStore.has(t)},this);if(!s)return[];n.forEach(function(e,n,s){var a=1/s.length*this._fields.length*r,c=this,l=this.tokenStore.expand(e).reduce(function(n,i){var r=c.corpusTokens.indexOf(i),s=c.idf(i),l=1,u=new t.SortedSet;if(i!==e){var d=Math.max(3,i.length-e.length);l=1/Math.log(d)}r>-1&&o.insert(r,a*s*l);for(var h=c.tokenStore.get(i),f=Object.keys(h),p=f.length,m=0;p>m;m++)u.add(h[f[m]].ref);return n.union(u)},new t.SortedSet);i.push(l)},this);var a=i.reduce(function(t,e){return t.intersect(e)});return a.map(function(t){return{ref:t,score:o.similarity(this.documentVector(t))}},this).sort(function(t,e){return e.score-t.score})},t.Index.prototype.documentVector=function(e){for(var n=this.documentStore.get(e),o=n.length,i=new t.Vector,r=0;o>r;r++){var s=n.elements[r],a=this.tokenStore.get(s)[e].tf,c=this.idf(s);i.insert(this.corpusTokens.indexOf(s),a*c)}return i},t.Index.prototype.toJSON=function(){return{version:t.version,fields:this._fields,ref:this._ref,documentStore:this.documentStore.toJSON(),tokenStore:this.tokenStore.toJSON(),corpusTokens:this.corpusTokens.toJSON(),pipeline:this.pipeline.toJSON()}},t.Index.prototype.use=function(t){var e=Array.prototype.slice.call(arguments,1);e.unshift(this),t.apply(this,e)},t.Store=function(){this.store={},this.length=0},t.Store.load=function(e){var n=new this;return n.length=e.length,n.store=Object.keys(e.store).reduce(function(n,o){return n[o]=t.SortedSet.load(e.store[o]),n},{}),n},t.Store.prototype.set=function(t,e){this.has(t)||this.length++,this.store[t]=e},t.Store.prototype.get=function(t){return this.store[t]},t.Store.prototype.has=function(t){return t in this.store},t.Store.prototype.remove=function(t){this.has(t)&&(delete this.store[t],this.length--)},t.Store.prototype.toJSON=function(){return{store:this.store,length:this.length}},t.stemmer=function(){var t={ational:"ate",tional:"tion",enci:"ence",anci:"ance",izer:"ize",bli:"ble",alli:"al",entli:"ent",eli:"e",ousli:"ous",ization:"ize",ation:"ate",ator:"ate",alism:"al",iveness:"ive",fulness:"ful",ousness:"ous",aliti:"al",iviti:"ive",biliti:"ble",logi:"log"},e={icate:"ic",ative:"",alize:"al",iciti:"ic",ical:"ic",ful:"",ness:""},n="[^aeiou]",o="[aeiouy]",i=n+"[^aeiouy]*",r=o+"[aeiou]*",s="^("+i+")?"+r+i,a="^("+i+")?"+r+i+"("+r+")?$",c="^("+i+")?"+r+i+r+i,l="^("+i+")?"+o,u=new RegExp(s),d=new RegExp(c),h=new RegExp(a),f=new RegExp(l),p=/^(.+?)(ss|i)es$/,m=/^(.+?)([^s])s$/,v=/^(.+?)eed$/,g=/^(.+?)(ed|ing)$/,y=/.$/,w=/(at|bl|iz)$/,S=new RegExp("([^aeiouylsz])\\1$"),k=new RegExp("^"+i+o+"[^aeiouwxy]$"),E=/^(.+?[^aeiou])y$/,x=/^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/,b=/^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/,T=/^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/,C=/^(.+?)(s|t)(ion)$/,L=/^(.+?)e$/,_=/ll$/,A=new RegExp("^"+i+o+"[^aeiouwxy]$"),O=function(n){var o,i,r,s,a,c,l;if(n.length<3)return n;if(r=n.substr(0,1),"y"==r&&(n=r.toUpperCase()+n.substr(1)),s=p,a=m,s.test(n)?n=n.replace(s,"$1$2"):a.test(n)&&(n=n.replace(a,"$1$2")),s=v,a=g,s.test(n)){var O=s.exec(n);s=u,s.test(O[1])&&(s=y,n=n.replace(s,""))}else if(a.test(n)){var O=a.exec(n);o=O[1],a=f,a.test(o)&&(n=o,a=w,c=S,l=k,a.test(n)?n+="e":c.test(n)?(s=y,n=n.replace(s,"")):l.test(n)&&(n+="e"))}if(s=E,s.test(n)){var O=s.exec(n);o=O[1],n=o+"i"}if(s=x,s.test(n)){var O=s.exec(n);o=O[1],i=O[2],s=u,s.test(o)&&(n=o+t[i])}if(s=b,s.test(n)){var O=s.exec(n);o=O[1],i=O[2],s=u,s.test(o)&&(n=o+e[i])}if(s=T,a=C,s.test(n)){var O=s.exec(n);o=O[1],s=d,s.test(o)&&(n=o)}else if(a.test(n)){var O=a.exec(n);o=O[1]+O[2],a=d,a.test(o)&&(n=o)}if(s=L,s.test(n)){var O=s.exec(n);o=O[1],s=d,a=h,c=A,(s.test(o)||a.test(o)&&!c.test(o))&&(n=o)}return s=_,a=d,s.test(n)&&a.test(n)&&(s=y,n=n.replace(s,"")),"y"==r&&(n=r.toLowerCase()+n.substr(1)),n};return O}(),t.Pipeline.registerFunction(t.stemmer,"stemmer"),t.generateStopWordFilter=function(t){var e=t.reduce(function(t,e){return t[e]=e,t},{});return function(t){return t&&e[t]!==t?t:void 0}},t.stopWordFilter=t.generateStopWordFilter(["a","able","about","across","after","all","almost","also","am","among","an","and","any","are","as","at","be","because","been","but","by","can","cannot","could","dear","did","do","does","either","else","ever","every","for","from","get","got","had","has","have","he","her","hers","him","his","how","however","i","if","in","into","is","it","its","just","least","let","like","likely","may","me","might","most","must","my","neither","no","nor","not","of","off","often","on","only","or","other","our","own","rather","said","say","says","she","should","since","so","some","than","that","the","their","them","then","there","these","they","this","tis","to","too","twas","us","wants","was","we","were","what","when","where","which","while","who","whom","why","will","with","would","yet","you","your"]),t.Pipeline.registerFunction(t.stopWordFilter,"stopWordFilter"),t.trimmer=function(t){return t.replace(/^\W+/,"").replace(/\W+$/,"")},t.Pipeline.registerFunction(t.trimmer,"trimmer"),t.TokenStore=function(){this.root={docs:{}},this.length=0},t.TokenStore.load=function(t){var e=new this;return e.root=t.root,e.length=t.length,e},t.TokenStore.prototype.add=function(t,e,n){var n=n||this.root,o=t.charAt(0),i=t.slice(1);return o in n||(n[o]={docs:{}}),0===i.length?(n[o].docs[e.ref]=e,void(this.length+=1)):this.add(i,e,n[o])},t.TokenStore.prototype.has=function(t){if(!t)return!1;for(var e=this.root,n=0;nt){for(;" "!=this[t]&&--t>0;);return this.substring(0,t)+"…"}return this},HTMLElement.prototype.wrap=function(t){t.length||(t=[t]);for(var e=t.length-1;e>=0;e--){var n=e>0?this.cloneNode(!0):this,o=t[e],i=o.parentNode,r=o.nextSibling;n.appendChild(o),r?i.insertBefore(n,r):i.appendChild(n)}},document.addEventListener("DOMContentLoaded",function(){"use strict";Modernizr.addTest("ios",function(){return!!navigator.userAgent.match(/(iPad|iPhone|iPod)/g)}),Modernizr.addTest("standalone",function(){return!!navigator.standalone}),FastClick.attach(document.body);var t=document.getElementById("toggle-search"),e=(document.getElementById("reset-search"),document.querySelector(".drawer")),n=document.querySelectorAll(".anchor"),o=document.querySelector(".search .field"),i=document.querySelector(".query"),r=document.querySelector(".results .meta");Array.prototype.forEach.call(n,function(t){t.querySelector("a").addEventListener("click",function(){document.getElementById("toggle-drawer").checked=!1,document.body.classList.remove("toggle-drawer")})});var s=window.pageYOffset,a=function(){var t=window.pageYOffset+window.innerHeight,n=Math.max(0,window.innerHeight-e.offsetHeight);t>document.body.clientHeight-(96-n)?"absolute"!=e.style.position&&(e.style.position="absolute",e.style.top=null,e.style.bottom=0):e.offsetHeighte.offsetTop+e.offsetHeight?(e.style.position="fixed",e.style.top=null,e.style.bottom="-96px"):window.pageYOffsets?e.style.top&&(e.style.position="absolute",e.style.top=Math.max(0,s)+"px",e.style.bottom=null):e.style.bottom&&(e.style.position="absolute",e.style.top=t-e.offsetHeight+"px",e.style.bottom=null),s=Math.max(0,window.pageYOffset)},c=function(){var t=document.querySelector(".main");window.removeEventListener("scroll",a),matchMedia("only screen and (max-width: 959px)").matches?(e.style.position=null,e.style.top=null,e.style.bottom=null):e.offsetHeight+96o;o++)t1e4?n=(n/1e3).toFixed(0)+"k":n>1e3&&(n=(n/1e3).toFixed(1)+"k");var o=document.querySelector(".repo-stars .count");o.innerHTML=n},function(t,e){console.error(t,e.status)})}),"standalone"in window.navigator&&window.navigator.standalone){var node,remotes=!1;document.addEventListener("click",function(t){for(node=t.target;"A"!==node.nodeName&&"HTML"!==node.nodeName;)node=node.parentNode;"href"in node&&-1!==node.href.indexOf("http")&&(-1!==node.href.indexOf(document.location.host)||remotes)&&(t.preventDefault(),document.location.href=node.href)},!1)} \ No newline at end of file diff --git a/static/javascripts/modernizr.js b/themes/hugo-material-docs/static/javascripts/modernizr.js similarity index 99% rename from static/javascripts/modernizr.js rename to themes/hugo-material-docs/static/javascripts/modernizr.js index 87e39116aa..e82c909885 100644 --- a/static/javascripts/modernizr.js +++ b/themes/hugo-material-docs/static/javascripts/modernizr.js @@ -1 +1 @@ -!function(e,t,n){function r(e,t){return typeof e===t}function i(){var e,t,n,i,o,a,s;for(var l in x)if(x.hasOwnProperty(l)){if(e=[],t=x[l],t.name&&(e.push(t.name.toLowerCase()),t.options&&t.options.aliases&&t.options.aliases.length))for(n=0;nf;f++)if(h=e[f],g=_.style[h],l(h,"-")&&(h=m(h)),_.style[h]!==n){if(o||r(i,"undefined"))return a(),"pfx"==t?h:!0;try{_.style[h]=i}catch(y){}if(_.style[h]!=g)return a(),"pfx"==t?h:!0}return a(),!1}function g(e,t,n){var i;for(var o in e)if(e[o]in t)return n===!1?e[o]:(i=t[e[o]],r(i,"function")?s(i,n||t):i);return!1}function v(e,t,n,i,o){var a=e.charAt(0).toUpperCase()+e.slice(1),s=(e+" "+P.join(a+" ")+a).split(" ");return r(t,"string")||r(t,"undefined")?h(s,t,i,o):(s=(e+" "+A.join(a+" ")+a).split(" "),g(s,t,n))}function y(e,t,r){return v(e,n,n,t,r)}var x=[],E={_version:"3.3.1",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(e,t){var n=this;setTimeout(function(){t(n[e])},0)},addTest:function(e,t,n){x.push({name:e,fn:t,options:n})},addAsyncTest:function(e){x.push({name:null,fn:e})}},S=function(){};S.prototype=E,S=new S;var b,w=[],C=t.documentElement,T="svg"===C.nodeName.toLowerCase();!function(){var e={}.hasOwnProperty;b=r(e,"undefined")||r(e.call,"undefined")?function(e,t){return t in e&&r(e.constructor.prototype[t],"undefined")}:function(t,n){return e.call(t,n)}}(),E._l={},E.on=function(e,t){this._l[e]||(this._l[e]=[]),this._l[e].push(t),S.hasOwnProperty(e)&&setTimeout(function(){S._trigger(e,S[e])},0)},E._trigger=function(e,t){if(this._l[e]){var n=this._l[e];setTimeout(function(){var e,r;for(e=0;e",r.insertBefore(n.lastChild,r.firstChild)}function r(){var e=C.elements;return"string"==typeof e?e.split(" "):e}function i(e,t){var n=C.elements;"string"!=typeof n&&(n=n.join(" ")),"string"!=typeof e&&(e=e.join(" ")),C.elements=n+" "+e,u(t)}function o(e){var t=w[e[S]];return t||(t={},b++,e[S]=b,w[b]=t),t}function a(e,n,r){if(n||(n=t),g)return n.createElement(e);r||(r=o(n));var i;return i=r.cache[e]?r.cache[e].cloneNode():E.test(e)?(r.cache[e]=r.createElem(e)).cloneNode():r.createElem(e),!i.canHaveChildren||x.test(e)||i.tagUrn?i:r.frag.appendChild(i)}function s(e,n){if(e||(e=t),g)return e.createDocumentFragment();n=n||o(e);for(var i=n.frag.cloneNode(),a=0,s=r(),l=s.length;l>a;a++)i.createElement(s[a]);return i}function l(e,t){t.cache||(t.cache={},t.createElem=e.createElement,t.createFrag=e.createDocumentFragment,t.frag=t.createFrag()),e.createElement=function(n){return C.shivMethods?a(n,e,t):t.createElem(n)},e.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+r().join().replace(/[\w\-:]+/g,function(e){return t.createElem(e),t.frag.createElement(e),'c("'+e+'")'})+");return n}")(C,t.frag)}function u(e){e||(e=t);var r=o(e);return!C.shivCSS||h||r.hasCSS||(r.hasCSS=!!n(e,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),g||l(e,r),e}function c(e){for(var t,n=e.getElementsByTagName("*"),i=n.length,o=RegExp("^(?:"+r().join("|")+")$","i"),a=[];i--;)t=n[i],o.test(t.nodeName)&&a.push(t.applyElement(f(t)));return a}function f(e){for(var t,n=e.attributes,r=n.length,i=e.ownerDocument.createElement(N+":"+e.nodeName);r--;)t=n[r],t.specified&&i.setAttribute(t.nodeName,t.nodeValue);return i.style.cssText=e.style.cssText,i}function d(e){for(var t,n=e.split("{"),i=n.length,o=RegExp("(^|[\\s,>+~])("+r().join("|")+")(?=[[\\s,>+~#.:]|$)","gi"),a="$1"+N+"\\:$2";i--;)t=n[i]=n[i].split("}"),t[t.length-1]=t[t.length-1].replace(o,a),n[i]=t.join("}");return n.join("{")}function p(e){for(var t=e.length;t--;)e[t].removeNode()}function m(e){function t(){clearTimeout(a._removeSheetTimer),r&&r.removeNode(!0),r=null}var r,i,a=o(e),s=e.namespaces,l=e.parentWindow;return!_||e.printShived?e:("undefined"==typeof s[N]&&s.add(N),l.attachEvent("onbeforeprint",function(){t();for(var o,a,s,l=e.styleSheets,u=[],f=l.length,p=Array(f);f--;)p[f]=l[f];for(;s=p.pop();)if(!s.disabled&&T.test(s.media)){try{o=s.imports,a=o.length}catch(m){a=0}for(f=0;a>f;f++)p.push(o[f]);try{u.push(s.cssText)}catch(m){}}u=d(u.reverse().join("")),i=c(e),r=n(e,u)}),l.attachEvent("onafterprint",function(){p(i),clearTimeout(a._removeSheetTimer),a._removeSheetTimer=setTimeout(t,500)}),e.printShived=!0,e)}var h,g,v="3.7.3",y=e.html5||{},x=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,E=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,S="_html5shiv",b=0,w={};!function(){try{var e=t.createElement("a");e.innerHTML="",h="hidden"in e,g=1==e.childNodes.length||function(){t.createElement("a");var e=t.createDocumentFragment();return"undefined"==typeof e.cloneNode||"undefined"==typeof e.createDocumentFragment||"undefined"==typeof e.createElement}()}catch(n){h=!0,g=!0}}();var C={elements:y.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output picture progress section summary template time video",version:v,shivCSS:y.shivCSS!==!1,supportsUnknownElements:g,shivMethods:y.shivMethods!==!1,type:"default",shivDocument:u,createElement:a,createDocumentFragment:s,addElements:i};e.html5=C,u(t);var T=/^$|\b(?:all|print)\b/,N="html5shiv",_=!g&&function(){var n=t.documentElement;return!("undefined"==typeof t.namespaces||"undefined"==typeof t.parentWindow||"undefined"==typeof n.applyElement||"undefined"==typeof n.removeNode||"undefined"==typeof e.attachEvent)}();C.type+=" print",C.shivPrint=m,m(t),"object"==typeof module&&module.exports&&(module.exports=C)}("undefined"!=typeof e?e:this,t);var N={elem:u("modernizr")};S._q.push(function(){delete N.elem});var _={style:N.elem.style};S._q.unshift(function(){delete _.style});var z=(E.testProp=function(e,t,r){return h([e],n,t,r)},function(){function e(e,t){var i;return e?(t&&"string"!=typeof t||(t=u(t||"div")),e="on"+e,i=e in t,!i&&r&&(t.setAttribute||(t=u("div")),t.setAttribute(e,""),i="function"==typeof t[e],t[e]!==n&&(t[e]=n),t.removeAttribute(e)),i):!1}var r=!("onblur"in t.documentElement);return e}());E.hasEvent=z,S.addTest("inputsearchevent",z("search"));var k=E.testStyles=f,$=function(){var e=navigator.userAgent,t=e.match(/applewebkit\/([0-9]+)/gi)&&parseFloat(RegExp.$1),n=e.match(/w(eb)?osbrowser/gi),r=e.match(/windows phone/gi)&&e.match(/iemobile\/([0-9])+/gi)&&parseFloat(RegExp.$1)>=9,i=533>t&&e.match(/android/gi);return n||i||r}();$?S.addTest("fontface",!1):k('@font-face {font-family:"font";src:url("https://")}',function(e,n){var r=t.getElementById("smodernizr"),i=r.sheet||r.styleSheet,o=i?i.cssRules&&i.cssRules[0]?i.cssRules[0].cssText:i.cssText||"":"",a=/src/i.test(o)&&0===o.indexOf(n.split(" ")[0]);S.addTest("fontface",a)});var j="Moz O ms Webkit",P=E._config.usePrefixes?j.split(" "):[];E._cssomPrefixes=P;var A=E._config.usePrefixes?j.toLowerCase().split(" "):[];E._domPrefixes=A,E.testAllProps=v,E.testAllProps=y;var R="CSS"in e&&"supports"in e.CSS,F="supportsCSS"in e;S.addTest("supports",R||F),S.addTest("csstransforms3d",function(){var e=!!y("perspective","1px",!0),t=S._config.usePrefixes;if(e&&(!t||"webkitPerspective"in C.style)){var n,r="#modernizr{width:0;height:0}";S.supports?n="@supports (perspective: 1px)":(n="@media (transform-3d)",t&&(n+=",(-webkit-transform-3d)")),n+="{#modernizr{width:7px;height:18px;margin:0;padding:0;border:0}}",k(r+n,function(t){e=7===t.offsetWidth&&18===t.offsetHeight})}return e}),S.addTest("json","JSON"in e&&"parse"in JSON&&"stringify"in JSON),S.addTest("checked",function(){return k("#modernizr {position:absolute} #modernizr input {margin-left:10px} #modernizr :checked {margin-left:20px;display:block}",function(e){var t=u("input");return t.setAttribute("type","checkbox"),t.setAttribute("checked","checked"),e.appendChild(t),20===t.offsetLeft})}),S.addTest("target",function(){var t=e.document;if(!("querySelectorAll"in t))return!1;try{return t.querySelectorAll(":target"),!0}catch(n){return!1}}),S.addTest("contains",r(String.prototype.contains,"function")),i(),o(w),delete E.addTest,delete E.addAsyncTest;for(var M=0;M #mq-test-1 { width: 42px; }',r.insertBefore(o,i),n=42===a.offsetWidth,r.removeChild(o),{matches:n,media:e}}}(e.document)}(this),function(e){"use strict";function t(){E(!0)}var n={};e.respond=n,n.update=function(){};var r=[],i=function(){var t=!1;try{t=new e.XMLHttpRequest}catch(n){t=new e.ActiveXObject("Microsoft.XMLHTTP")}return function(){return t}}(),o=function(e,t){var n=i();n&&(n.open("GET",e,!0),n.onreadystatechange=function(){4!==n.readyState||200!==n.status&&304!==n.status||t(n.responseText)},4!==n.readyState&&n.send(null))};if(n.ajax=o,n.queue=r,n.regex={media:/@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi,keyframes:/@(?:\-(?:o|moz|webkit)\-)?keyframes[^\{]+\{(?:[^\{\}]*\{[^\}\{]*\})+[^\}]*\}/gi,urls:/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,findStyles:/@media *([^\{]+)\{([\S\s]+?)$/,only:/(only\s+)?([a-zA-Z]+)\s?/,minw:/\([\s]*min\-width\s*:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/,maxw:/\([\s]*max\-width\s*:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/},n.mediaQueriesSupported=e.matchMedia&&null!==e.matchMedia("only all")&&e.matchMedia("only all").matches,!n.mediaQueriesSupported){var a,s,l,u=e.document,c=u.documentElement,f=[],d=[],p=[],m={},h=30,g=u.getElementsByTagName("head")[0]||c,v=u.getElementsByTagName("base")[0],y=g.getElementsByTagName("link"),x=function(){var e,t=u.createElement("div"),n=u.body,r=c.style.fontSize,i=n&&n.style.fontSize,o=!1;return t.style.cssText="position:absolute;font-size:1em;width:1em",n||(n=o=u.createElement("body"),n.style.background="none"),c.style.fontSize="100%",n.style.fontSize="100%",n.appendChild(t),o&&c.insertBefore(n,c.firstChild),e=t.offsetWidth,o?c.removeChild(n):n.removeChild(t),c.style.fontSize=r,i&&(n.style.fontSize=i),e=l=parseFloat(e)},E=function(t){var n="clientWidth",r=c[n],i="CSS1Compat"===u.compatMode&&r||u.body[n]||r,o={},m=y[y.length-1],v=(new Date).getTime();if(t&&a&&h>v-a)return e.clearTimeout(s),void(s=e.setTimeout(E,h));a=v;for(var S in f)if(f.hasOwnProperty(S)){var b=f[S],w=b.minw,C=b.maxw,T=null===w,N=null===C,_="em";w&&(w=parseFloat(w)*(w.indexOf(_)>-1?l||x():1)),C&&(C=parseFloat(C)*(C.indexOf(_)>-1?l||x():1)),b.hasquery&&(T&&N||!(T||i>=w)||!(N||C>=i))||(o[b.media]||(o[b.media]=[]),o[b.media].push(d[b.rules]))}for(var z in p)p.hasOwnProperty(z)&&p[z]&&p[z].parentNode===g&&g.removeChild(p[z]);p.length=0;for(var k in o)if(o.hasOwnProperty(k)){var $=u.createElement("style"),j=o[k].join("\n");$.type="text/css",$.media=k,g.insertBefore($,m.nextSibling),$.styleSheet?$.styleSheet.cssText=j:$.appendChild(u.createTextNode(j)),p.push($)}},S=function(e,t,r){var i=e.replace(n.regex.keyframes,"").match(n.regex.media),o=i&&i.length||0;t=t.substring(0,t.lastIndexOf("/"));var a=function(e){return e.replace(n.regex.urls,"$1"+t+"$2$3")},s=!o&&r;t.length&&(t+="/"),s&&(o=1);for(var l=0;o>l;l++){var u,c,p,m;s?(u=r,d.push(a(e))):(u=i[l].match(n.regex.findStyles)&&RegExp.$1,d.push(RegExp.$2&&a(RegExp.$2))),p=u.split(","),m=p.length;for(var h=0;m>h;h++)c=p[h],f.push({media:c.split("(")[0].match(n.regex.only)&&RegExp.$2||"all",rules:d.length-1,hasquery:c.indexOf("(")>-1,minw:c.match(n.regex.minw)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:c.match(n.regex.maxw)&&parseFloat(RegExp.$1)+(RegExp.$2||"")})}E()},b=function(){if(r.length){var t=r.shift();o(t.href,function(n){S(n,t.href,t.media),m[t.href]=!0,e.setTimeout(function(){b()},0)})}},w=function(){for(var t=0;tf;f++)if(h=e[f],g=_.style[h],l(h,"-")&&(h=m(h)),_.style[h]!==n){if(o||r(i,"undefined"))return a(),"pfx"==t?h:!0;try{_.style[h]=i}catch(y){}if(_.style[h]!=g)return a(),"pfx"==t?h:!0}return a(),!1}function g(e,t,n){var i;for(var o in e)if(e[o]in t)return n===!1?e[o]:(i=t[e[o]],r(i,"function")?s(i,n||t):i);return!1}function v(e,t,n,i,o){var a=e.charAt(0).toUpperCase()+e.slice(1),s=(e+" "+P.join(a+" ")+a).split(" ");return r(t,"string")||r(t,"undefined")?h(s,t,i,o):(s=(e+" "+A.join(a+" ")+a).split(" "),g(s,t,n))}function y(e,t,r){return v(e,n,n,t,r)}var x=[],E={_version:"3.3.1",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(e,t){var n=this;setTimeout(function(){t(n[e])},0)},addTest:function(e,t,n){x.push({name:e,fn:t,options:n})},addAsyncTest:function(e){x.push({name:null,fn:e})}},S=function(){};S.prototype=E,S=new S;var b,w=[],C=t.documentElement,T="svg"===C.nodeName.toLowerCase();!function(){var e={}.hasOwnProperty;b=r(e,"undefined")||r(e.call,"undefined")?function(e,t){return t in e&&r(e.constructor.prototype[t],"undefined")}:function(t,n){return e.call(t,n)}}(),E._l={},E.on=function(e,t){this._l[e]||(this._l[e]=[]),this._l[e].push(t),S.hasOwnProperty(e)&&setTimeout(function(){S._trigger(e,S[e])},0)},E._trigger=function(e,t){if(this._l[e]){var n=this._l[e];setTimeout(function(){var e,r;for(e=0;e",r.insertBefore(n.lastChild,r.firstChild)}function r(){var e=C.elements;return"string"==typeof e?e.split(" "):e}function i(e,t){var n=C.elements;"string"!=typeof n&&(n=n.join(" ")),"string"!=typeof e&&(e=e.join(" ")),C.elements=n+" "+e,u(t)}function o(e){var t=w[e[S]];return t||(t={},b++,e[S]=b,w[b]=t),t}function a(e,n,r){if(n||(n=t),g)return n.createElement(e);r||(r=o(n));var i;return i=r.cache[e]?r.cache[e].cloneNode():E.test(e)?(r.cache[e]=r.createElem(e)).cloneNode():r.createElem(e),!i.canHaveChildren||x.test(e)||i.tagUrn?i:r.frag.appendChild(i)}function s(e,n){if(e||(e=t),g)return e.createDocumentFragment();n=n||o(e);for(var i=n.frag.cloneNode(),a=0,s=r(),l=s.length;l>a;a++)i.createElement(s[a]);return i}function l(e,t){t.cache||(t.cache={},t.createElem=e.createElement,t.createFrag=e.createDocumentFragment,t.frag=t.createFrag()),e.createElement=function(n){return C.shivMethods?a(n,e,t):t.createElem(n)},e.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+r().join().replace(/[\w\-:]+/g,function(e){return t.createElem(e),t.frag.createElement(e),'c("'+e+'")'})+");return n}")(C,t.frag)}function u(e){e||(e=t);var r=o(e);return!C.shivCSS||h||r.hasCSS||(r.hasCSS=!!n(e,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),g||l(e,r),e}function c(e){for(var t,n=e.getElementsByTagName("*"),i=n.length,o=RegExp("^(?:"+r().join("|")+")$","i"),a=[];i--;)t=n[i],o.test(t.nodeName)&&a.push(t.applyElement(f(t)));return a}function f(e){for(var t,n=e.attributes,r=n.length,i=e.ownerDocument.createElement(N+":"+e.nodeName);r--;)t=n[r],t.specified&&i.setAttribute(t.nodeName,t.nodeValue);return i.style.cssText=e.style.cssText,i}function d(e){for(var t,n=e.split("{"),i=n.length,o=RegExp("(^|[\\s,>+~])("+r().join("|")+")(?=[[\\s,>+~#.:]|$)","gi"),a="$1"+N+"\\:$2";i--;)t=n[i]=n[i].split("}"),t[t.length-1]=t[t.length-1].replace(o,a),n[i]=t.join("}");return n.join("{")}function p(e){for(var t=e.length;t--;)e[t].removeNode()}function m(e){function t(){clearTimeout(a._removeSheetTimer),r&&r.removeNode(!0),r=null}var r,i,a=o(e),s=e.namespaces,l=e.parentWindow;return!_||e.printShived?e:("undefined"==typeof s[N]&&s.add(N),l.attachEvent("onbeforeprint",function(){t();for(var o,a,s,l=e.styleSheets,u=[],f=l.length,p=Array(f);f--;)p[f]=l[f];for(;s=p.pop();)if(!s.disabled&&T.test(s.media)){try{o=s.imports,a=o.length}catch(m){a=0}for(f=0;a>f;f++)p.push(o[f]);try{u.push(s.cssText)}catch(m){}}u=d(u.reverse().join("")),i=c(e),r=n(e,u)}),l.attachEvent("onafterprint",function(){p(i),clearTimeout(a._removeSheetTimer),a._removeSheetTimer=setTimeout(t,500)}),e.printShived=!0,e)}var h,g,v="3.7.3",y=e.html5||{},x=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,E=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,S="_html5shiv",b=0,w={};!function(){try{var e=t.createElement("a");e.innerHTML="",h="hidden"in e,g=1==e.childNodes.length||function(){t.createElement("a");var e=t.createDocumentFragment();return"undefined"==typeof e.cloneNode||"undefined"==typeof e.createDocumentFragment||"undefined"==typeof e.createElement}()}catch(n){h=!0,g=!0}}();var C={elements:y.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output picture progress section summary template time video",version:v,shivCSS:y.shivCSS!==!1,supportsUnknownElements:g,shivMethods:y.shivMethods!==!1,type:"default",shivDocument:u,createElement:a,createDocumentFragment:s,addElements:i};e.html5=C,u(t);var T=/^$|\b(?:all|print)\b/,N="html5shiv",_=!g&&function(){var n=t.documentElement;return!("undefined"==typeof t.namespaces||"undefined"==typeof t.parentWindow||"undefined"==typeof n.applyElement||"undefined"==typeof n.removeNode||"undefined"==typeof e.attachEvent)}();C.type+=" print",C.shivPrint=m,m(t),"object"==typeof module&&module.exports&&(module.exports=C)}("undefined"!=typeof e?e:this,t);var N={elem:u("modernizr")};S._q.push(function(){delete N.elem});var _={style:N.elem.style};S._q.unshift(function(){delete _.style});var z=(E.testProp=function(e,t,r){return h([e],n,t,r)},function(){function e(e,t){var i;return e?(t&&"string"!=typeof t||(t=u(t||"div")),e="on"+e,i=e in t,!i&&r&&(t.setAttribute||(t=u("div")),t.setAttribute(e,""),i="function"==typeof t[e],t[e]!==n&&(t[e]=n),t.removeAttribute(e)),i):!1}var r=!("onblur"in t.documentElement);return e}());E.hasEvent=z,S.addTest("inputsearchevent",z("search"));var k=E.testStyles=f,$=function(){var e=navigator.userAgent,t=e.match(/applewebkit\/([0-9]+)/gi)&&parseFloat(RegExp.$1),n=e.match(/w(eb)?osbrowser/gi),r=e.match(/windows phone/gi)&&e.match(/iemobile\/([0-9])+/gi)&&parseFloat(RegExp.$1)>=9,i=533>t&&e.match(/android/gi);return n||i||r}();$?S.addTest("fontface",!1):k('@font-face {font-family:"font";src:url("https://")}',function(e,n){var r=t.getElementById("smodernizr"),i=r.sheet||r.styleSheet,o=i?i.cssRules&&i.cssRules[0]?i.cssRules[0].cssText:i.cssText||"":"",a=/src/i.test(o)&&0===o.indexOf(n.split(" ")[0]);S.addTest("fontface",a)});var j="Moz O ms Webkit",P=E._config.usePrefixes?j.split(" "):[];E._cssomPrefixes=P;var A=E._config.usePrefixes?j.toLowerCase().split(" "):[];E._domPrefixes=A,E.testAllProps=v,E.testAllProps=y;var R="CSS"in e&&"supports"in e.CSS,F="supportsCSS"in e;S.addTest("supports",R||F),S.addTest("csstransforms3d",function(){var e=!!y("perspective","1px",!0),t=S._config.usePrefixes;if(e&&(!t||"webkitPerspective"in C.style)){var n,r="#modernizr{width:0;height:0}";S.supports?n="@supports (perspective: 1px)":(n="@media (transform-3d)",t&&(n+=",(-webkit-transform-3d)")),n+="{#modernizr{width:7px;height:18px;margin:0;padding:0;border:0}}",k(r+n,function(t){e=7===t.offsetWidth&&18===t.offsetHeight})}return e}),S.addTest("json","JSON"in e&&"parse"in JSON&&"stringify"in JSON),S.addTest("checked",function(){return k("#modernizr {position:absolute} #modernizr input {margin-left:10px} #modernizr :checked {margin-left:20px;display:block}",function(e){var t=u("input");return t.setAttribute("type","checkbox"),t.setAttribute("checked","checked"),e.appendChild(t),20===t.offsetLeft})}),S.addTest("target",function(){var t=e.document;if(!("querySelectorAll"in t))return!1;try{return t.querySelectorAll(":target"),!0}catch(n){return!1}}),S.addTest("contains",r(String.prototype.contains,"function")),i(),o(w),delete E.addTest,delete E.addAsyncTest;for(var M=0;M #mq-test-1 { width: 42px; }',r.insertBefore(o,i),n=42===a.offsetWidth,r.removeChild(o),{matches:n,media:e}}}(e.document)}(this),function(e){"use strict";function t(){E(!0)}var n={};e.respond=n,n.update=function(){};var r=[],i=function(){var t=!1;try{t=new e.XMLHttpRequest}catch(n){t=new e.ActiveXObject("Microsoft.XMLHTTP")}return function(){return t}}(),o=function(e,t){var n=i();n&&(n.open("GET",e,!0),n.onreadystatechange=function(){4!==n.readyState||200!==n.status&&304!==n.status||t(n.responseText)},4!==n.readyState&&n.send(null))};if(n.ajax=o,n.queue=r,n.regex={media:/@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi,keyframes:/@(?:\-(?:o|moz|webkit)\-)?keyframes[^\{]+\{(?:[^\{\}]*\{[^\}\{]*\})+[^\}]*\}/gi,urls:/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,findStyles:/@media *([^\{]+)\{([\S\s]+?)$/,only:/(only\s+)?([a-zA-Z]+)\s?/,minw:/\([\s]*min\-width\s*:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/,maxw:/\([\s]*max\-width\s*:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/},n.mediaQueriesSupported=e.matchMedia&&null!==e.matchMedia("only all")&&e.matchMedia("only all").matches,!n.mediaQueriesSupported){var a,s,l,u=e.document,c=u.documentElement,f=[],d=[],p=[],m={},h=30,g=u.getElementsByTagName("head")[0]||c,v=u.getElementsByTagName("base")[0],y=g.getElementsByTagName("link"),x=function(){var e,t=u.createElement("div"),n=u.body,r=c.style.fontSize,i=n&&n.style.fontSize,o=!1;return t.style.cssText="position:absolute;font-size:1em;width:1em",n||(n=o=u.createElement("body"),n.style.background="none"),c.style.fontSize="100%",n.style.fontSize="100%",n.appendChild(t),o&&c.insertBefore(n,c.firstChild),e=t.offsetWidth,o?c.removeChild(n):n.removeChild(t),c.style.fontSize=r,i&&(n.style.fontSize=i),e=l=parseFloat(e)},E=function(t){var n="clientWidth",r=c[n],i="CSS1Compat"===u.compatMode&&r||u.body[n]||r,o={},m=y[y.length-1],v=(new Date).getTime();if(t&&a&&h>v-a)return e.clearTimeout(s),void(s=e.setTimeout(E,h));a=v;for(var S in f)if(f.hasOwnProperty(S)){var b=f[S],w=b.minw,C=b.maxw,T=null===w,N=null===C,_="em";w&&(w=parseFloat(w)*(w.indexOf(_)>-1?l||x():1)),C&&(C=parseFloat(C)*(C.indexOf(_)>-1?l||x():1)),b.hasquery&&(T&&N||!(T||i>=w)||!(N||C>=i))||(o[b.media]||(o[b.media]=[]),o[b.media].push(d[b.rules]))}for(var z in p)p.hasOwnProperty(z)&&p[z]&&p[z].parentNode===g&&g.removeChild(p[z]);p.length=0;for(var k in o)if(o.hasOwnProperty(k)){var $=u.createElement("style"),j=o[k].join("\n");$.type="text/css",$.media=k,g.insertBefore($,m.nextSibling),$.styleSheet?$.styleSheet.cssText=j:$.appendChild(u.createTextNode(j)),p.push($)}},S=function(e,t,r){var i=e.replace(n.regex.keyframes,"").match(n.regex.media),o=i&&i.length||0;t=t.substring(0,t.lastIndexOf("/"));var a=function(e){return e.replace(n.regex.urls,"$1"+t+"$2$3")},s=!o&&r;t.length&&(t+="/"),s&&(o=1);for(var l=0;o>l;l++){var u,c,p,m;s?(u=r,d.push(a(e))):(u=i[l].match(n.regex.findStyles)&&RegExp.$1,d.push(RegExp.$2&&a(RegExp.$2))),p=u.split(","),m=p.length;for(var h=0;m>h;h++)c=p[h],f.push({media:c.split("(")[0].match(n.regex.only)&&RegExp.$2||"all",rules:d.length-1,hasquery:c.indexOf("(")>-1,minw:c.match(n.regex.minw)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:c.match(n.regex.maxw)&&parseFloat(RegExp.$1)+(RegExp.$2||"")})}E()},b=function(){if(r.length){var t=r.shift();o(t.href,function(n){S(n,t.href,t.media),m[t.href]=!0,e.setTimeout(function(){b()},0)})}},w=function(){for(var t=0;tli:before{content:"\e602";display:block;float:left;font-family:Icon;font-size:16px;width:1.2em;margin-left:-1.2em;vertical-align:-.1em}.article p>code{white-space:nowrap;padding:2px 4px}.article kbd{display:inline-block;padding:3px 5px;line-height:10px}.article hr{margin-top:1.5em}.article img{max-width:100%}.article pre{padding:16px;margin:1.5em -16px 0;line-height:1.5em;overflow:auto;-webkit-overflow-scrolling:touch}.article table{margin:3em 0 1.5em;font-size:13px;overflow:hidden}.no-js .article table{display:inline-block;max-width:100%;overflow:auto;-webkit-overflow-scrolling:touch}.article table th{min-width:100px;font-size:12px;text-align:left}.article table td,.article table th{padding:12px 16px;vertical-align:top}.article blockquote{padding-left:16px}.article .data{margin:1.5em -16px;padding:1.5em 0;overflow:auto;-webkit-overflow-scrolling:touch;text-align:center}.article .data table{display:inline-block;margin:0 16px;text-align:left}.footer{position:absolute;bottom:0;left:0;right:0;padding:0 4px}.copyright{margin:1.5em 0}.pagination{max-width:1184px;height:92px;padding:4px 0;margin-left:auto;margin-right:auto;overflow:hidden}.pagination a{display:block;height:100%}.pagination .next,.pagination .previous{position:relative;float:left;height:100%}.pagination .previous{width:25%}.pagination .previous .direction,.pagination .previous .stretch{display:none}.pagination .next{width:75%;text-align:right}.pagination .page{display:table;position:absolute;bottom:4px}.pagination .direction{display:block;position:absolute;bottom:40px;width:100%;font-size:15px;line-height:20px;padding:0 52px}.pagination .stretch{padding:0 4px}.pagination .stretch .title{font-size:18px;padding:11px 0 13px}.admonition{margin:20px -16px 0;padding:20px 16px}.admonition>:first-child{margin-top:0}.admonition .admonition-title{font-size:20px}.admonition .admonition-title:before{content:"\e611";display:block;float:left;font-family:Icon;font-size:24px;vertical-align:-.1em;margin-right:5px}.admonition.warning .admonition-title:before{content:"\e610"}.article h3{font-weight:700}.article h4{font-weight:400;font-style:italic}.article h2 a,.article h3 a,.article h4 a,.article h5 a,.article h6 a{font-weight:400;font-style:normal}.bar{-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-transition:opacity .2s cubic-bezier(.75,0,.25,1),-webkit-transform .4s cubic-bezier(.75,0,.25,1);transition:opacity .2s cubic-bezier(.75,0,.25,1),-webkit-transform .4s cubic-bezier(.75,0,.25,1);transition:opacity .2s cubic-bezier(.75,0,.25,1),transform .4s cubic-bezier(.75,0,.25,1);transition:opacity .2s cubic-bezier(.75,0,.25,1),transform .4s cubic-bezier(.75,0,.25,1),-webkit-transform .4s cubic-bezier(.75,0,.25,1)}#toggle-search:checked~.header .bar,.toggle-search .bar{-webkit-transform:translate3d(0,-56px,0);transform:translate3d(0,-56px,0)}.bar.search .button-reset{-webkit-transform:scale(.5);transform:scale(.5);-webkit-transition:opacity .4s cubic-bezier(.1,.7,.1,1),-webkit-transform .4s cubic-bezier(.1,.7,.1,1);transition:opacity .4s cubic-bezier(.1,.7,.1,1),-webkit-transform .4s cubic-bezier(.1,.7,.1,1);transition:opacity .4s cubic-bezier(.1,.7,.1,1),transform .4s cubic-bezier(.1,.7,.1,1);transition:opacity .4s cubic-bezier(.1,.7,.1,1),transform .4s cubic-bezier(.1,.7,.1,1),-webkit-transform .4s cubic-bezier(.1,.7,.1,1);opacity:0}.bar.search.non-empty .button-reset{-webkit-transform:scale(1);transform:scale(1);opacity:1}.results{-webkit-transition:opacity .3s .1s,width 0s .4s,height 0s .4s;transition:opacity .3s .1s,width 0s .4s,height 0s .4s}#toggle-search:checked~.main .results,.toggle-search .results{-webkit-transition:opacity .4s,width 0s,height 0s;transition:opacity .4s,width 0s,height 0s}.results .list a{-webkit-transition:background .25s;transition:background .25s}.no-csstransforms3d .bar.default{display:table}.no-csstransforms3d .bar.search{display:none;margin-top:0}.no-csstransforms3d #toggle-search:checked~.header .bar.default,.no-csstransforms3d .toggle-search .bar.default{display:none}.no-csstransforms3d #toggle-search:checked~.header .bar.search,.no-csstransforms3d .toggle-search .bar.search{display:table}.bar.search{opacity:0}.bar.search .query{background:transparent;color:rgba(0,0,0,.87)}.bar.search .query::-webkit-input-placeholder{color:rgba(0,0,0,.26)}.bar.search .query:-moz-placeholder,.bar.search .query::-moz-placeholder{color:rgba(0,0,0,.26)}.bar.search .query:-ms-input-placeholder{color:rgba(0,0,0,.26)}.bar.search .button .icon:active{background:rgba(0,0,0,.12)}.results{box-shadow:0 4px 7px rgba(0,0,0,.23),0 8px 25px rgba(0,0,0,.05);background:#fff;color:rgba(0,0,0,.87);opacity:0}#toggle-search:checked~.main .results,.toggle-search .results{opacity:1}.results .meta{color:#fff}.results .list a{border-bottom:1px solid rgba(0,0,0,.12)}.results .list a:last-child{border-bottom:none}.results .list a:active{background:rgba(0,0,0,.12)}.result span{color:rgba(0,0,0,.54)}#toggle-search:checked~.header,.toggle-search .header{background:#fff;color:rgba(0,0,0,.54)}#toggle-search:checked~.header:before,.toggle-search .header:before{background:rgba(0,0,0,.54)}#toggle-search:checked~.header .bar.default,.toggle-search .header .bar.default{opacity:0}#toggle-search:checked~.header .bar.search,.toggle-search .header .bar.search{opacity:1}.bar.search{margin-top:8px}.bar.search .query{font-size:18px;padding:13px 0;margin:0;width:100%;height:48px}.bar.search .query::-ms-clear{display:none}.results{position:fixed;top:0;left:0;width:0;height:100%;z-index:1;overflow-y:scroll;-webkit-overflow-scrolling:touch}.results .scrollable{top:56px}#toggle-search:checked~.main .results,.toggle-search .results{width:100%;overflow-y:visible}.results .meta{font-weight:700}.results .meta strong{display:block;font-size:11px;max-width:1200px;margin-left:auto;margin-right:auto;padding:16px}.results .list a{display:block}.result{max-width:1200px;margin-left:auto;margin-right:auto;padding:12px 16px 16px}.result h1{line-height:24px}.result h1,.result span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.result span{font-size:12px}.no-csstransforms3d .results{display:none}.no-csstransforms3d #toggle-search:checked~.main .results,.no-csstransforms3d .toggle-search .results{display:block;overflow:auto}.meta{text-transform:uppercase;font-weight:700}@media only screen and (min-width:960px){.backdrop{background:#f2f2f2}.backdrop-paper:after{box-shadow:0 1.5px 3px rgba(0,0,0,.24),0 3px 8px rgba(0,0,0,.05)}.button-menu{display:none}.drawer{float:left;height:auto;margin-bottom:96px;padding-top:80px}.drawer,.drawer .scrollable{position:static}.article{margin-left:262px}.footer{z-index:4}.copyright{margin-bottom:64px}.results{height:auto;top:64px}.results .scrollable{position:static;max-height:413px}}@media only screen and (max-width:959px){#toggle-drawer:checked~.overlay,.toggle-drawer .overlay{width:100%;height:100%}.drawer{-webkit-transform:translate3d(-262px,0,0);transform:translate3d(-262px,0,0);-webkit-transition:-webkit-transform .25s cubic-bezier(.4,0,.2,1);transition:-webkit-transform .25s cubic-bezier(.4,0,.2,1);transition:transform .25s cubic-bezier(.4,0,.2,1);transition:transform .25s cubic-bezier(.4,0,.2,1),-webkit-transform .25s cubic-bezier(.4,0,.2,1)}.no-csstransforms3d .drawer{display:none}.drawer{background:#fff}.project{box-shadow:0 1.5px 3px rgba(0,0,0,.24),0 3px 8px rgba(0,0,0,.05);color:#fff}.drawer{position:fixed;z-index:4}#toggle-search:checked~.main .results,.drawer,.toggle-search .results{height:100%}}@media only screen and (min-width:720px){.header{height:64px;padding:8px}.header .stretch{padding:0 16px}.header .stretch .title{font-size:20px;padding:12px 0}.project .name{margin:26px 0 0 5px}.article .wrapper{padding:128px 24px 96px}.article .data{margin:1.5em -24px}.article .data table{margin:0 24px}.article h2{padding-top:100px}.ios.standalone .article h2{padding-top:28px;margin-top:8px}.article h3,.article h4{padding-top:84px}.ios.standalone .article h3,.ios.standalone .article h4{padding-top:20px;margin-top:0}.article pre{padding:1.5em 24px;margin:1.5em -24px 0}.footer{padding:0 8px}.pagination{height:96px;padding:8px 0}.pagination .direction{padding:0 56px;bottom:40px}.pagination .stretch{padding:0 8px}.admonition{margin:20px -24px 0;padding:20px 24px}.bar.search .query{font-size:20px;padding:12px 0}.results .scrollable{top:64px}.results .meta strong{padding:16px 24px}.result{padding:16px 24px 20px}}@media only screen and (min-width:1200px){.header{width:100%}.drawer .scrollable .wrapper hr{width:48px}}@media only screen and (orientation:portrait){.ios.standalone .header{height:76px;padding-top:24px}.ios.standalone .header:before{content:" ";position:absolute;top:0;left:0;z-index:3;width:100%;height:20px}.ios.standalone .drawer .scrollable{top:124px}.ios.standalone .project{padding-top:20px}.ios.standalone .project:before{content:" ";position:absolute;top:0;left:0;z-index:3;width:100%;height:20px}.ios.standalone .article{position:absolute;top:76px;right:0;bottom:0;left:0}.ios.standalone .results .scrollable{top:76px}}@media only screen and (orientation:portrait) and (min-width:720px){.ios.standalone .header{height:84px;padding-top:28px}.ios.standalone .results .scrollable{top:84px}}@media only screen and (max-width:719px){.bar .path{display:none}}@media only screen and (max-width:479px){.button-github,.button-twitter{display:none}}@media only screen and (min-width:720px) and (max-width:959px){.header .stretch{padding:0 24px}}@media only screen and (min-width:480px){.pagination .next,.pagination .previous{width:50%}.pagination .previous .direction{display:block}.pagination .previous .stretch{display:table}}@media print{.drawer,.footer,.header,.headerlink{display:none}.article .wrapper{padding-top:0}.article pre,.article pre *{color:rgba(0,0,0,.87)!important}.article pre{border:1px solid rgba(0,0,0,.12)}.article table{border-radius:none;box-shadow:none}} diff --git a/themes/hugo-material-docs/static/stylesheets/highlight/highlight.css b/themes/hugo-material-docs/static/stylesheets/highlight/highlight.css new file mode 100644 index 0000000000..2475d125f9 --- /dev/null +++ b/themes/hugo-material-docs/static/stylesheets/highlight/highlight.css @@ -0,0 +1,105 @@ +/* + * overwrite the current primary color of the + * theme that is used as fallback in codeblocks + */ +.article pre code { + color: rgba(0, 0, 0, 0.8) !important; +} + + +/* + HIGHLIGHT.JS THEME + + tweaked version of the Github theme +*/ + +.hljs { +display:block; +overflow-x:auto; +} + +.hljs-comment, +.hljs-quote { +color:#998; +font-style:italic; +} + +.hljs-keyword, +.hljs-selector-tag, +.hljs-subst { +color:#333; +font-weight:700; +} + +.hljs-number, +.hljs-literal, +.hljs-variable, +.hljs-template-variable, +.hljs-tag .hljs-attr { +color:teal; +} + +.hljs-string, +.hljs-doctag { +color:#d14; +} + +.hljs-title, +.hljs-section, +.hljs-selector-id { +color:#900; +font-weight:700; +} + +.hljs-subst { +font-weight:400; +} + +.hljs-type, +.hljs-class .hljs-title { +color:#458; +font-weight:700; +} + +.hljs-tag, +.hljs-name, +.hljs-attribute { +color:navy; +font-weight:400; +} + +.hljs-regexp, +.hljs-link { +color:#009926; +} + +.hljs-symbol, +.hljs-bullet { +color:#990073; +} + +.hljs-built_in, +.hljs-builtin-name { +color:#0086b3; +} + +.hljs-meta { +color:#999; +font-weight:700; +} + +.hljs-deletion { +background:#fdd; +} + +.hljs-addition { +background:#dfd; +} + +.hljs-emphasis { +font-style:italic; +} + +.hljs-strong { +font-weight:700; +} diff --git a/themes/hugo-material-docs/static/stylesheets/palettes.css b/themes/hugo-material-docs/static/stylesheets/palettes.css new file mode 100644 index 0000000000..97440f5957 --- /dev/null +++ b/themes/hugo-material-docs/static/stylesheets/palettes.css @@ -0,0 +1 @@ +@supports (-webkit-appearance:none){.palette-primary-red{background:#e84e40}}.palette-primary-red .footer,.palette-primary-red .header{background:#e84e40}.palette-primary-red .drawer .toc a.current,.palette-primary-red .drawer .toc a:focus,.palette-primary-red .drawer .toc a:hover{color:#e84e40}.palette-primary-red .drawer .anchor a{border-left:2px solid #e84e40}.ios.standalone .palette-primary-red .article{background:-webkit-linear-gradient(top,#fff 50%,#e84e40 0);background:linear-gradient(180deg,#fff 50%,#e84e40 0)}.palette-primary-red .article a,.palette-primary-red .article code,.palette-primary-red .article h1,.palette-primary-red .article h2{color:#e84e40}.palette-primary-red .article .headerlink{color:rgba(0,0,0,.26)}.palette-primary-red .article table th{background:#ee7a70}.palette-primary-red .results .meta{background:#e84e40}@supports (-webkit-appearance:none){.palette-primary-pink{background:#e91e63}}.palette-primary-pink .footer,.palette-primary-pink .header{background:#e91e63}.palette-primary-pink .drawer .toc a.current,.palette-primary-pink .drawer .toc a:focus,.palette-primary-pink .drawer .toc a:hover{color:#e91e63}.palette-primary-pink .drawer .anchor a{border-left:2px solid #e91e63}.ios.standalone .palette-primary-pink .article{background:-webkit-linear-gradient(top,#fff 50%,#e91e63 0);background:linear-gradient(180deg,#fff 50%,#e91e63 0)}.palette-primary-pink .article a,.palette-primary-pink .article code,.palette-primary-pink .article h1,.palette-primary-pink .article h2{color:#e91e63}.palette-primary-pink .article .headerlink{color:rgba(0,0,0,.26)}.palette-primary-pink .article table th{background:#ef568a}.palette-primary-pink .results .meta{background:#e91e63}@supports (-webkit-appearance:none){.palette-primary-purple{background:#ab47bc}}.palette-primary-purple .footer,.palette-primary-purple .header{background:#ab47bc}.palette-primary-purple .drawer .toc a.current,.palette-primary-purple .drawer .toc a:focus,.palette-primary-purple .drawer .toc a:hover{color:#ab47bc}.palette-primary-purple .drawer .anchor a{border-left:2px solid #ab47bc}.ios.standalone .palette-primary-purple .article{background:-webkit-linear-gradient(top,#fff 50%,#ab47bc 0);background:linear-gradient(180deg,#fff 50%,#ab47bc 0)}.palette-primary-purple .article a,.palette-primary-purple .article code,.palette-primary-purple .article h1,.palette-primary-purple .article h2{color:#ab47bc}.palette-primary-purple .article .headerlink{color:rgba(0,0,0,.26)}.palette-primary-purple .article table th{background:#c075cd}.palette-primary-purple .results .meta{background:#ab47bc}@supports (-webkit-appearance:none){.palette-primary-deep-purple{background:#7e57c2}}.palette-primary-deep-purple .footer,.palette-primary-deep-purple .header{background:#7e57c2}.palette-primary-deep-purple .drawer .toc a.current,.palette-primary-deep-purple .drawer .toc a:focus,.palette-primary-deep-purple .drawer .toc a:hover{color:#7e57c2}.palette-primary-deep-purple .drawer .anchor a{border-left:2px solid #7e57c2}.ios.standalone .palette-primary-deep-purple .article{background:-webkit-linear-gradient(top,#fff 50%,#7e57c2 0);background:linear-gradient(180deg,#fff 50%,#7e57c2 0)}.palette-primary-deep-purple .article a,.palette-primary-deep-purple .article code,.palette-primary-deep-purple .article h1,.palette-primary-deep-purple .article h2{color:#7e57c2}.palette-primary-deep-purple .article .headerlink{color:rgba(0,0,0,.26)}.palette-primary-deep-purple .article table th{background:#9e81d1}.palette-primary-deep-purple .results .meta{background:#7e57c2}@supports (-webkit-appearance:none){.palette-primary-indigo{background:#3f51b5}}.palette-primary-indigo .footer,.palette-primary-indigo .header{background:#3f51b5}.palette-primary-indigo .drawer .toc a.current,.palette-primary-indigo .drawer .toc a:focus,.palette-primary-indigo .drawer .toc a:hover{color:#3f51b5}.palette-primary-indigo .drawer .anchor a{border-left:2px solid #3f51b5}.ios.standalone .palette-primary-indigo .article{background:-webkit-linear-gradient(top,#fff 50%,#3f51b5 0);background:linear-gradient(180deg,#fff 50%,#3f51b5 0)}.palette-primary-indigo .article a,.palette-primary-indigo .article code,.palette-primary-indigo .article h1,.palette-primary-indigo .article h2{color:#3f51b5}.palette-primary-indigo .article .headerlink{color:rgba(0,0,0,.26)}.palette-primary-indigo .article table th{background:#6f7dc8}.palette-primary-indigo .results .meta{background:#3f51b5}@supports (-webkit-appearance:none){.palette-primary-blue{background:#5677fc}}.palette-primary-blue .footer,.palette-primary-blue .header{background:#5677fc}.palette-primary-blue .drawer .toc a.current,.palette-primary-blue .drawer .toc a:focus,.palette-primary-blue .drawer .toc a:hover{color:#5677fc}.palette-primary-blue .drawer .anchor a{border-left:2px solid #5677fc}.ios.standalone .palette-primary-blue .article{background:-webkit-linear-gradient(top,#fff 50%,#5677fc 0);background:linear-gradient(180deg,#fff 50%,#5677fc 0)}.palette-primary-blue .article a,.palette-primary-blue .article code,.palette-primary-blue .article h1,.palette-primary-blue .article h2{color:#5677fc}.palette-primary-blue .article .headerlink{color:rgba(0,0,0,.26)}.palette-primary-blue .article table th{background:#8099fd}.palette-primary-blue .results .meta{background:#5677fc}@supports (-webkit-appearance:none){.palette-primary-light-blue{background:#03a9f4}}.palette-primary-light-blue .footer,.palette-primary-light-blue .header{background:#03a9f4}.palette-primary-light-blue .drawer .toc a.current,.palette-primary-light-blue .drawer .toc a:focus,.palette-primary-light-blue .drawer .toc a:hover{color:#03a9f4}.palette-primary-light-blue .drawer .anchor a{border-left:2px solid #03a9f4}.ios.standalone .palette-primary-light-blue .article{background:-webkit-linear-gradient(top,#fff 50%,#03a9f4 0);background:linear-gradient(180deg,#fff 50%,#03a9f4 0)}.palette-primary-light-blue .article a,.palette-primary-light-blue .article code,.palette-primary-light-blue .article h1,.palette-primary-light-blue .article h2{color:#03a9f4}.palette-primary-light-blue .article .headerlink{color:rgba(0,0,0,.26)}.palette-primary-light-blue .article table th{background:#42bff7}.palette-primary-light-blue .results .meta{background:#03a9f4}@supports (-webkit-appearance:none){.palette-primary-cyan{background:#00bcd4}}.palette-primary-cyan .footer,.palette-primary-cyan .header{background:#00bcd4}.palette-primary-cyan .drawer .toc a.current,.palette-primary-cyan .drawer .toc a:focus,.palette-primary-cyan .drawer .toc a:hover{color:#00bcd4}.palette-primary-cyan .drawer .anchor a{border-left:2px solid #00bcd4}.ios.standalone .palette-primary-cyan .article{background:-webkit-linear-gradient(top,#fff 50%,#00bcd4 0);background:linear-gradient(180deg,#fff 50%,#00bcd4 0)}.palette-primary-cyan .article a,.palette-primary-cyan .article code,.palette-primary-cyan .article h1,.palette-primary-cyan .article h2{color:#00bcd4}.palette-primary-cyan .article .headerlink{color:rgba(0,0,0,.26)}.palette-primary-cyan .article table th{background:#40cddf}.palette-primary-cyan .results .meta{background:#00bcd4}@supports (-webkit-appearance:none){.palette-primary-teal{background:#009688}}.palette-primary-teal .footer,.palette-primary-teal .header{background:#009688}.palette-primary-teal .drawer .toc a.current,.palette-primary-teal .drawer .toc a:focus,.palette-primary-teal .drawer .toc a:hover{color:#009688}.palette-primary-teal .drawer .anchor a{border-left:2px solid #009688}.ios.standalone .palette-primary-teal .article{background:-webkit-linear-gradient(top,#fff 50%,#009688 0);background:linear-gradient(180deg,#fff 50%,#009688 0)}.palette-primary-teal .article a,.palette-primary-teal .article code,.palette-primary-teal .article h1,.palette-primary-teal .article h2{color:#009688}.palette-primary-teal .article .headerlink{color:rgba(0,0,0,.26)}.palette-primary-teal .article table th{background:#40b0a6}.palette-primary-teal .results .meta{background:#009688}@supports (-webkit-appearance:none){.palette-primary-green{background:#259b24}}.palette-primary-green .footer,.palette-primary-green .header{background:#259b24}.palette-primary-green .drawer .toc a.current,.palette-primary-green .drawer .toc a:focus,.palette-primary-green .drawer .toc a:hover{color:#259b24}.palette-primary-green .drawer .anchor a{border-left:2px solid #259b24}.ios.standalone .palette-primary-green .article{background:-webkit-linear-gradient(top,#fff 50%,#259b24 0);background:linear-gradient(180deg,#fff 50%,#259b24 0)}.palette-primary-green .article a,.palette-primary-green .article code,.palette-primary-green .article h1,.palette-primary-green .article h2{color:#259b24}.palette-primary-green .article .headerlink{color:rgba(0,0,0,.26)}.palette-primary-green .article table th{background:#5cb45b}.palette-primary-green .results .meta{background:#259b24}@supports (-webkit-appearance:none){.palette-primary-light-green{background:#7cb342}}.palette-primary-light-green .footer,.palette-primary-light-green .header{background:#7cb342}.palette-primary-light-green .drawer .toc a.current,.palette-primary-light-green .drawer .toc a:focus,.palette-primary-light-green .drawer .toc a:hover{color:#7cb342}.palette-primary-light-green .drawer .anchor a{border-left:2px solid #7cb342}.ios.standalone .palette-primary-light-green .article{background:-webkit-linear-gradient(top,#fff 50%,#7cb342 0);background:linear-gradient(180deg,#fff 50%,#7cb342 0)}.palette-primary-light-green .article a,.palette-primary-light-green .article code,.palette-primary-light-green .article h1,.palette-primary-light-green .article h2{color:#7cb342}.palette-primary-light-green .article .headerlink{color:rgba(0,0,0,.26)}.palette-primary-light-green .article table th{background:#9dc671}.palette-primary-light-green .results .meta{background:#7cb342}@supports (-webkit-appearance:none){.palette-primary-lime{background:#c0ca33}}.palette-primary-lime .footer,.palette-primary-lime .header{background:#c0ca33}.palette-primary-lime .drawer .toc a.current,.palette-primary-lime .drawer .toc a:focus,.palette-primary-lime .drawer .toc a:hover{color:#c0ca33}.palette-primary-lime .drawer .anchor a{border-left:2px solid #c0ca33}.ios.standalone .palette-primary-lime .article{background:-webkit-linear-gradient(top,#fff 50%,#c0ca33 0);background:linear-gradient(180deg,#fff 50%,#c0ca33 0)}.palette-primary-lime .article a,.palette-primary-lime .article code,.palette-primary-lime .article h1,.palette-primary-lime .article h2{color:#c0ca33}.palette-primary-lime .article .headerlink{color:rgba(0,0,0,.26)}.palette-primary-lime .article table th{background:#d0d766}.palette-primary-lime .results .meta{background:#c0ca33}@supports (-webkit-appearance:none){.palette-primary-yellow{background:#f9a825}}.palette-primary-yellow .footer,.palette-primary-yellow .header{background:#f9a825}.palette-primary-yellow .drawer .toc a.current,.palette-primary-yellow .drawer .toc a:focus,.palette-primary-yellow .drawer .toc a:hover{color:#f9a825}.palette-primary-yellow .drawer .anchor a{border-left:2px solid #f9a825}.ios.standalone .palette-primary-yellow .article{background:-webkit-linear-gradient(top,#fff 50%,#f9a825 0);background:linear-gradient(180deg,#fff 50%,#f9a825 0)}.palette-primary-yellow .article a,.palette-primary-yellow .article code,.palette-primary-yellow .article h1,.palette-primary-yellow .article h2{color:#f9a825}.palette-primary-yellow .article .headerlink{color:rgba(0,0,0,.26)}.palette-primary-yellow .article table th{background:#fbbe5c}.palette-primary-yellow .results .meta{background:#f9a825}@supports (-webkit-appearance:none){.palette-primary-amber{background:#ffb300}}.palette-primary-amber .footer,.palette-primary-amber .header{background:#ffb300}.palette-primary-amber .drawer .toc a.current,.palette-primary-amber .drawer .toc a:focus,.palette-primary-amber .drawer .toc a:hover{color:#ffb300}.palette-primary-amber .drawer .anchor a{border-left:2px solid #ffb300}.ios.standalone .palette-primary-amber .article{background:-webkit-linear-gradient(top,#fff 50%,#ffb300 0);background:linear-gradient(180deg,#fff 50%,#ffb300 0)}.palette-primary-amber .article a,.palette-primary-amber .article code,.palette-primary-amber .article h1,.palette-primary-amber .article h2{color:#ffb300}.palette-primary-amber .article .headerlink{color:rgba(0,0,0,.26)}.palette-primary-amber .article table th{background:#ffc640}.palette-primary-amber .results .meta{background:#ffb300}@supports (-webkit-appearance:none){.palette-primary-orange{background:#fb8c00}}.palette-primary-orange .footer,.palette-primary-orange .header{background:#fb8c00}.palette-primary-orange .drawer .toc a.current,.palette-primary-orange .drawer .toc a:focus,.palette-primary-orange .drawer .toc a:hover{color:#fb8c00}.palette-primary-orange .drawer .anchor a{border-left:2px solid #fb8c00}.ios.standalone .palette-primary-orange .article{background:-webkit-linear-gradient(top,#fff 50%,#fb8c00 0);background:linear-gradient(180deg,#fff 50%,#fb8c00 0)}.palette-primary-orange .article a,.palette-primary-orange .article code,.palette-primary-orange .article h1,.palette-primary-orange .article h2{color:#fb8c00}.palette-primary-orange .article .headerlink{color:rgba(0,0,0,.26)}.palette-primary-orange .article table th{background:#fca940}.palette-primary-orange .results .meta{background:#fb8c00}@supports (-webkit-appearance:none){.palette-primary-deep-orange{background:#ff7043}}.palette-primary-deep-orange .footer,.palette-primary-deep-orange .header{background:#ff7043}.palette-primary-deep-orange .drawer .toc a.current,.palette-primary-deep-orange .drawer .toc a:focus,.palette-primary-deep-orange .drawer .toc a:hover{color:#ff7043}.palette-primary-deep-orange .drawer .anchor a{border-left:2px solid #ff7043}.ios.standalone .palette-primary-deep-orange .article{background:-webkit-linear-gradient(top,#fff 50%,#ff7043 0);background:linear-gradient(180deg,#fff 50%,#ff7043 0)}.palette-primary-deep-orange .article a,.palette-primary-deep-orange .article code,.palette-primary-deep-orange .article h1,.palette-primary-deep-orange .article h2{color:#ff7043}.palette-primary-deep-orange .article .headerlink{color:rgba(0,0,0,.26)}.palette-primary-deep-orange .article table th{background:#ff9472}.palette-primary-deep-orange .results .meta{background:#ff7043}@supports (-webkit-appearance:none){.palette-primary-brown{background:#795548}}.palette-primary-brown .footer,.palette-primary-brown .header{background:#795548}.palette-primary-brown .drawer .toc a.current,.palette-primary-brown .drawer .toc a:focus,.palette-primary-brown .drawer .toc a:hover{color:#795548}.palette-primary-brown .drawer .anchor a{border-left:2px solid #795548}.ios.standalone .palette-primary-brown .article{background:-webkit-linear-gradient(top,#fff 50%,#795548 0);background:linear-gradient(180deg,#fff 50%,#795548 0)}.palette-primary-brown .article a,.palette-primary-brown .article code,.palette-primary-brown .article h1,.palette-primary-brown .article h2{color:#795548}.palette-primary-brown .article .headerlink{color:rgba(0,0,0,.26)}.palette-primary-brown .article table th{background:#9b8076}.palette-primary-brown .results .meta{background:#795548}@supports (-webkit-appearance:none){.palette-primary-grey{background:#757575}}.palette-primary-grey .footer,.palette-primary-grey .header{background:#757575}.palette-primary-grey .drawer .toc a.current,.palette-primary-grey .drawer .toc a:focus,.palette-primary-grey .drawer .toc a:hover{color:#757575}.palette-primary-grey .drawer .anchor a{border-left:2px solid #757575}.ios.standalone .palette-primary-grey .article{background:-webkit-linear-gradient(top,#fff 50%,#757575 0);background:linear-gradient(180deg,#fff 50%,#757575 0)}.palette-primary-grey .article a,.palette-primary-grey .article code,.palette-primary-grey .article h1,.palette-primary-grey .article h2{color:#757575}.palette-primary-grey .article .headerlink{color:rgba(0,0,0,.26)}.palette-primary-grey .article table th{background:#989898}.palette-primary-grey .results .meta{background:#757575}@supports (-webkit-appearance:none){.palette-primary-blue-grey{background:#546e7a}}.palette-primary-blue-grey .footer,.palette-primary-blue-grey .header{background:#546e7a}.palette-primary-blue-grey .drawer .toc a.current,.palette-primary-blue-grey .drawer .toc a:focus,.palette-primary-blue-grey .drawer .toc a:hover{color:#546e7a}.palette-primary-blue-grey .drawer .anchor a{border-left:2px solid #546e7a}.ios.standalone .palette-primary-blue-grey .article{background:-webkit-linear-gradient(top,#fff 50%,#546e7a 0);background:linear-gradient(180deg,#fff 50%,#546e7a 0)}.palette-primary-blue-grey .article a,.palette-primary-blue-grey .article code,.palette-primary-blue-grey .article h1,.palette-primary-blue-grey .article h2{color:#546e7a}.palette-primary-blue-grey .article .headerlink{color:rgba(0,0,0,.26)}.palette-primary-blue-grey .article table th{background:#7f929b}.palette-primary-blue-grey .results .meta{background:#546e7a}.palette-accent-red .article a:focus,.palette-accent-red .article a:hover{color:#ff2d6f}.palette-accent-red .repo a{background:#ff2d6f}.palette-accent-pink .article a:focus,.palette-accent-pink .article a:hover{color:#f50057}.palette-accent-pink .repo a{background:#f50057}.palette-accent-purple .article a:focus,.palette-accent-purple .article a:hover{color:#e040fb}.palette-accent-purple .repo a{background:#e040fb}.palette-accent-deep-purple .article a:focus,.palette-accent-deep-purple .article a:hover{color:#7c4dff}.palette-accent-deep-purple .repo a{background:#7c4dff}.palette-accent-indigo .article a:focus,.palette-accent-indigo .article a:hover{color:#536dfe}.palette-accent-indigo .repo a{background:#536dfe}.palette-accent-blue .article a:focus,.palette-accent-blue .article a:hover{color:#6889ff}.palette-accent-blue .repo a{background:#6889ff}.palette-accent-light-blue .article a:focus,.palette-accent-light-blue .article a:hover{color:#0091ea}.palette-accent-light-blue .repo a{background:#0091ea}.palette-accent-cyan .article a:focus,.palette-accent-cyan .article a:hover{color:#00b8d4}.palette-accent-cyan .repo a{background:#00b8d4}.palette-accent-teal .article a:focus,.palette-accent-teal .article a:hover{color:#00bfa5}.palette-accent-teal .repo a{background:#00bfa5}.palette-accent-green .article a:focus,.palette-accent-green .article a:hover{color:#12c700}.palette-accent-green .repo a{background:#12c700}.palette-accent-light-green .article a:focus,.palette-accent-light-green .article a:hover{color:#64dd17}.palette-accent-light-green .repo a{background:#64dd17}.palette-accent-lime .article a:focus,.palette-accent-lime .article a:hover{color:#aeea00}.palette-accent-lime .repo a{background:#aeea00}.palette-accent-yellow .article a:focus,.palette-accent-yellow .article a:hover{color:#ffd600}.palette-accent-yellow .repo a{background:#ffd600}.palette-accent-amber .article a:focus,.palette-accent-amber .article a:hover{color:#ffab00}.palette-accent-amber .repo a{background:#ffab00}.palette-accent-orange .article a:focus,.palette-accent-orange .article a:hover{color:#ff9100}.palette-accent-orange .repo a{background:#ff9100}.palette-accent-deep-orange .article a:focus,.palette-accent-deep-orange .article a:hover{color:#ff6e40}.palette-accent-deep-orange .repo a{background:#ff6e40}@media only screen and (max-width:959px){.palette-primary-red .project{background:#e84e40}.palette-primary-pink .project{background:#e91e63}.palette-primary-purple .project{background:#ab47bc}.palette-primary-deep-purple .project{background:#7e57c2}.palette-primary-indigo .project{background:#3f51b5}.palette-primary-blue .project{background:#5677fc}.palette-primary-light-blue .project{background:#03a9f4}.palette-primary-cyan .project{background:#00bcd4}.palette-primary-teal .project{background:#009688}.palette-primary-green .project{background:#259b24}.palette-primary-light-green .project{background:#7cb342}.palette-primary-lime .project{background:#c0ca33}.palette-primary-yellow .project{background:#f9a825}.palette-primary-amber .project{background:#ffb300}.palette-primary-orange .project{background:#fb8c00}.palette-primary-deep-orange .project{background:#ff7043}.palette-primary-brown .project{background:#795548}.palette-primary-grey .project{background:#757575}.palette-primary-blue-grey .project{background:#546e7a}} diff --git a/themes/hugo-material-docs/static/stylesheets/temporary.css b/themes/hugo-material-docs/static/stylesheets/temporary.css new file mode 100644 index 0000000000..25530e64c7 --- /dev/null +++ b/themes/hugo-material-docs/static/stylesheets/temporary.css @@ -0,0 +1,11 @@ +/* This file only exists (temporarily) until the + custom styling can be replaced with the + implementation of the upstream project. +*/ + +blockquote { + padding: 0 20px; + margin: 0 0 20px; + font-size: inherit; + border-left: 5px solid #eee; +} diff --git a/themes/hugo-material-docs/theme.toml b/themes/hugo-material-docs/theme.toml new file mode 100644 index 0000000000..5651898dc1 --- /dev/null +++ b/themes/hugo-material-docs/theme.toml @@ -0,0 +1,18 @@ +name = "Material Docs" +license = "MIT" +licenselink = "https://github.com/digitalcraftsman/hugo-material-docs/blob/master/LICENSE.md" +description = "A material design theme for documentations." +homepage = "https://github.com/digitalcraftsman/hugo-material-docs" +tags = ["material", "documentation", "docs", "google analytics", "responsive"] +features = [] +min_version = 0.20 + +[author] + name = "Digitalcraftsman" + homepage = "https://github.com/digitalcraftsman" + +# If porting an existing theme +[original] + name = "Martin Donath" + homepage = "http://struct.cc/" + repo = "https://github.com/squidfunk/mkdocs-material"