Skip to content

Commit

Permalink
refactor: date var
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesse205 committed Dec 21, 2023
1 parent bfb3b70 commit b893204
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ interface ThemeConfig extends DefaultTheme.Config {
}

// 原始文档日期
const ORIGIN_DOCUMENT_DATE = '2023-12-22'
const ORIGIN_DELTA_DOCUMENT_DATE = '2023-08-15'
const originDocumentDate = {
magisk: '2023-12-22',
delta: '2023-08-15'
}

const MATCH_RELEASE_REG = /- \[(v[\d.]*)\]\((\d*).md\)/g

Expand Down Expand Up @@ -97,7 +99,7 @@ export default defineConfig({
['link', { rel: 'apple-touch-icon', href: `${base}apple-touch-icon.png` }]
],
themeConfig: {
originDocumentDate: ORIGIN_DOCUMENT_DATE,
originDocumentDate: originDocumentDate,
logo: '/favicon.ico',
outlineTitle: '本页内容',
lastUpdatedText: '更新时间',
Expand Down Expand Up @@ -129,8 +131,8 @@ export default defineConfig({
] as DefaultTheme.NavItem[],
sidebar,
footer: {
message: `原始 Magisk 文档版本: ${ORIGIN_DOCUMENT_DATE}<br/>
原始 Magisk Delta 文档版本: ${ORIGIN_DELTA_DOCUMENT_DATE}<br/>
message: `原始 Magisk 文档版本: ${originDocumentDate.magisk}<br/>
原始 Magisk Delta 文档版本: ${originDocumentDate.delta}<br/>
在 GPL-3.0 许可下发布`
},
editLink: {
Expand Down

0 comments on commit b893204

Please sign in to comment.