Args: Fix imports and handling of export openapi
The api-servers arg is passed when running subcommands, so use that instead of replicating the arg again. Signed-off-by: kingbri <8082010+kingbri1@users.noreply.github.com>
This commit is contained in:
parent
30ab8e04b9
commit
153dac496c
2 changed files with 2 additions and 3 deletions
4
.github/workflows/pages.yml
vendored
4
.github/workflows/pages.yml
vendored
|
|
@ -48,8 +48,8 @@ jobs:
|
|||
npm install @redocly/cli -g
|
||||
- name: Export OpenAPI docs
|
||||
run: |
|
||||
python main.py export-openapi --export-path "openapi-kobold.json"
|
||||
python main.py export-openapi --export-path "openapi-oai.json"
|
||||
python main.py export-openapi --export-path "openapi-kobold.json" --api-servers kobold
|
||||
python main.py export-openapi --export-path "openapi-oai.json" --api-servers oai
|
||||
- name: Build and store Redocly site
|
||||
run: |
|
||||
mkdir static
|
||||
|
|
|
|||
1
start.py
1
start.py
|
|
@ -272,7 +272,6 @@ if __name__ == "__main__":
|
|||
|
||||
# Assume all dependencies are installed from here
|
||||
try:
|
||||
from common.args import convert_args_to_dict
|
||||
from main import entrypoint
|
||||
|
||||
# Create a config if it doesn't exist
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue