Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
dafengzhen committed Mar 16, 2024
1 parent 722d7d7 commit 06e671b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
14 changes: 8 additions & 6 deletions docs/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,27 @@ import { defineConfig } from 'vitepress';
import { en } from './en.mjs';
import { zh } from './zh.mjs';

const base = '/youdeyiwu/'

// https://vitepress.dev/reference/site-config
export default defineConfig({
lang: 'en-US',
locales: {
root: { label: 'English', ...en },
zh: { label: '简体中文', ...zh },
},
base: '/youdeyiwu/',
base,
cleanUrls: true,
title: 'Youdeyiwu',
description: 'Youdeyiwu is an open-source lightweight forum',
head: [
['link', { rel: 'icon', href: '/docs/favicon/favicon.ico' }],
['link', { rel: 'icon', href: `${base}favicon/favicon.ico` }],
[
'link',
{
rel: 'apple-touch-icon',
sizes: '180x180',
href: '/docs/favicon/apple-touch-icon.png',
href: `${base}favicon/apple-touch-icon.png`,
},
],
[
Expand All @@ -29,7 +31,7 @@ export default defineConfig({
rel: 'icon',
type: 'image/png',
sizes: '32x32',
href: '/docs/favicon/favicon-32x32.png',
href: `${base}favicon/favicon-32x32.png`,
},
],
[
Expand All @@ -38,10 +40,10 @@ export default defineConfig({
rel: 'icon',
type: 'image/png',
sizes: '16x16',
href: '/docs/assets/favicon/favicon-16x16.png',
href: `${base}assets/favicon/favicon-16x16.png`,
},
],
['link', { rel: 'manifest', href: '/docs/favicon/site.webmanifest' }],
['link', { rel: 'manifest', href: `${base}favicon/site.webmanifest` }],
['meta', { name: 'theme-color', content: '#fc5bb6' }],
['meta', { property: 'og:type', content: 'website' }],
['meta', { property: 'og:locale', content: 'en' }],
Expand Down
2 changes: 1 addition & 1 deletion docs/public/favicon/site.webmanifest
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"name":"Youdeyiwu","short_name":"Youdeyiwu","icons":[{"src":"/docs/favicon/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/docs/favicon/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"}
{"name":"Youdeyiwu","short_name":"Youdeyiwu","icons":[{"src":"/youdeyiwu/favicon/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/youdeyiwu/favicon/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"}

0 comments on commit 06e671b

Please sign in to comment.