Skip to content

Commit

Permalink
📝 docs: update document
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx committed Nov 22, 2023
1 parent 6393803 commit 447eeb8
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 1 deletion.
18 changes: 18 additions & 0 deletions .i18nrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/**
*
* @type {import("@lobehub/i18n-cli").Config}
*/
module.exports = {
markdown: {
entry: ['docs/**/**'],
entryLocale: 'zh-CN',
entryExtension: '.zh-CN.md',
exclude: ['changelog.md'],
outputLocales: ['en-US'],
outputExtensions: (locale, { getDefaultExtension }) => {
if (locale === 'en-US') return '.md';
return getDefaultExtension(locale);
},
},
modelName: 'gpt-3.5-turbo-1106',
};
14 changes: 14 additions & 0 deletions docs/api-reference/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
title: API Reference
nav:
title: API
order: 10
---

# API Reference Guide

## TTS

- [EdgeSpeechTTS](./edge-speech-tts.en-US.md)
- [MicrosoftSpeechTTS](microsoft-speech-tts.en-US.md)
- [OpenaiTTS](openai-tts.en-US.md)
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"docs:build-analyze": "ANALYZE=1 dumi build",
"docs:dev": "npm run setup && dumi dev",
"doctor": "father doctor",
"i18n-md": "lobe-i18n md",
"lint": "eslint \"{src,api,lib}/**/*.{js,jsx,ts,tsx}\" --fix",
"lint:md": "remark . --quiet --frail --output",
"prepare": "husky install",
Expand Down Expand Up @@ -93,11 +94,11 @@
},
"devDependencies": {
"@commitlint/cli": "^18",
"@lobehub/i18n-cli": "^1.11.1",
"@lobehub/lint": "latest",
"@lobehub/ui": "^1",
"@types/lodash-es": "^4",
"@types/node": "^20",
"@types/query-string": "^6",
"@types/react": "^18",
"@types/react-dom": "^18",
"@types/uuid": "^9",
Expand Down

0 comments on commit 447eeb8

Please sign in to comment.