Skip to content

Commit 50c663b

Browse files
committed
update doc config.json
add CLI flags entry to config.json during CI
1 parent 76fed5c commit 50c663b

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

.github/actions/publish-website/action.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,12 @@ runs:
6161
- name: Build CLI doc
6262
run: go run ./cmd/internal/gen-cli-docs/main.go
6363
shell: bash
64-
- name: Upload CLI doc
65-
uses: actions/upload-artifact@v4
66-
with:
67-
name: cli.md
68-
path: docs/configuration/static/mokapi.md
64+
- name: Add CLI Flags nav entry
65+
run: |
66+
jq '.Configuration.items.Static.items["CLI Flags"] = "configuration/static/mokapi.md"' config.json > tmp.json
67+
mv tmp.json config.json
68+
working-directory: /docs
69+
shell: bash
6970
- name: build website
7071
working-directory: ./webui
7172
run: |

docs/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"Static": {
4949
"expanded": true,
5050
"items": {
51-
"CLI": "configuration/static/cli.md"
51+
"CLI Usage": "configuration/static/cli.md"
5252
}
5353
},
5454
"Dynamic": {

0 commit comments

Comments
 (0)