Skip to content

Commit 874aa62

Browse files
authored
chore: add zh content (#31)
1 parent 06078bc commit 874aa62

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+6412
-89
lines changed

astro.config.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@ import { rehypeShiki } from '@astrojs/markdown-remark';
44
import sitemap from '@astrojs/sitemap';
55
import mdx from '@astrojs/mdx';
66
import icon from "astro-icon";
7+
import remarkCustomHeaderId from 'remark-custom-header-id';
78
import { i18n, filterSitemapByDefaultLocale } from "astro-i18n-aut/integration";
89

910
export const defaultLocale = 'en';
10-
const locales = Object.freeze({
11+
export const locales = Object.freeze({
1112
en: 'en',
1213
zh: 'zh-Hans',
1314
});
@@ -24,6 +25,7 @@ export default defineConfig({
2425
[rehypeMermaid, { dark: true, strategy: 'img-svg' }],
2526
[rehypeShiki, { themes: { light: 'one-light', dark: 'one-dark-pro' } }]
2627
],
28+
remarkPlugins: [remarkCustomHeaderId],
2729
remarkRehype: {
2830
footnoteLabelTagName: 'span',
2931
},

package.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
"build:dev": "astro check && SKIP_RESOURCE_FETCH=1 astro build",
1212
"preview": "astro preview",
1313
"astro": "astro",
14-
"wrangler": "wrangler"
14+
"wrangler": "wrangler",
15+
"translate": "node ./translate.mjs"
1516
},
1617
"devDependencies": {
1718
"@astrojs/check": "^0.9.1",
@@ -22,9 +23,15 @@
2223
"astro": "^4.13.1",
2324
"astro-i18n-aut": "^0.7.0",
2425
"astro-icon": "^1.1.1",
26+
"commander": "^12.1.0",
27+
"dotenv": "^16.4.5",
28+
"https-proxy-agent": "^7.0.5",
29+
"listr2": "^8.2.5",
2530
"open-graph-scraper": "^6.8.2",
31+
"openai": "^4.71.0",
2632
"playwright": "^1.48.2",
2733
"rehype-mermaid": "^3.0.0",
34+
"remark-custom-header-id": "^1.0.0",
2835
"typescript": "^5.5.4",
2936
"wrangler": "^3.83.0"
3037
}

0 commit comments

Comments
 (0)