From 87c808965c8703833292dcc8d66fcffe32dfff42 Mon Sep 17 00:00:00 2001 From: Anton Korzhuk Date: Mon, 1 Aug 2022 05:52:29 -0400 Subject: [PATCH 1/2] replace sidebar icons with icon_path --- admin/index.md | 15 --------------- assets/images/icons/gear.svg | 14 ++++++++++++++ assets/images/icons/get-started.svg | 6 ++++++ assets/images/icons/guides.svg | 3 +++ assets/images/icons/home.svg | 1 + assets/images/icons/images.svg | 16 ++++++++++++++++ assets/images/icons/paper.svg | 3 +++ assets/images/icons/terminal.svg | 8 ++++++++ assets/images/icons/workspaces.svg | 16 ++++++++++++++++ assets/images/icons/wrench.svg | 5 +++++ changelog/index.md | 4 ---- cli/index.md | 9 --------- getting-started/index.md | 7 ------- guides/index.md | 4 ---- images/index.md | 18 ------------------ index.md | 5 ----- manifest.json | 9 +++++++++ setup/index.md | 6 ------ workspaces/index.md | 17 ----------------- 19 files changed, 81 insertions(+), 85 deletions(-) create mode 100644 assets/images/icons/gear.svg create mode 100644 assets/images/icons/get-started.svg create mode 100644 assets/images/icons/guides.svg create mode 100644 assets/images/icons/home.svg create mode 100644 assets/images/icons/images.svg create mode 100644 assets/images/icons/paper.svg create mode 100644 assets/images/icons/terminal.svg create mode 100644 assets/images/icons/workspaces.svg create mode 100644 assets/images/icons/wrench.svg diff --git a/admin/index.md b/admin/index.md index 9b9adc96d..d7dd8de03 100644 --- a/admin/index.md +++ b/admin/index.md @@ -1,20 +1,5 @@ --- title: "Admin" -icon: - '' --- diff --git a/assets/images/icons/gear.svg b/assets/images/icons/gear.svg new file mode 100644 index 000000000..aaeef9a93 --- /dev/null +++ b/assets/images/icons/gear.svg @@ -0,0 +1,14 @@ + \ No newline at end of file diff --git a/assets/images/icons/get-started.svg b/assets/images/icons/get-started.svg new file mode 100644 index 000000000..b5aabe687 --- /dev/null +++ b/assets/images/icons/get-started.svg @@ -0,0 +1,6 @@ + \ No newline at end of file diff --git a/assets/images/icons/guides.svg b/assets/images/icons/guides.svg new file mode 100644 index 000000000..cdab60e19 --- /dev/null +++ b/assets/images/icons/guides.svg @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git a/assets/images/icons/home.svg b/assets/images/icons/home.svg new file mode 100644 index 000000000..cd46163a3 --- /dev/null +++ b/assets/images/icons/home.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/images/icons/images.svg b/assets/images/icons/images.svg new file mode 100644 index 000000000..a0fa79861 --- /dev/null +++ b/assets/images/icons/images.svg @@ -0,0 +1,16 @@ + \ No newline at end of file diff --git a/assets/images/icons/paper.svg b/assets/images/icons/paper.svg new file mode 100644 index 000000000..4d601807c --- /dev/null +++ b/assets/images/icons/paper.svg @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git a/assets/images/icons/terminal.svg b/assets/images/icons/terminal.svg new file mode 100644 index 000000000..854685126 --- /dev/null +++ b/assets/images/icons/terminal.svg @@ -0,0 +1,8 @@ + \ No newline at end of file diff --git a/assets/images/icons/workspaces.svg b/assets/images/icons/workspaces.svg new file mode 100644 index 000000000..94648ee7e --- /dev/null +++ b/assets/images/icons/workspaces.svg @@ -0,0 +1,16 @@ +nn \ No newline at end of file diff --git a/assets/images/icons/wrench.svg b/assets/images/icons/wrench.svg new file mode 100644 index 000000000..0772e6bab --- /dev/null +++ b/assets/images/icons/wrench.svg @@ -0,0 +1,5 @@ + \ No newline at end of file diff --git a/changelog/index.md b/changelog/index.md index 3a24d2c7e..b688786eb 100644 --- a/changelog/index.md +++ b/changelog/index.md @@ -2,10 +2,6 @@ title: "Changelog" description: "Coder releases annotated with breaking changes, new features, and fixes." -icon: - "\n\n" --- ## Release schedule diff --git a/cli/index.md b/cli/index.md index d35b4f24d..c75503fe0 100644 --- a/cli/index.md +++ b/cli/index.md @@ -1,14 +1,5 @@ --- title: "Command line" -icon: - "\n\n\n" --- Coder provides an [open-source CLI](https://github.com/coder/coder-cli) that diff --git a/getting-started/index.md b/getting-started/index.md index ae593e52a..767e2ab00 100644 --- a/getting-started/index.md +++ b/getting-started/index.md @@ -1,13 +1,6 @@ --- title: "Getting started" description: Get started with Coder. -icon: - '' --- We’re excited for you to be part of the growing community of Coder users, and we diff --git a/guides/index.md b/guides/index.md index 17f5b6c77..bb047315c 100644 --- a/guides/index.md +++ b/guides/index.md @@ -1,9 +1,5 @@ --- title: "Guides" -icon: - "\n\n" description: Coder customization and advanced use cases. --- diff --git a/images/index.md b/images/index.md index 9fa52d2a5..5a9c76ec5 100644 --- a/images/index.md +++ b/images/index.md @@ -1,23 +1,5 @@ --- title: "Images" -icon: - "\n\n\n\n\n" description: Learn about reproducibility in Coder. --- diff --git a/index.md b/index.md index cd5efc7cb..bb78ffdae 100644 --- a/index.md +++ b/index.md @@ -1,11 +1,6 @@ --- title: "Home" description: "Explore our guides and examples to get started with Coder." -icon: - '' --- Coder is a self-hosted platform that allows organizations to securely provision diff --git a/manifest.json b/manifest.json index f79c8026c..5ecd79b8e 100644 --- a/manifest.json +++ b/manifest.json @@ -3,6 +3,7 @@ "routes": [ { "path": "./index.md", + "icon_path": "./assets/images/icons/home.svg", "children": [ { "path": "about.md" @@ -17,6 +18,7 @@ }, { "path": "getting-started/index.md", + "icon_path": "./assets/images/icons/get-started.svg", "children": [ { "path": "getting-started/docker.md" @@ -40,6 +42,7 @@ }, { "path": "./workspaces/index.md", + "icon_path": "./assets/images/icons/workspaces.svg", "children": [ { "path": "./workspaces/create.md" @@ -98,6 +101,7 @@ }, { "path": "./images/index.md", + "icon_path": "./assets/images/icons/images.svg", "children": [ { "path": "./images/configure.md" @@ -127,6 +131,7 @@ }, { "path": "./cli/index.md", + "icon_path": "./assets/images/icons/terminal.svg", "children": [ { "path": "./cli/installation.md" @@ -144,6 +149,7 @@ }, { "path": "./setup/index.md", + "icon_path": "./assets/images/icons/wrench.svg", "children": [ { "path": "./setup/architecture.md" @@ -214,6 +220,7 @@ }, { "path": "./admin/index.md", + "icon_path": "./assets/images/icons/gear.svg", "children": [ { "path": "./admin/access-control/index.md", @@ -393,6 +400,7 @@ }, { "path": "./guides/index.md", + "icon_path": "./assets/images/icons/guides.svg", "navigable": true, "children": [ { @@ -565,6 +573,7 @@ }, { "path": "./changelog/index.md", + "icon_path": "./assets/images/icons/paper.svg", "children": [ { "path": "./changelog/1.33.0.md" diff --git a/setup/index.md b/setup/index.md index 769a448a2..2b623b186 100644 --- a/setup/index.md +++ b/setup/index.md @@ -1,12 +1,6 @@ --- title: "Setup" description: Learn how to set up a Coder instance. -icon: - --- The articles in this section will walk you through setting up a cluster to which diff --git a/workspaces/index.md b/workspaces/index.md index 37648568e..d129e4258 100644 --- a/workspaces/index.md +++ b/workspaces/index.md @@ -1,22 +1,5 @@ --- title: "Workspaces" -icon: - "\n\n\n\n" description: "Learn about development workspaces in Coder." --- From 366ff03ad6948a2e568de538218a07b39e113e44 Mon Sep 17 00:00:00 2001 From: Anton Korzhuk Date: Thu, 11 Aug 2022 07:59:27 -0400 Subject: [PATCH 2/2] minor fix to sidebar icons --- assets/images/icons/guides.svg | 6 +++--- assets/images/icons/terminal.svg | 11 +++-------- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/assets/images/icons/guides.svg b/assets/images/icons/guides.svg index cdab60e19..cecdd11da 100644 --- a/assets/images/icons/guides.svg +++ b/assets/images/icons/guides.svg @@ -1,3 +1,3 @@ - \ No newline at end of file + + + diff --git a/assets/images/icons/terminal.svg b/assets/images/icons/terminal.svg index 854685126..902ad107e 100644 --- a/assets/images/icons/terminal.svg +++ b/assets/images/icons/terminal.svg @@ -1,8 +1,3 @@ - \ No newline at end of file + + +