From f7eca7aeca742d738e47ce7c1bd983ab03f0b12f Mon Sep 17 00:00:00 2001 From: Freeze455 Date: Tue, 17 Aug 2021 12:47:19 +0200 Subject: [PATCH] :construction: Setup documentation --- src/components/Documentation.vue | 80 +++++++++++++------ src/templates/layouts/Base.vue | 5 +- src/templates/modules/documentation/Routes.ts | 4 +- src/templates/modules/documentation/index.vue | 14 ---- src/utils/CodeHighlignt.ts | 3 +- src/utils/Navigation.ts | 4 +- 6 files changed, 63 insertions(+), 47 deletions(-) delete mode 100644 src/templates/modules/documentation/index.vue diff --git a/src/components/Documentation.vue b/src/components/Documentation.vue index c59265f..855fba2 100644 --- a/src/components/Documentation.vue +++ b/src/components/Documentation.vue @@ -1,6 +1,6 @@ \ No newline at end of file diff --git a/src/templates/layouts/Base.vue b/src/templates/layouts/Base.vue index add8817..91929bc 100644 --- a/src/templates/layouts/Base.vue +++ b/src/templates/layouts/Base.vue @@ -44,9 +44,10 @@ function isDark () { } - diff --git a/src/templates/modules/documentation/Routes.ts b/src/templates/modules/documentation/Routes.ts index 174f451..064624b 100644 --- a/src/templates/modules/documentation/Routes.ts +++ b/src/templates/modules/documentation/Routes.ts @@ -1,8 +1,8 @@ import { RouteRecordRaw } from 'vue-router' -import Index from './index.vue' +import GettingStarted from './getting-started.vue' const routes: RouteRecordRaw[] = [ - { path: '/documentation', component: Index }, + { path: '/documentation/getting-started', component: GettingStarted }, ] export default routes \ No newline at end of file diff --git a/src/templates/modules/documentation/index.vue b/src/templates/modules/documentation/index.vue deleted file mode 100644 index 690349b..0000000 --- a/src/templates/modules/documentation/index.vue +++ /dev/null @@ -1,14 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/utils/CodeHighlignt.ts b/src/utils/CodeHighlignt.ts index ba6db56..62380b8 100644 --- a/src/utils/CodeHighlignt.ts +++ b/src/utils/CodeHighlignt.ts @@ -54,7 +54,8 @@ import { @Middleware({ pattern: '(?\\\\d+)-args')} export default class FooMiddleware implements BaseMiddleware { public async run(context: MiddlewareContext): Promise { - // Your code here + // Your code here + return true } } ` diff --git a/src/utils/Navigation.ts b/src/utils/Navigation.ts index 3a6aef3..4a35795 100644 --- a/src/utils/Navigation.ts +++ b/src/utils/Navigation.ts @@ -4,7 +4,7 @@ import { CalendarIcon, ChartBarIcon, FolderIcon, HomeIcon, InboxIcon, UsersIcon export const links: NavbarLink[] = [ { label: 'Home', path: '/', local: true }, - { label: 'Documentation', path: '/documentation', local: true }, + { label: 'Documentation', path: '/documentation/getting-started', local: true }, { label: 'Discussion', path: '/https://github.com/DiscordFactory/Core/discussions', local: false } ] @@ -18,7 +18,7 @@ export const documentation = [ label: 'Basic', isMenu: true, child: [ - { label: 'Getting starting', href: '/documentation/getting-starting', isMenu: true }, + { label: 'Getting starting', href: '/documentation/getting-started', isMenu: true }, ] }, ]