Skip to content

Commit 5b81a44

Browse files
committed
import existing project
1 parent f5035d5 commit 5b81a44

171 files changed

Lines changed: 13153 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/img-optim.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Optimize images
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- '**/*.png'
7+
- '**/*.jpg'
8+
- '**/*.jpeg'
9+
- '**/*.webp'
10+
11+
jobs:
12+
optimize:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0
18+
19+
- name: Install image tools
20+
run: |
21+
sudo apt-get update
22+
sudo apt-get install -y oxipng jpegoptim webp
23+
24+
- name: Optimize PNGs
25+
run: |
26+
find . -type f -name '*.png' -print0 | xargs -0 oxipng --strip safe --opt max
27+
28+
- name: Optimize JPGs
29+
run: |
30+
find . -type f \( -name '*.jpg' -o -name '*.jpeg' \) -print0 | xargs -0 jpegoptim --strip-all --max=85
31+
32+
- name: Optimize WebP
33+
run: |
34+
find . -type f -name '*.webp' -print0 | xargs -0 -I{} sh -c 'cwebp -q 80 "$1" -o "$1"' _ {}
35+
36+
- name: Commit changes
37+
run: |
38+
git config user.name github-actions
39+
git config user.email github-actions@github.com
40+
git add .
41+
git diff --cached --quiet || git commit -m "chore: optimize images"
42+
git push

.gitignore

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?
25+
26+
# Builds
27+
build/
28+
29+
# Local cache
30+
docs/.vitepress/cache/

docs/.vitepress/config.ts

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
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

Comments
 (0)