summaryrefslogtreecommitdiffstats
path: root/docs/generator
diff options
context:
space:
mode:
authorJoel Hans <joel@netdata.cloud>2019-07-15 07:50:28 -0700
committerGitHub <noreply@github.com>2019-07-15 07:50:28 -0700
commitcbb0528d32576d146920cfdbc3964644a39c5d11 (patch)
tree22727ba24ca1b36cdc3ab502c0bf4bcc0084ca44 /docs/generator
parent80e66747d55c428c54fc215b2c3662785e067ea9 (diff)
Styling improvements to documentation (#6425)
* Changed mkdocs theme * Added custom styles for various elements * Moved to different syntax highlighting plugin * Added a README for the docs/ folder to direct people to the docs site * Change highlight theme
Diffstat (limited to 'docs/generator')
-rwxr-xr-xdocs/generator/buildyaml.sh7
-rw-r--r--docs/generator/custom/css/netdata.css23
2 files changed, 29 insertions, 1 deletions
diff --git a/docs/generator/buildyaml.sh b/docs/generator/buildyaml.sh
index f7ecdbdd4d..e4f9c8454c 100755
--- a/docs/generator/buildyaml.sh
+++ b/docs/generator/buildyaml.sh
@@ -68,6 +68,9 @@ extra:
link: "https://www.facebook.com/linuxnetdata/"
theme:
name: "material"
+ palette:
+ primary: "blue grey"
+ accent: "light green"
custom_dir: custom/themes/material
favicon: custom/img/favicon.ico
language: '${language}'
@@ -86,7 +89,6 @@ markdown_extensions:
- footnotes
- tables
- admonition
- - codehilite
- meta
- sane_lists
- smarty
@@ -100,6 +102,9 @@ markdown_extensions:
- pymdownx.caret
- pymdownx.critic
- pymdownx.details
+ - pymdownx.highlight:
+ pygments_style: manni
+ noclasses: true
- pymdownx.inlinehilite
- pymdownx.magiclink
- pymdownx.mark
diff --git a/docs/generator/custom/css/netdata.css b/docs/generator/custom/css/netdata.css
index d9003be156..116eb15d97 100644
--- a/docs/generator/custom/css/netdata.css
+++ b/docs/generator/custom/css/netdata.css
@@ -5,3 +5,26 @@
.md-typeset {
font-size: .75rem
}
+
+/* Hide the label at the top of the navigation menu. Does nothing. */
+.md-nav__title {
+ display: none;
+}
+
+/* Change the language selector dropdown to match new color. */
+.md-header-nav select#sel {
+ background-color: rgba(0,0,0,.26) !important;
+ padding: 3px;
+ margin-left: 5px;
+ margin-right: 20px;
+}
+
+/* Add some whitespace to the bottom of each doc. */
+.md-content {
+ margin-bottom: 6rem;
+}
+
+/* Make sure inline code in tables doesn't break. */
+.md-typeset__table code {
+ word-break: normal;
+} \ No newline at end of file