Actions: Build kobold docs subpage
Signed-off-by: kingbri <bdashore3@proton.me>
This commit is contained in:
parent
685e3836e9
commit
9cc0e70098
1 changed files with 8 additions and 3 deletions
11
.github/workflows/pages.yml
vendored
11
.github/workflows/pages.yml
vendored
|
|
@ -47,12 +47,17 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
npm install @redocly/cli -g
|
npm install @redocly/cli -g
|
||||||
- name: Export OpenAPI docs
|
- name: Export OpenAPI docs
|
||||||
run: EXPORT_OPENAPI=1 python main.py
|
run: |
|
||||||
|
EXPORT_OPENAPI=1 python main.py
|
||||||
|
mv openapi.json openapi-oai.json
|
||||||
|
EXPORT_OPENAPI=1 python main.py --api-servers kobold
|
||||||
|
mv openapi.json openapi-kobold.json
|
||||||
- name: Build and store Redocly site
|
- name: Build and store Redocly site
|
||||||
run: |
|
run: |
|
||||||
redocly build-docs openapi.json
|
|
||||||
mkdir static
|
mkdir static
|
||||||
mv redoc-static.html static/index.html
|
mkdir static/kobold
|
||||||
|
redocly build-docs openapi-oai.json -o static/index.html
|
||||||
|
redocly build-docs openapi-kobold.json -o static/kobold/index.html
|
||||||
- name: Setup Pages
|
- name: Setup Pages
|
||||||
uses: actions/configure-pages@v5
|
uses: actions/configure-pages@v5
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue