Skip to content

Commit

Permalink
fix: change config to 2024
Browse files Browse the repository at this point in the history
  • Loading branch information
stevending1st committed Jan 28, 2025
1 parent 909728b commit f25156a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .vitepress/config/en.mts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { defineConfig } from 'vitepress'
// https://vitepress.dev/reference/site-config
export const en = defineConfig({
lang: 'en-US',
title: "2023 COSR",
description: "2023 China Open Source Report",
title: "2024 COSR",
description: "2024 China Open Source Report",

themeConfig: {
nav: [
Expand All @@ -30,7 +30,7 @@ export const en = defineConfig({
},

editLink: {
pattern: 'https://github.com/kaiyuanshe/2023-China-Open-Source-Report/edit/main/:path',
pattern: 'https://github.com/kaiyuanshe/2024-China-Open-Source-Report/edit/main/:path',
text: 'Edit this page on GitHub'
},
},
Expand Down
4 changes: 2 additions & 2 deletions .vitepress/config/shared.mts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ const deploymentEnvironment = process.env.VITE_DEPLOYMENT_ENVIRONMENT;
export const shared = defineConfig({
lastUpdated: true,

base: deploymentEnvironment === 'gitee' ? '/2023-china-open-source-report/' : deploymentEnvironment === 'vercel' ? '' : '/2023-China-Open-Source-Report/',
base: deploymentEnvironment === 'gitee' ? '/2024-china-open-source-report/' : deploymentEnvironment === 'vercel' ? '' : '/2024-China-Open-Source-Report/',

head: [
['link', { rel: 'icon', type: 'image/x-icon', href: '/image/China-Open-Source-Report.ico' }],
['link', { rel: 'icon', type: 'image/x-icon', href: '/2023-China-Open-Source-Report/image/China-Open-Source-Report.ico' }],
['link', { rel: 'icon', type: 'image/x-icon', href: '/2024-China-Open-Source-Report/image/China-Open-Source-Report.ico' }],
[
'script',
{ async: '', src: 'https://www.googletagmanager.com/gtag/js?id=G-7CSQ2KPB1F' }
Expand Down
6 changes: 3 additions & 3 deletions .vitepress/config/zh.mts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { defineConfig } from 'vitepress'
// https://vitepress.dev/reference/site-config
export const zh = defineConfig({
lang: 'zh-Hans',
title: "2023 中国开源年度报告",
description: "2023 中国开源年度报告",
title: "2024 中国开源年度报告",
description: "2024 中国开源年度报告",

themeConfig: {
nav: [
Expand All @@ -30,7 +30,7 @@ export const zh = defineConfig({
},

editLink: {
pattern: 'https://github.com/kaiyuanshe/2023-China-Open-Source-Report/edit/main/:path',
pattern: 'https://github.com/kaiyuanshe/2024-China-Open-Source-Report/edit/main/:path',
text: '在 GitHub 上编辑本页内容'
},

Expand Down

0 comments on commit f25156a

Please sign in to comment.