|
1 |
| -import { defineConfig } from 'vitepress' |
| 1 | +import { defineConfig } from "vitepress"; |
2 | 2 |
|
3 |
| -import { quickstartSidebar, referenceSidebar, guidesSidebar, conceptsSidebar } from './sidebars' |
| 3 | +import { |
| 4 | + conceptsSidebar, |
| 5 | + guidesSidebar, |
| 6 | + quickstartSidebar, |
| 7 | + referenceSidebar, |
| 8 | +} from "./sidebars"; |
4 | 9 |
|
5 | 10 | // https://vitepress.dev/reference/site-config
|
6 | 11 | export default defineConfig({
|
7 | 12 | title: "Caido",
|
8 | 13 | titleTemplate: "Documentation",
|
9 | 14 | description: "Official Caido Documentation",
|
10 | 15 |
|
11 |
| - srcDir: 'src', |
| 16 | + srcDir: "src", |
12 | 17 | appearance: "force-dark",
|
13 | 18 | sitemap: {
|
14 |
| - hostname: "https://docs.caido.io" |
| 19 | + hostname: "https://docs.caido.io", |
15 | 20 | },
|
16 | 21 |
|
17 | 22 | head: [
|
18 |
| - ['link', { rel: 'icon', href: '/favicon.png' }], |
19 |
| - ["script", { "data-api": "/stats/event", src: "/stats/script.js", "defer":"", "data-domain":"docs.caido.io" }] |
| 23 | + ["link", { rel: "icon", href: "/favicon.png" }], |
| 24 | + [ |
| 25 | + "script", |
| 26 | + { |
| 27 | + "data-api": "/stats/event", |
| 28 | + src: "/stats/script.js", |
| 29 | + defer: "", |
| 30 | + "data-domain": "docs.caido.io", |
| 31 | + }, |
| 32 | + ], |
20 | 33 | ],
|
21 | 34 | ignoreDeadLinks: "localhostLinks",
|
22 | 35 |
|
23 | 36 | themeConfig: {
|
24 | 37 | logo: {
|
25 |
| - src: '/logo.png', |
| 38 | + src: "/logo.png", |
26 | 39 | "no-shadow": true,
|
27 | 40 | },
|
28 | 41 |
|
29 | 42 | search: {
|
30 |
| - provider: 'local', |
| 43 | + provider: "local", |
31 | 44 | },
|
32 | 45 |
|
33 | 46 | nav: [
|
34 |
| - { text: 'Quickstart', link: '/quickstart/' }, |
35 |
| - { text: 'Guides', link: '/guides/' }, |
36 |
| - { text: 'Reference', link: '/reference/' }, |
37 |
| - { text: 'Concepts', link: '/concepts/' }, |
38 |
| - { text: 'FAQ', link: '/faq' }, |
39 |
| - { text: "Report a Bug", link: "/report_bug" } |
| 47 | + { text: "Quickstart", link: "/quickstart/" }, |
| 48 | + { text: "Guides", link: "/guides/" }, |
| 49 | + { text: "Reference", link: "/reference/" }, |
| 50 | + { text: "Concepts", link: "/concepts/" }, |
| 51 | + { text: "FAQ", link: "/faq" }, |
| 52 | + { text: "Report a Bug", link: "/report_bug" }, |
40 | 53 | ],
|
41 | 54 |
|
42 | 55 | sidebar: {
|
43 |
| - '/quickstart/': quickstartSidebar, |
44 |
| - '/reference/': referenceSidebar, |
45 |
| - '/guides/': guidesSidebar, |
46 |
| - '/concepts/': conceptsSidebar, |
| 56 | + "/quickstart/": quickstartSidebar, |
| 57 | + "/reference/": referenceSidebar, |
| 58 | + "/guides/": guidesSidebar, |
| 59 | + "/concepts/": conceptsSidebar, |
47 | 60 | },
|
48 | 61 |
|
49 | 62 | socialLinks: [
|
50 |
| - { icon: 'discord', link: 'https://links.caido.io/discord' }, |
51 |
| - { icon: 'twitter', link: 'https://twitter.com/caidoio' }, |
52 |
| - { icon: 'github', link: 'https://github.com/caido/caido' }, |
53 |
| - ] |
54 |
| - } |
55 |
| -}) |
| 63 | + { icon: "discord", link: "https://links.caido.io/discord" }, |
| 64 | + { icon: "twitter", link: "https://twitter.com/caidoio" }, |
| 65 | + { icon: "github", link: "https://github.com/caido/caido" }, |
| 66 | + ], |
| 67 | + }, |
| 68 | +}); |
0 commit comments