1+ // docs/.vitepress/config.ts
2+
3+ import { defineConfig } from 'vitepress'
4+ import { tabsMarkdownPlugin } from 'vitepress-plugin-tabs'
5+ import { sidebar } from './sidebar.js' // Import the auto-generated sidebar
6+ import { fileURLToPath } from 'node:url' ;
7+
8+ export default defineConfig ( {
9+ lang : 'en-US' , // Optional: Set the language
10+ title : "Visual Novel Wiki" ,
11+ description : "Get your Visual Novels running!" ,
12+ head : [
13+ [ 'meta' , { name : 'author' , content : 'Visual Novel Wiki Team' } ] ,
14+ [ 'meta' , { name : 'keywords' , content : 'visual novel, compatibility, game, wiki' } ]
15+ ] ,
16+
17+ lastUpdated : true ,
18+
19+ markdown : {
20+ config ( md ) {
21+ md . use ( tabsMarkdownPlugin )
22+ }
23+ } ,
24+
25+ // Useful for calling components within md, i.e. with use <component> from '@components/<component>.vue'
26+ // Don't have to type the whole path.
27+ vite : {
28+ resolve : {
29+ alias : {
30+ '@components' : fileURLToPath ( new URL ( './theme/components' , import . meta. url ) ) ,
31+ '@public' : fileURLToPath ( new URL ( '../public' , import . meta. url ) ) ,
32+ }
33+ }
34+ } ,
35+
36+ themeConfig : {
37+ // https://vitepress.dev/reference/default-theme-config
38+ logo : '/necoarc.png' , // Optional: Path to your logo in your `docs/public` directory
39+
40+ nav : [
41+ { text : 'Home' , link : '/' } ,
42+ { text : 'Visual Novel Compatibility List' , link : 'visual-novel-compatibility-list' } ,
43+ { text : 'Save Files' , link : 'save-files' } ,
44+ // Example: Add more nav links if needed
45+ // { text: 'Guide', link: '/guide/introduction' },
46+ // {
47+ // text: 'Dropdown Menu',
48+ // items: [
49+ // { text: 'Item A', link: '/item-a' },
50+ // { text: 'Item B', link: '/item-b' }
51+ // ]
52+ // }
53+ ] ,
54+
55+ // Use the imported sidebar from sidebar.js
56+ sidebar : sidebar ,
57+
58+ // Table of Contents (right side on page) nesting
59+ outline : {
60+ level : [ 1 , 3 ] , // 1,3 means h1 to h3 elements will be nested.
61+ } ,
62+
63+ search : {
64+ provider : 'local'
65+ } ,
66+
67+ // Optional: Edit link (points to your repo)
68+ editLink : {
69+ pattern : 'https://github.com/VNWiki/visual-novel-wiki/edit/main/docs/:path' ,
70+ text : 'Edit this page on GitHub'
71+ } ,
72+
73+ // Site-wide footer
74+ footer : {
75+ message : 'Content is available under the Creative Commons Attribution-NoDerivs License. <br />If anything is missing, check out the <a href="https://web.archive.org/web/20241006061214/https://www.visualnovelwiki.org/" target="_blank" rel="noopener noreferrer">old wiki on archive.org</a> or its <a href="https://github.com/VNWiki/visualnovelwiki_old" target="_blank" rel="noopener noreferrer">GitHub archived repository</a>.' ,
76+ copyright : 'by visualnovelwiki' // Or 'Copyright © 2024 visualnovelwiki' if you prefer that format
77+ } ,
78+
79+ socialLinks : [
80+ // Example: Add your actual social links here
81+ { icon : 'github' , link : 'https://github.com/VNWiki/vnwiki.github.io' } ,
82+ { icon : 'discord' , link : 'https://discord.gg/dejvpMhWaH' } ,
83+ // { icon: 'bluesky', link: 'https://bsky.app/your-handle' }
84+ ] ,
85+
86+ // Optional: Carbon Ads (if you have an ID)
87+ // carbonAds: {
88+ // code: 'YOUR_CARBON_PLACEMENT_CODE',
89+ // placement: 'YOUR_CARBON_PLACEMENT_ID'
90+ // }
91+
92+ // Optional: Customize the "Last Updated" text (default is 'Last updated')
93+ // lastUpdatedText: 'Content Last Updated On:'
94+ }
95+ } )
0 commit comments