docs: update lock + general cleanup (#19350)

* docs: update lock file

* remove redundant npm lock file

* add missing peer deps

* fix TODO and bump antd

* fix API spec script
This commit is contained in:
Ville Brofeldt
2022-03-24 15:43:30 +02:00
committed by GitHub
parent f37fc1a7f0
commit 3313530f4d
7 changed files with 6816 additions and 15658 deletions

View File

@@ -128,7 +128,7 @@ def update_api_docs() -> None:
"""Regenerate the openapi.json file in docs"""
superset_dir = os.path.abspath(os.path.dirname(__file__))
openapi_json = os.path.join(
superset_dir, "..", "docs", "src", "resources", "openapi.json"
superset_dir, "..", "..", "docs", "static", "resources", "openapi.json"
)
api_version = "v1"
@@ -149,6 +149,7 @@ def update_api_docs() -> None:
click.secho("Generating openapi.json", fg="green")
with open(openapi_json, "w") as outfile:
json.dump(api_spec.to_dict(), outfile, sort_keys=True, indent=2)
outfile.write("\n")
else:
click.secho("API version not found", err=True)