-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 9dced73
Showing
34 changed files
with
3,403 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
node_modules/ | ||
|
||
.vitepress/dist | ||
.vitepress/cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { defineConfig } from 'vitepress' | ||
import { shared } from './shared' | ||
import { en } from './en' | ||
import { zh } from './zh' | ||
|
||
// https://vitepress.dev/reference/site-config | ||
export default defineConfig({ | ||
...shared, | ||
|
||
locales: { | ||
root: { label: "简体中文", ...zh }, | ||
en: { label: "English", ...en }, | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { defineConfig } from "vitepress"; | ||
|
||
export const en = defineConfig({ | ||
lang: 'en-US', | ||
|
||
title: "Full Stack in 7 days", | ||
description: "TODO", | ||
themeConfig: { | ||
// https://vitepress.dev/reference/default-theme-config | ||
}, | ||
|
||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { defineConfig } from "vitepress"; | ||
|
||
export const shared = defineConfig({ | ||
lastUpdated: true, | ||
cleanUrls: true, | ||
|
||
markdown: { | ||
math: true | ||
}, | ||
|
||
themeConfig: { | ||
|
||
socialLinks: [ | ||
{ icon: 'github', link: 'https://github.com/Candinya/full-stack-in-7-days' } | ||
], | ||
}, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
// .vitepress/theme/index.ts | ||
import DefaultTheme from 'vitepress/theme'; | ||
import giscusTalk from 'vitepress-plugin-comment-with-giscus'; | ||
import 'viewerjs/dist/viewer.min.css'; | ||
import imageViewer from 'vitepress-plugin-image-viewer'; | ||
import vImageViewer from 'vitepress-plugin-image-viewer/lib/vImageViewer.vue'; | ||
import { useData, useRoute } from 'vitepress'; | ||
|
||
export default { | ||
...DefaultTheme, | ||
enhanceApp(ctx) { | ||
DefaultTheme.enhanceApp(ctx); | ||
ctx.app.component('vImageViewer', vImageViewer); | ||
}, | ||
setup() { | ||
// Get frontmatter and route | ||
const { frontmatter } = useData(); | ||
const route = useRoute(); | ||
|
||
// Obtain configuration from: https://giscus.app/ | ||
giscusTalk({ | ||
repo: 'Candinya/full-stack-in-7-days', | ||
repoId: 'R_kgDOLUGQVA', | ||
category: '读者说', | ||
categoryId: 'DIC_kwDOLUGQVM4CdTt3', | ||
mapping: 'pathname', | ||
reactionsEnabled: "1", | ||
inputPosition: 'top', | ||
lang: 'zh-CN', | ||
lightTheme: 'light', | ||
darkTheme: 'transparent_dark', | ||
loading: 'lazy', | ||
}, { | ||
frontmatter, route | ||
}, | ||
// Whether to activate the comment area on all pages. | ||
// The default is true, which means enabled, this parameter can be ignored; | ||
// If it is false, it means it is not enabled. | ||
// You can use `comment: true` preface to enable it separately on the page. | ||
true | ||
); | ||
|
||
imageViewer(route); | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
import { defineConfig } from "vitepress"; | ||
|
||
export const zh = defineConfig({ | ||
lang: 'zh-Hans', | ||
|
||
title: "7天全栈计划", | ||
description: "挑战自己,用一周的时间走通整套全栈开发的流程", | ||
themeConfig: { | ||
// https://vitepress.dev/reference/default-theme-config | ||
|
||
sidebar: [ | ||
{ | ||
text: '目录', | ||
collapsed: false, | ||
items: [ | ||
{ text: 'Day 1 - 初探编程', link: '/what-is-programming/' }, | ||
{ text: 'Day 2 - 前端的魅力', link: '/frontend-intro/' } | ||
] | ||
} | ||
], | ||
|
||
editLink: { | ||
pattern: 'https://github.com/Candinya/full-stack-in-7-days/edit/master/:path', | ||
text: '在 GitHub 上编辑此页面' | ||
}, | ||
|
||
footer: { | ||
message: '基于 <a href="https://creativecommons.org/licenses/by-sa/4.0/deed.zh-hans" target="_blank">CC-BY-SA-4.0</a> 授权', | ||
copyright: `版权所有 © 2024-${new Date().getFullYear()} Nya Candy` | ||
}, | ||
|
||
docFooter: { | ||
prev: '上一页', | ||
next: '下一页' | ||
}, | ||
|
||
outline: { | ||
label: '页面导航' | ||
}, | ||
|
||
lastUpdated: { | ||
text: '最后更新于', | ||
formatOptions: { | ||
dateStyle: 'short', | ||
timeStyle: 'short' | ||
} | ||
}, | ||
|
||
langMenuLabel: '多语言', | ||
returnToTopLabel: '回到顶部', | ||
sidebarMenuLabel: '菜单', | ||
darkModeSwitchLabel: '主题', | ||
lightModeSwitchTitle: '切换到浅色模式', | ||
darkModeSwitchTitle: '切换到深色模式', | ||
|
||
search: { | ||
provider: "local", | ||
options: { | ||
translations: { | ||
button: { | ||
buttonText: "搜索文档", | ||
buttonAriaLabel: "搜索文档", | ||
}, | ||
modal: { | ||
displayDetails: "显示详情", | ||
resetButtonTitle: "清除查询条件", | ||
backButtonTitle: "返回", | ||
noResultsText: "抱歉,暂时没有相关结果", | ||
footer: { | ||
selectText: "选择", | ||
navigateText: "切换", | ||
closeText: "关闭", | ||
}, | ||
}, | ||
}, | ||
}, | ||
}, | ||
}, | ||
|
||
}) |
Oops, something went wrong.