Skip to content

Commit ff4bdc1

Browse files
committed
improve creation of cli-flags documentation
1 parent 7023f7d commit ff4bdc1

1 file changed

Lines changed: 2 additions & 15 deletions

File tree

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

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -51,25 +51,12 @@ runs:
5151
if: always()
5252
run: docker stop mokapi || true
5353
shell: bash
54-
- name: build webui
54+
- uses: ./.github/actions/build-cli-flags-doc
55+
- name: build website
5556
working-directory: ./webui
5657
run: |
5758
npm install
5859
npm version ${{ steps.release.outputs.release }}
59-
npm run build
60-
shell: bash
61-
- name: Build CLI doc
62-
run: go run ./cmd/internal/gen-cli-docs/main.go
63-
shell: bash
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
70-
- name: build website
71-
working-directory: ./webui
72-
run: |
7360
npm run copy-docs
7461
npm run build-sitemap
7562
npm run build-website

0 commit comments

Comments
 (0)