From d9b65590d8ad12e50bcf1499d369979b595f535d Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Fri, 25 Oct 2019 21:45:18 +0300 Subject: [PATCH] Docs work --- dashboard/src/components/Expandable.vue | 11 +- dashboard/src/components/docs/CodeBlock.vue | 4 +- .../components/docs/ConfigurationFormat.vue | 6 +- dashboard/src/components/docs/DocsLayout.vue | 12 +- .../src/components/docs/Introduction.vue | 2 +- dashboard/src/components/docs/Permissions.vue | 8 +- dashboard/src/components/docs/Plugin.vue | 8 +- .../components/docs/PluginConfiguration.vue | 180 +++++++++++------- dashboard/src/routes.ts | 6 +- dashboard/src/style/content.pcss | 21 +- 10 files changed, 167 insertions(+), 91 deletions(-) diff --git a/dashboard/src/components/Expandable.vue b/dashboard/src/components/Expandable.vue index c9f6b38b..4728570c 100644 --- a/dashboard/src/components/Expandable.vue +++ b/dashboard/src/components/Expandable.vue @@ -1,6 +1,13 @@ diff --git a/dashboard/src/routes.ts b/dashboard/src/routes.ts index 1ca49ee8..f453720e 100644 --- a/dashboard/src/routes.ts +++ b/dashboard/src/routes.ts @@ -24,15 +24,15 @@ export const router = new VueRouter({ component: () => import("./components/docs/Introduction.vue"), }, { - path: "configuration-format", + path: "configuration/configuration-format", component: () => import("./components/docs/ConfigurationFormat.vue"), }, { - path: "permissions", + path: "configuration/permissions", component: () => import("./components/docs/Permissions.vue"), }, { - path: "plugin-configuration", + path: "configuration/plugin-configuration", component: () => import("./components/docs/PluginConfiguration.vue"), }, { diff --git a/dashboard/src/style/content.pcss b/dashboard/src/style/content.pcss index d359c20c..3709ad7a 100644 --- a/dashboard/src/style/content.pcss +++ b/dashboard/src/style/content.pcss @@ -23,7 +23,8 @@ @apply mb-4; } - & a:not([class]) { + & a:not([class]), + & a[class=""] { @apply link; } @@ -36,6 +37,15 @@ } } + & ol:not([class]) { + @apply list-decimal; + @apply mb-4; + + & li { + @apply ml-6; + } + } + & code:not([class]) { @apply inline-code; } @@ -44,3 +54,12 @@ max-width: 600px; } } + +@screen xl { + .main-content { + & a:not([class]), + & a[class=""] { + white-space: nowrap; + } + } +}