Skip to content

Commit

Permalink
docs: url lang tag
Browse files Browse the repository at this point in the history
  • Loading branch information
jevantang committed Jul 19, 2024
1 parent f37f46a commit 27e6cc9
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 29 deletions.
42 changes: 21 additions & 21 deletions docs/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export default defineConfig({
provider: 'local',
options: {
locales: {
'zh-Hans': {
'zh-hans': {
translations: {
button: {
buttonText: '搜索文档',
Expand Down Expand Up @@ -108,17 +108,17 @@ export default defineConfig({
label: 'English',
lang: 'en-US'
},
'zh-Hans': {
'zh-hans': {
label: '简体中文',
lang: 'zh-Hans',
description: '插件管理器是一个便捷的 Laravel 扩展包,用于模块化管理您的庞大 Laravel 应用程序。每个插件就像一个独立的 Laravel 应用或者微服务,可以定义自己的视图、控制器和模型。',
themeConfig: {
nav: [
{ text: '首页', link: '/zh-Hans/' },
{ text: '指南', link: '/zh-Hans/guide/', activeMatch: '/zh-Hans/guide/' },
{ text: '插件指令', link: '/zh-Hans/artisan/', activeMatch: '/zh-Hans/artisan/' },
{ text: '命令字', link: '/zh-Hans/command-word/', activeMatch: '/zh-Hans/command-word/' },
{ text: 'DTO', link: '/zh-Hans/dto/', activeMatch: '/zh-Hans/dto/' },
{ text: '首页', link: '/zh-hans/' },
{ text: '指南', link: '/zh-hans/guide/', activeMatch: '/zh-hans/guide/' },
{ text: '插件指令', link: '/zh-hans/artisan/', activeMatch: '/zh-hans/artisan/' },
{ text: '命令字', link: '/zh-hans/command-word/', activeMatch: '/zh-hans/command-word/' },
{ text: 'DTO', link: '/zh-hans/dto/', activeMatch: '/zh-hans/dto/' },
],

footer: {
Expand Down Expand Up @@ -148,38 +148,38 @@ export default defineConfig({
text: '使用指南',
collapsed: false,
items: [
{ text: '介绍', link: '/zh-Hans/guide/' },
{ text: '安装和配置', link: '/zh-Hans/guide/installation.md' },
{ text: '插件结构', link: '/zh-Hans/guide/structure.md' },
{ text: '使用案例', link: '/zh-Hans/guide/use-cases.md' },
{ text: '介绍', link: '/zh-hans/guide/' },
{ text: '安装和配置', link: '/zh-hans/guide/installation.md' },
{ text: '插件结构', link: '/zh-hans/guide/structure.md' },
{ text: '使用案例', link: '/zh-hans/guide/use-cases.md' },
]
},
{
text: '插件指令',
collapsed: false,
items: [
{ text: '总览', link: '/zh-Hans/artisan/' },
{ text: '使用流程', link: '/zh-Hans/artisan/started.md' },
{ text: '创建新插件', link: '/zh-Hans/artisan/create.md' },
{ text: '开发指令', link: '/zh-Hans/artisan/development.md' },
{ text: '控制指令', link: '/zh-Hans/artisan/control.md' },
{ text: '管理指令', link: '/zh-Hans/artisan/management.md' },
{ text: '总览', link: '/zh-hans/artisan/' },
{ text: '使用流程', link: '/zh-hans/artisan/started.md' },
{ text: '创建新插件', link: '/zh-hans/artisan/create.md' },
{ text: '开发指令', link: '/zh-hans/artisan/development.md' },
{ text: '控制指令', link: '/zh-hans/artisan/control.md' },
{ text: '管理指令', link: '/zh-hans/artisan/management.md' },
]
},
{
text: '命令字管理器',
collapsed: false,
items: [
{ text: '介绍', link: '/zh-Hans/command-word/index.md' },
{ text: '命令字开发', link: '/zh-Hans/command-word/development.md' },
{ text: '命令字使用', link: '/zh-Hans/command-word/usage.md' },
{ text: '介绍', link: '/zh-hans/command-word/index.md' },
{ text: '命令字开发', link: '/zh-hans/command-word/development.md' },
{ text: '命令字使用', link: '/zh-hans/command-word/usage.md' },
]
},
{
text: 'DTO',
collapsed: false,
items: [
{ text: '介绍', link: '/zh-Hans/dto/index.md' },
{ text: '介绍', link: '/zh-hans/dto/index.md' },
]
}
],
Expand Down
2 changes: 1 addition & 1 deletion docs/zh-Hans/command-word/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
| --- | --- |
| `\FresnsCmdWord` | 命令字立面(Facades) |
| `FresnsEmail` | 请求对象 `fskey`,留空或填 `Fresns` 则表示由主程序处理请求 |
| `sendEmail` | 命令字(可参考 [Fresns 命令字](https://docs.fresns.com/zh-Hans/open-source/supports/cmd-words/basic.html)|
| `sendEmail` | 命令字(可参考 [Fresns 命令字](https://docs.fresns.com/zh-hans/open-source/supports/cmd-words/basic.html)|
| `$wordBody` | 命令字传参的参数列表 |

```php
Expand Down
4 changes: 2 additions & 2 deletions docs/zh-Hans/guide/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ Plugin Manager 已经使用在 Fresns 社区程序中,并且构建了一个 Fr

Fresns 是一款免费开源的社交网络服务软件,专为跨平台而打造的通用型社区产品,支持灵活多样的内容形态,可以满足多种运营场景,符合时代潮流,更开放且更易于二次开发。

- Fresns 官网 [https://fresns.org](https://fresns.org/zh-Hans/)
- Fresns 应用市场 [https://marketplace.fresns.com](https://marketplace.fresns.com/zh-Hans/open-source)
- Fresns 官网 [https://fresns.org](https://fresns.org/zh-hans/)
- Fresns 应用市场 [https://marketplace.fresns.com](https://marketplace.fresns.com/zh-hans/open-source)

## 代码仓库

Expand Down
4 changes: 2 additions & 2 deletions docs/zh-Hans/guide/use-cases.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ Plugin Manager 已经使用在 Fresns 社区程序中,并且构建了一个 Fr

Fresns 是一款免费开源的社交网络服务软件,专为跨平台而打造的通用型社区产品,支持灵活多样的内容形态,可以满足多种运营场景,符合时代潮流,更开放且更易于二次开发。

- Fresns 官网 [https://fresns.org](https://fresns.org/zh-Hans/)
- Fresns 应用市场 [https://marketplace.fresns.com](https://marketplace.fresns.com/zh-Hans/open-source)
- Fresns 官网 [https://fresns.org](https://fresns.org/zh-hans/)
- Fresns 应用市场 [https://marketplace.fresns.com](https://marketplace.fresns.com/zh-hans/open-source)

## 管理菜单

Expand Down
6 changes: 3 additions & 3 deletions docs/zh-Hans/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ hero:
actions:
- theme: brand
text: 开始使用
link: /zh-Hans/guide/
link: /zh-hans/guide/
- theme: alt
text: 插件指令
link: /zh-Hans/artisan/
link: /zh-hans/artisan/
- theme: alt
text: 命令字管理器
link: /zh-Hans/command-word/
link: /zh-hans/command-word/

features:
- icon: 🔌
Expand Down

0 comments on commit 27e6cc9

Please sign in to comment.