diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index ff9df77d0..61865216d 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -580,6 +580,8 @@ Below is a list of available icons (some are aliases): - nav-orgs - nav-tasks - note +- notebook +- notebooks - org - orgs - pause @@ -606,13 +608,14 @@ In many cases, documentation references an item in the left nav of the InfluxDB Provide a visual example of the navigation item using the `nav-icon` shortcode. ``` -{{< nav-icon "Tasks" >}} +{{< nav-icon "tasks" >}} ``` The following case insensitive values are supported: - admin, influx - data-explorer, data explorer +- notebooks, books - dashboards - tasks - monitor, alerts, bell diff --git a/assets/styles/tools/_icomoon.scss b/assets/styles/tools/_icomoon.scss index 9af689fab..2b97654ae 100644 --- a/assets/styles/tools/_icomoon.scss +++ b/assets/styles/tools/_icomoon.scss @@ -1,10 +1,10 @@ @font-face { font-family: 'icomoon'; - src: url('fonts/icomoon.eot?dzkzbu'); - src: url('fonts/icomoon.eot?dzkzbu#iefix') format('embedded-opentype'), - url('fonts/icomoon.ttf?dzkzbu') format('truetype'), - url('fonts/icomoon.woff?dzkzbu') format('woff'), - url('fonts/icomoon.svg?dzkzbu#icomoon') format('svg'); + src: url('fonts/icomoon.eot?lj8dxa'); + src: url('fonts/icomoon.eot?lj8dxa#iefix') format('embedded-opentype'), + url('fonts/icomoon.ttf?lj8dxa') format('truetype'), + url('fonts/icomoon.woff?lj8dxa') format('woff'), + url('fonts/icomoon.svg?lj8dxa#icomoon') format('svg'); font-weight: normal; font-style: normal; font-display: block; @@ -25,8 +25,8 @@ -moz-osx-font-smoothing: grayscale; } -.icon-alert-circle:before { - content: "\e933"; +.icon-book-pencil:before { + content: "\e965"; } .icon-influx-logo:before { content: "\e900"; @@ -112,6 +112,9 @@ .icon-menu:before { content: "\e91b"; } +.icon-download:before { + content: "\e91c"; +} .icon-minus:before { content: "\e91d"; } @@ -139,7 +142,7 @@ .icon-data-explorer:before { content: "\e925"; } -.icon-download:before { +.icon-ui-download:before { content: "\e926"; } .icon-duplicate:before { @@ -178,6 +181,9 @@ .icon-remove:before { content: "\e932"; } +.icon-alert-circle:before { + content: "\e933"; +} .icon-trash:before { content: "\e935"; } diff --git a/content/example.md b/content/example.md index dd684d267..b2f6f2906 100644 --- a/content/example.md +++ b/content/example.md @@ -1,12 +1,8 @@ --- title: Example post description: This is just an example post to show the format of new 2.0 posts -menu: - influxdb_2_0: - name: Example post weight: 1 draft: true -"v2.0/tags": [influxdb, functions] related: - /influxdb/v2.0/write-data/ - /influxdb/v2.0/write-data/quick-start @@ -26,6 +22,7 @@ This is **bold** text. This is _italic_ text. This is _**bold and italic**_. {{< nav-icon "tasks" >}} {{< nav-icon "alerts" >}} {{< nav-icon "settings" >}} +{{< nav-icon "notebooks" >}} {{< icon "add-cell" >}} add-cell {{< icon "add-label" >}} add-label @@ -66,6 +63,8 @@ This is **bold** text. This is _italic_ text. This is _**bold and italic**_. {{< icon "nav-orgs" >}} nav-orgs {{< icon "nav-tasks" >}} nav-tasks {{< icon "note" >}} note +{{< icon "notebook" >}} notebook +{{< icon "notebooks" >}} notebooks {{< icon "org" >}} org {{< icon "orgs" >}} orgs {{< icon "pause" >}} pause diff --git a/layouts/shortcodes/icon.html b/layouts/shortcodes/icon.html index 68571e537..4bcaa5484 100644 --- a/layouts/shortcodes/icon.html +++ b/layouts/shortcodes/icon.html @@ -58,6 +58,8 @@ {{ else if or (eq $icon "eye-closed") (eq $icon "hide") }} +{{ else if or (eq $icon "notebook") (eq $icon "notebooks") }} + {{ else if eq $icon "add-label" }} {{ else if or (eq $icon "toggle") (eq $icon "toggle-blue") }} diff --git a/layouts/shortcodes/nav-icon.html b/layouts/shortcodes/nav-icon.html index 81de1c2f2..410944b8d 100644 --- a/layouts/shortcodes/nav-icon.html +++ b/layouts/shortcodes/nav-icon.html @@ -8,6 +8,10 @@ {{ .Scratch.Set "icon" "data-explorer" }} {{ .Scratch.Set "title" "Data Explorer" }} {{ .Scratch.Set "short_title" "Explore" }} +{{ else if or (eq $navIcon "notebooks") (eq $navIcon "books") }} + {{ .Scratch.Set "icon" "book-pencil" }} + {{ .Scratch.Set "title" "Notebooks" }} + {{ .Scratch.Set "short_title" "Books" }} {{ else if or (eq $navIcon "dashboards") (eq $navIcon "boards") }} {{ .Scratch.Set "icon" "dashboards" }} {{ .Scratch.Set "title" "Dashboards" }} diff --git a/static/fonts/icomoon.eot b/static/fonts/icomoon.eot index f277311dc..82f344e0d 100644 Binary files a/static/fonts/icomoon.eot and b/static/fonts/icomoon.eot differ diff --git a/static/fonts/icomoon.svg b/static/fonts/icomoon.svg index e60badc9e..d7dc13c47 100644 --- a/static/fonts/icomoon.svg +++ b/static/fonts/icomoon.svg @@ -7,77 +7,78 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/static/fonts/icomoon.ttf b/static/fonts/icomoon.ttf index d070c4475..c3ebbc0fb 100644 Binary files a/static/fonts/icomoon.ttf and b/static/fonts/icomoon.ttf differ diff --git a/static/fonts/icomoon.woff b/static/fonts/icomoon.woff index c821fe201..95b34f35a 100644 Binary files a/static/fonts/icomoon.woff and b/static/fonts/icomoon.woff differ