|
1 | | -import {defineConfig} from 'vitepress' |
| 1 | +import { defineConfig } from "vitepress"; |
2 | 2 |
|
3 | 3 | // https://vitepress.dev/reference/site-config |
4 | 4 | export default defineConfig({ |
5 | | - title: 'Mockbukkit Docs', |
6 | | - description: "Documentation for Mockbukkit, a powerful and flexible Mocking framework for Minecraft plugins.", |
| 5 | + title: "Mockbukkit Docs", |
| 6 | + description: |
| 7 | + "Documentation for Mockbukkit, a powerful and flexible Mocking framework for Minecraft plugins.", |
7 | 8 |
|
8 | | - head: [ |
9 | | - ['link', {rel: 'icon', href: './favicon.ico'}], |
| 9 | + head: [["link", { rel: "icon", href: "./favicon.ico" }]], |
| 10 | + themeConfig: { |
| 11 | + // https://vitepress.dev/reference/default-theme-config |
| 12 | + nav: [ |
| 13 | + { text: "Home", link: "/" }, |
| 14 | + { |
| 15 | + text: "Getting Started", |
| 16 | + link: "docs/en/user_guide/introduction/getting_started", |
| 17 | + }, |
| 18 | + { |
| 19 | + text: "Contribution Guides", |
| 20 | + link: "docs/en/contribution/maintainers/pr_guide", |
| 21 | + }, |
10 | 22 | ], |
11 | | - themeConfig: { |
12 | | - // https://vitepress.dev/reference/default-theme-config |
13 | | - nav: [ |
14 | | - {text: 'Home', link: '/'}, |
15 | | - {text: 'Getting Started', link: 'docs/en/user_guide/introduction/getting_started'}, |
16 | | - {text: 'Contribution Guides', link: 'docs/en/contribution/maintainers/pr_guide'}, |
17 | | - ], |
18 | | - logo: '/images/mockbukkit_logo.png', |
19 | | - editLink: { |
20 | | - pattern: "https://github.com/MockBukkit/docs/tree/main/:path", |
21 | | - text: "Edit this page on Github!" |
| 23 | + logo: "/images/mockbukkit_logo.png", |
| 24 | + editLink: { |
| 25 | + pattern: "https://github.com/MockBukkit/docs/tree/main/:path", |
| 26 | + text: "Edit this page on Github!", |
| 27 | + }, |
| 28 | + search: { |
| 29 | + provider: "local", |
| 30 | + }, |
| 31 | + lastUpdated: true, |
| 32 | + sidebar: { |
| 33 | + "/docs/en/user_guide": [ |
| 34 | + { |
| 35 | + text: "Introduction", |
| 36 | + collapsed: false, |
| 37 | + items: [ |
| 38 | + { |
| 39 | + text: "Getting Started", |
| 40 | + link: "docs/en/user_guide/introduction/getting_started", |
| 41 | + }, |
| 42 | + { |
| 43 | + text: "Writing your first test", |
| 44 | + link: "docs/en/user_guide/introduction/first_test", |
| 45 | + }, |
| 46 | + { |
| 47 | + text: "Create a World Mock", |
| 48 | + link: "docs/en/user_guide/introduction/mock_world.md", |
| 49 | + }, |
| 50 | + ], |
22 | 51 | }, |
23 | | - search: { |
24 | | - provider: "local" |
| 52 | + { |
| 53 | + text: "Entities", |
| 54 | + collapsed: false, |
| 55 | + items: [ |
| 56 | + { text: "Entities", link: "docs/en/user_guide/entities/entity" }, |
| 57 | + { text: "Player", link: "docs/en/user_guide/entities/player" }, |
| 58 | + { |
| 59 | + text: "MessageTarget", |
| 60 | + link: "docs/en/user_guide/entities/message_target", |
| 61 | + }, |
| 62 | + ], |
25 | 63 | }, |
26 | | - lastUpdated: true, |
27 | | - sidebar: { |
28 | | - '/docs/en/user_guide': [ |
29 | | - { |
30 | | - text: 'Introduction', |
31 | | - collapsed: false, |
32 | | - items: [ |
33 | | - {text: 'Getting Started', link: 'docs/en/user_guide/introduction/getting_started'}, |
34 | | - {text: 'Writing your first test', link: 'docs/en/user_guide/introduction/first_test'}, |
35 | | - {text: 'Create a World Mock', link: 'docs/en/user_guide/introduction/mock_world.md'}, |
36 | | - ] |
37 | | - }, |
38 | | - { |
39 | | - text: "Entities", |
40 | | - collapsed: false, |
41 | | - items: [ |
42 | | - {text: 'Entities', link: 'docs/en/user_guide/entities/entity'}, |
43 | | - {text: 'Player', link: 'docs/en/user_guide/entities/player'}, |
44 | | - {text: 'MessageTarget', link: 'docs/en/user_guide/entities/message_target'}, |
45 | | - ] |
46 | | - }, |
47 | 64 |
|
| 65 | + { |
| 66 | + text: "Advanced Topics", |
| 67 | + collapsed: false, |
| 68 | + items: [ |
| 69 | + { |
| 70 | + text: "Scheduler", |
| 71 | + link: "docs/en/user_guide/advanced/scheduler", |
| 72 | + }, |
| 73 | + { text: "Events", link: "docs/en/user_guide/advanced/events" }, |
| 74 | + { |
| 75 | + text: "Custom ServerMock", |
| 76 | + link: "docs/en/user_guide/advanced/custom_server_mock", |
| 77 | + }, |
| 78 | + { |
| 79 | + text: "Adventure", |
| 80 | + link: "docs/en/user_guide/advanced/adventure", |
| 81 | + }, |
| 82 | + ], |
| 83 | + }, |
| 84 | + { |
| 85 | + text: "Migrations", |
| 86 | + collapsed: false, |
| 87 | + items: [ |
| 88 | + { |
| 89 | + text: "3.x to - 4.x Migration", |
| 90 | + link: "docs/en/user_guide/migration/migrate_mockbukkit_4.0", |
| 91 | + items: [ |
48 | 92 | { |
49 | | - text: "Advanced Topics", |
50 | | - collapsed: false, |
51 | | - items: [ |
52 | | - {text: 'Scheduler', link: 'docs/en/user_guide/advanced/scheduler'}, |
53 | | - {text: 'Events', link: 'docs/en/user_guide/advanced/events'}, |
54 | | - {text: 'Custom ServerMock', link: 'docs/en/user_guide/advanced/custom_server_mock'}, |
55 | | - {text: 'Adventure', link: 'docs/en/user_guide/advanced/adventure'} |
56 | | - ] |
| 93 | + text: "Migration with OpenRewrite", |
| 94 | + link: "docs/en/user_guide/migration/migrate_mockbukkit_4.0_openrewrite", |
57 | 95 | }, |
58 | | - { |
59 | | - text: "Migrations", |
60 | | - collapsed: false, |
61 | | - items: [ |
62 | | - { |
63 | | - text: "3.x to - 4.x Migration", |
64 | | - link: "docs/en/user_guide/migration/migrate_mockbukkit_4.0", |
65 | | - items: [ |
66 | | - { |
67 | | - text: "Migration with OpenRewrite", |
68 | | - link: "docs/en/user_guide/migration/migrate_mockbukkit_4.0_openrewrite" |
69 | | - } |
70 | | - ] |
71 | | - } |
72 | | - ] |
73 | | - } |
74 | | - ], |
75 | | - '/docs/en/contribution': [ |
76 | | - { |
77 | | - text: "For Maintainers", |
78 | | - collapsed: false, |
79 | | - items: [ |
80 | | - {text: "Maintainer PR Guide", link: 'docs/en/contribution/maintainers/pr_guide'}, |
81 | | - ] |
82 | | - } |
83 | | - ] |
| 96 | + ], |
| 97 | + }, |
| 98 | + ], |
84 | 99 | }, |
85 | | - |
86 | | - socialLinks: [ |
87 | | - {icon: 'github', link: 'https://github.com/Mockbukkit/Mockbukkit'}, |
88 | | - {icon: 'discord', link: 'https://discord.gg/Xunsn6D8MB'}, |
89 | | - ], |
90 | | - footer: { |
91 | | - message: 'Released under the MIT License.', |
92 | | - copyright: 'Copyright © 2017-2024 Mockbukkit' |
93 | | - } |
| 100 | + ], |
| 101 | + "/docs/en/contribution": [ |
| 102 | + { |
| 103 | + text: "For Maintainers", |
| 104 | + collapsed: false, |
| 105 | + items: [ |
| 106 | + { |
| 107 | + text: "Maintainer PR Guide", |
| 108 | + link: "docs/en/contribution/maintainers/pr_guide", |
| 109 | + }, |
| 110 | + ], |
| 111 | + }, |
| 112 | + ], |
94 | 113 | }, |
95 | | - ignoreDeadLinks: [ |
96 | | - /^https?:\/\/localhost/, |
| 114 | + |
| 115 | + socialLinks: [ |
| 116 | + { icon: "github", link: "https://github.com/Mockbukkit/Mockbukkit" }, |
| 117 | + { icon: "discord", link: "https://discord.gg/Xunsn6D8MB" }, |
97 | 118 | ], |
98 | | - vite: { |
99 | | - publicDir: "./public" |
100 | | - } |
101 | | -}) |
| 119 | + footer: { |
| 120 | + message: "Released under the MIT License.", |
| 121 | + copyright: "Copyright © 2017-2024 Mockbukkit", |
| 122 | + }, |
| 123 | + }, |
| 124 | + ignoreDeadLinks: [/^https?:\/\/localhost/], |
| 125 | + vite: { |
| 126 | + publicDir: "./public", |
| 127 | + }, |
| 128 | +}); |
0 commit comments