Skip to content

nuan1989/gf-site

 
 

Repository files navigation

gf-site

本地运行

# 安装依赖
npm ci

# 运行
npm run start

# 构建
npm run build

多语言

# 多语言文档路径
https://docusaurus.io/docs/i18n/introduction#translation-files-location
https://docusaurus.io/docs/api/plugins/@docusaurus/plugin-content-docs#i18n

mkdir -p i18n/en/docusaurus-plugin-content-docs/current
cp -r docs/** i18n/en/docusaurus-plugin-content-docs/current

mkdir -p i18n/en/docusaurus-plugin-content-docs-quick/current
cp -r quick/** i18n/en/docusaurus-plugin-content-docs-quick/current

# 创建多语言元数据
npm run write-translations -- --locale en

# 指定i18n语言运行
npm run start -- --locale en

评论设置

文档 https://rikublock.dev/docs/tutorials/giscus-integration/

# 因为插入的位置不同,我们使用 swizzle DocItem/Paginator来修改
npm run swizzle @docusaurus/theme-classic DocItem/Paginator -- --wrap --typescript

About

GoFrame official site.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 58.6%
  • CSS 34.3%
  • Go 6.0%
  • Other 1.1%