Skip to content

Commit

Permalink
Update site config and add 6-25 dailay
Browse files Browse the repository at this point in the history
  • Loading branch information
Freelander committed Jun 25, 2024
1 parent 26ee9ea commit 381a230
Show file tree
Hide file tree
Showing 12 changed files with 137 additions and 335 deletions.
4 changes: 2 additions & 2 deletions docs/.vitepress/config/index.mts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { defineConfig } from 'vitepress'

import shared from './shared'
import en from './en'
// import en from './en'
import zh from './zh'

export default defineConfig({
...shared,
locales: {
root: { label: '简体中文', ...zh },
en: { label: 'English', ...en },
// en: { label: 'English', ...en },
}
})
6 changes: 3 additions & 3 deletions docs/.vitepress/config/zh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ export default defineConfig({
prev: '下一期',
next: '上一期'
},
outlineTitle: "大纲",
outlineTitle: "目录",
lastUpdatedText: "最近更新时间",

sidebar: createSideBarZH(),

socialLinks: [
{ icon: 'x', link: 'https://x.com/Justin1024go' },
{ icon: 'github', link: 'https://github.com/Justin3go/FAV0' },
{ icon: 'x', link: 'https://x.com/GoJun315' },
{ icon: 'github', link: 'https://github.com/freelander' },
{
icon: {
svg: '<svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="0 0 512 512"><title>RSS</title><path d="M108.56,342.78a60.34,60.34,0,1,0,60.56,60.44A60.63,60.63,0,0,0,108.56,342.78Z"/><path d="M48,186.67v86.55c52,0,101.94,15.39,138.67,52.11s52,86.56,52,138.67h86.66C325.33,312.44,199.67,186.67,48,186.67Z"/><path d="M48,48v86.56c185.25,0,329.22,144.08,329.22,329.44H464C464,234.66,277.67,48,48,48Z"/></svg>',
Expand Down
2 changes: 1 addition & 1 deletion docs/.vitepress/theme/components/Subscribe.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</template>
<t-button theme="default" variant="dashed" style="margin-bottom: 10px">
<template #icon><NotificationIcon /></template>
订阅本周刊(公众号)
加入 AIGC 交流群
</t-button>
</t-popup>
</template>
Expand Down
12 changes: 7 additions & 5 deletions docs/.vitepress/theme/components/TDesignDark.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@ const { isDark } = useData();
watch(
isDark,
() => {
if(isDark.value) {
document.documentElement.setAttribute('theme-mode', 'dark');
} else {
document.documentElement.removeAttribute('theme-mode');
}
if (typeof document !== 'undefined') {
if(isDark.value) {
document.documentElement.setAttribute('theme-mode', 'dark');
} else {
document.documentElement.removeAttribute('theme-mode');
}
}
},
{
immediate: true,
Expand Down
30 changes: 30 additions & 0 deletions docs/.vitepress/theme/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -151,3 +151,33 @@ main > div > div > pre > code {
.VPSwitchAppearance .check {
transform: none !important;
}

/** 自定义样式 */

.vp-doc h2,h3,h4 {
line-height: 68px;
color: #00b5ad !important;
margin: 0;
border-top: 0px;
padding-top: 0px;
padding-bottom: 16px;
}

strong, b {
color: rgb(34, 107, 163);
}

.vp-doc a {
font-style: italic;
color: rgb(255, 76, 0);
}

.vp-doc a:hover {
font-style: italic;
color: rgb(255, 76, 0);
}

.vp-doc img {
padding-top: 22px;
padding-bottom: 22px;
}
6 changes: 1 addition & 5 deletions docs/.vitepress/utils/createSideBar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,7 @@ export function createSideBarZH() {
text: '2024年',
collapsed: true,
items: [
{ text: '6 月 14 日', link: '/posts/2024/6-14' },
{ text: '6 月 13 日', link: '/posts/2024/6-13' },
{ text: '6 月 12 日', link: '/posts/2024/6-12' },
{ text: '6 月 11 日', link: '/posts/2024/6-11' },
{ text: '6 月 10 日', link: '/posts/2024/6-10' },
{ text: '6 月 25 日', link: '/posts/2024/6-25' },
]
}
]
Expand Down
56 changes: 0 additions & 56 deletions docs/posts/2024/6-10.md

This file was deleted.

68 changes: 0 additions & 68 deletions docs/posts/2024/6-11.md

This file was deleted.

62 changes: 0 additions & 62 deletions docs/posts/2024/6-12.md

This file was deleted.

60 changes: 0 additions & 60 deletions docs/posts/2024/6-13.md

This file was deleted.

Loading

0 comments on commit 381a230

Please sign in to comment.