Skip to content

Commit

Permalink
新增最佳实践
Browse files Browse the repository at this point in the history
  • Loading branch information
askuy committed Jan 9, 2024
1 parent ee1945c commit ea54000
Show file tree
Hide file tree
Showing 7 changed files with 340 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ jobs:
- name: Install obsutil
run: cd docs && wget https://obs-community.obs.cn-north-1.myhuaweicloud.com/obsutil/current/obsutil_linux_amd64.tar.gz && tar -zxvf obsutil_linux_amd64.tar.gz && chmod 755 ./obsutil_linux_amd64_5.5.9/obsutil
- name: Config ossutil
run: cd docs && ./obsutil_linux_amd64_5.5.9/obsutil config -i ${{ secrets.OBS_ACCESS_KEY_ID }} -k ${{ secrets.OBS_ACCESS_KEY_SECRET }} -e https://obs.cn-north-4.myhuaweicloud.com
run: cd docs && ./obsutil_linux_amd64_5.5.12/obsutil config -i ${{ secrets.OBS_ACCESS_KEY_ID }} -k ${{ secrets.OBS_ACCESS_KEY_SECRET }} -e https://obs.cn-north-4.myhuaweicloud.com
- name: Upload docs by obsutil
run: cd docs && ./obsutil_linux_amd64_5.5.9/obsutil cp .vuepress/dist obs://open-read/ego-org/dist -f -r -flat
run: cd docs && ./obsutil_linux_amd64_5.5.12/obsutil cp .vuepress/dist obs://open-read/ego-org/dist -f -r -flat
27 changes: 17 additions & 10 deletions docs/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ var _hmt = _hmt || [];
text: "框架",
link: "/frame/",
},
{
text: "最佳实践",
link: "/practice/",
},
{
text: "微服务",
link: "/micro/",
Expand All @@ -69,10 +73,10 @@ var _hmt = _hmt || [];
text: "手册",
link: "/handbook/",
},
{
text: "Awesome",
link: "/awesome/",
},
// {
// text: "Awesome",
// link: "/awesome/",
// },
{
text: "EGO",
link: "https://github.com/gotomicro/ego",
Expand Down Expand Up @@ -168,6 +172,9 @@ var _hmt = _hmt || [];
],
},
], //这样自动生成对应文章
"/practice/": [
"debug",
],
"/micro/": [
"大纲",
{
Expand Down Expand Up @@ -234,12 +241,12 @@ var _hmt = _hmt || [];
],
},
],
"/awesome/": [
"errors",
"gracefulstop",
"map锁double check",
"egov1.0.3"
]
// "/awesome/": [
// "errors",
// "gracefulstop",
// "map锁double check",
// "egov1.0.3"
// ]
},
sidebarDepth: 2,
lastUpdated: "上次更新",
Expand Down
Binary file added docs/images/practice/debug_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/practice/debug_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/practice/debug_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/practice/debug_4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
321 changes: 321 additions & 0 deletions docs/practice/debug.md

Large diffs are not rendered by default.

0 comments on commit ea54000

Please sign in to comment.