From d4aa348b601fc12e9ef0369c04b875f5812641c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Han?= Date: Mon, 3 Nov 2025 18:03:40 +0100 Subject: [PATCH] chore: remove HTML generation for openapi spec (#4039) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # What does this PR do? This seems to be an ancient artifact when we were using readthedocs? Now docusaurus read the specs directly. --------- Signed-off-by: Sébastien Han --- .github/workflows/conformance.yml | 1 - docs/openapi_generator/generate.py | 6 - docs/static/deprecated-llama-stack-spec.html | 14220 ------------ .../static/experimental-llama-stack-spec.html | 5552 ----- docs/static/stainless-llama-stack-spec.html | 18746 ---------------- 5 files changed, 38525 deletions(-) delete mode 100644 docs/static/deprecated-llama-stack-spec.html delete mode 100644 docs/static/experimental-llama-stack-spec.html delete mode 100644 docs/static/stainless-llama-stack-spec.html diff --git a/.github/workflows/conformance.yml b/.github/workflows/conformance.yml index 22732ce89..73e9678b2 100644 --- a/.github/workflows/conformance.yml +++ b/.github/workflows/conformance.yml @@ -22,7 +22,6 @@ on: - 'docs/static/stable-llama-stack-spec.yaml' # Stable APIs spec - 'docs/static/experimental-llama-stack-spec.yaml' # Experimental APIs spec - 'docs/static/deprecated-llama-stack-spec.yaml' # Deprecated APIs spec - - 'docs/static/llama-stack-spec.html' # Legacy HTML spec - '.github/workflows/conformance.yml' # This workflow itself concurrency: diff --git a/docs/openapi_generator/generate.py b/docs/openapi_generator/generate.py index b489833b3..65720df4a 100644 --- a/docs/openapi_generator/generate.py +++ b/docs/openapi_generator/generate.py @@ -84,7 +84,6 @@ def generate_spec(output_dir: Path, stability_filter: str = None, main_spec: boo ) yaml_filename = f"{filename_prefix}llama-stack-spec.yaml" - html_filename = f"{filename_prefix}llama-stack-spec.html" with open(output_dir / yaml_filename, "w", encoding="utf-8") as fp: y = yaml.YAML() @@ -102,11 +101,6 @@ def generate_spec(output_dir: Path, stability_filter: str = None, main_spec: boo fp, ) - with open(output_dir / html_filename, "w") as fp: - spec.write_html(fp, pretty_print=True) - - print(f"Generated {yaml_filename} and {html_filename}") - def main(output_dir: str): output_dir = Path(output_dir) if not output_dir.exists(): diff --git a/docs/static/deprecated-llama-stack-spec.html b/docs/static/deprecated-llama-stack-spec.html deleted file mode 100644 index 626d332e1..000000000 --- a/docs/static/deprecated-llama-stack-spec.html +++ /dev/null @@ -1,14220 +0,0 @@ - - - - - - - OpenAPI specification - - - - - - - - - - - - - diff --git a/docs/static/experimental-llama-stack-spec.html b/docs/static/experimental-llama-stack-spec.html deleted file mode 100644 index 22473ec11..000000000 --- a/docs/static/experimental-llama-stack-spec.html +++ /dev/null @@ -1,5552 +0,0 @@ - - - - - - - OpenAPI specification - - - - - - - - - - - - - diff --git a/docs/static/stainless-llama-stack-spec.html b/docs/static/stainless-llama-stack-spec.html deleted file mode 100644 index a6208bf6f..000000000 --- a/docs/static/stainless-llama-stack-spec.html +++ /dev/null @@ -1,18746 +0,0 @@ - - - - - - - OpenAPI specification - - - - - - - - - - - - -