Skip to content

Commit

Permalink
feat(jzero): 更新文档
Browse files Browse the repository at this point in the history
  • Loading branch information
jaronnie committed Apr 17, 2024
1 parent a8403a6 commit 8a93184
Show file tree
Hide file tree
Showing 11 changed files with 67 additions and 106 deletions.
Binary file modified docs/src/.vuepress/public/favicon.ico
Binary file not shown.
4 changes: 3 additions & 1 deletion docs/src/.vuepress/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ export default hopeTheme({

iconAssets: "fontawesome-with-brands",

logo: "https://oss.jaronnie.com/avatar.png",
// made by https://gopherize.me
// favicon.ico made by https://www.bitbug.net
logo: "https://oss.jaronnie.com/jzero.jpg",

repo: "jaronnie/jzero",

Expand Down
9 changes: 9 additions & 0 deletions docs/src/guide/config/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: 配置模块
icon: gears
index: false
dir:
order: 5
---

<Catalog />
9 changes: 9 additions & 0 deletions docs/src/guide/config/logger.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: 日志配置
icon: gears
star: true
order: 1
category: 配置
tag:
- Guide
---
9 changes: 9 additions & 0 deletions docs/src/guide/config/prometheus.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: prometheus 配置
icon: gears
star: true
order: 2
category: 配置
tag:
- Guide
---
9 changes: 9 additions & 0 deletions docs/src/guide/config/telemetry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: 链路追踪配置
icon: gears
star: true
order: 3
category: 配置
tag:
- Guide
---
9 changes: 9 additions & 0 deletions docs/src/guide/develop/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: 开发模块
icon: puzzle-piece
index: false
dir:
order: 6
---

<Catalog />
9 changes: 9 additions & 0 deletions docs/src/guide/develop/proto.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: proto 规范
icon: puzzle-piece
star: true
order: 1
category: 开发
tag:
- Guide
---
9 changes: 9 additions & 0 deletions docs/src/guide/develop/template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: 模版定制化
icon: puzzle-piece
star: true
order: 2
category: 开发
tag:
- Guide
---
74 changes: 0 additions & 74 deletions docs/src/guide/gen.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,78 +36,4 @@ curl http://localhost:8001/api/v1.0/credential/version
grpcurl -plaintext localhost:8000 credentialpb.credential/CredentialVersion
# api
curl http://localhost:8001/api/v1/hello/me
```

执行命令后的代码结构为:

```shell
$ tree
.
├── cmd
│   ├── daemon.go
│   └── root.go
├── config.toml
├── daemon
│   ├── api
│   │   ├── app1.api
│   │   ├── file.api
│   │   └── hello.api
│   ├── daemon.go
│   ├── internal
│   │   ├── config
│   │   │   └── config.go
│   │   ├── handler
│   │   │   ├── file
│   │   │   │   ├── downloadhandler.go
│   │   │   │   └── uploadhandler.go
│   │   │   ├── hello
│   │   │   │   ├── helloparamhandler.go
│   │   │   │   ├── hellopathhandler.go
│   │   │   │   └── helloposthandler.go
│   │   │   ├── myhandler.go
│   │   │   ├── myroutes.go
│   │   │   └── routes.go
│   │   ├── logic
│   │   │   ├── credential
│   │   │   │   └── credentialversionlogic.go
│   │   │   ├── credentialv2
│   │   │   │   └── credentialversionlogic.go
│   │   │   ├── file
│   │   │   │   ├── downloadlogic.go
│   │   │   │   └── uploadlogic.go
│   │   │   ├── hello
│   │   │   │   ├── helloparamlogic.go
│   │   │   │   ├── hellopathlogic.go
│   │   │   │   └── hellopostlogic.go
│   │   │   ├── machine
│   │   │   │   └── machineversionlogic.go
│   │   │   └── machinev2
│   │   │   └── machineversionlogic.go
│   │   ├── server
│   │   │   ├── credential
│   │   │   │   └── credentialserver.go
│   │   │   ├── credentialv2
│   │   │   │   └── credentialv2server.go
│   │   │   ├── machine
│   │   │   │   └── machineserver.go
│   │   │   └── machinev2
│   │   │   └── machinev2server.go
│   │   ├── svc
│   │   │   └── servicecontext.go
│   │   └── types
│   │   └── types.go
│   ├── pb
│   │   ├── credentialpb
│   │   │   ├── credential.pb.go
│   │   │   └── credential_grpc.pb.go
│   │   └── machinepb
│   │   ├── machine.pb.go
│   │   └── machine_grpc.pb.go
│   └── proto
│   ├── credential.proto
│   └── machine.proto
├── go.mod
└── main.go

27 directories, 39 files
```
32 changes: 1 addition & 31 deletions docs/src/guide/new.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,34 +12,4 @@ flag 解释:

* module 表示新建项目的 go module
* dir 表示创建的项目目录路径
* app 表示项目名

生成的代码结构:

```shell
$ tree
.
├── cmd
│   ├── daemon.go
│   └── root.go
├── config.toml
├── daemon
│   ├── api
│   │   ├── app1.api
│   │   ├── file.api
│   │   └── hello.api
│   ├── daemon.go
│   ├── internal
│   │   ├── config
│   │   │   └── config.go
│   │   └── handler
│   │   ├── myhandler.go
│   │   └── myroutes.go
│   └── proto
│   ├── credential.proto
│   └── machine.proto
├── go.mod
└── main.go

8 directories, 14 files
```
* app 表示项目名

0 comments on commit 8a93184

Please sign in to comment.