From e9ee9363af1604a0678fb1773ed3c1a0f0c7a0e2 Mon Sep 17 00:00:00 2001 From: min0625 <70873102+min0625@users.noreply.github.com> Date: Wed, 5 Nov 2025 01:45:02 +0800 Subject: [PATCH 1/2] docs: update README and index.html --- README.md | 6 +++--- README.zh-TW.md | 6 +++--- index.html | 19 +++---------------- 3 files changed, 9 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index 21c9476..47c5810 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ https://min0625.github.io/openapi-viewer?uri=https://petstore3.swagger.io/api/v3 Use GitHub Raw URL: ``` -https://min0625.github.io/openapi-viewer?uri=https://raw.githubusercontent.com/username/repo/main/openapi.json +https://min0625.github.io/openapi-viewer?uri=https://raw.githubusercontent.com/min0625/openapi-viewer/refs/heads/main/swagger.json ``` ### Method 3: No URI Parameter @@ -60,7 +60,7 @@ https://min0625.github.io/openapi-viewer?uri=https://gist.githubusercontent.com/ ## 🛠️ Technical Specifications - **Swagger UI**: v5.10.0 -- **Supported Formats**: +- **Supported Formats**: - Swagger 2.0 (JSON/YAML) - OpenAPI 3.0.x (JSON/YAML) - OpenAPI 3.1.x (JSON/YAML) @@ -138,4 +138,4 @@ If you have any questions or suggestions: --- -
Made with ❤️ by Min Huang
\ No newline at end of file +Made with ❤️ by Min Huang
diff --git a/README.zh-TW.md b/README.zh-TW.md index 69eaa1f..1bffd46 100644 --- a/README.zh-TW.md +++ b/README.zh-TW.md @@ -33,7 +33,7 @@ https://min0625.github.io/openapi-viewer?uri=https://petstore3.swagger.io/api/v3 使用 GitHub Raw URL: ``` -https://min0625.github.io/openapi-viewer?uri=https://raw.githubusercontent.com/username/repo/main/openapi.json +https://min0625.github.io/openapi-viewer?uri=https://raw.githubusercontent.com/min0625/openapi-viewer/refs/heads/main/swagger.json ``` ### 方式 3: 不提供 URI 參數 @@ -60,7 +60,7 @@ https://min0625.github.io/openapi-viewer?uri=https://gist.githubusercontent.com/ ## 🛠️ 技術規格 - **Swagger UI**: v5.10.0 -- **支援格式**: +- **支援格式**: - Swagger 2.0 (JSON/YAML) - OpenAPI 3.0.x (JSON/YAML) - OpenAPI 3.1.x (JSON/YAML) @@ -138,4 +138,4 @@ https://raw.githubusercontent.com/Made with ❤️ by Min Huang
\ No newline at end of file +Made with ❤️ by Min Huang
diff --git a/index.html b/index.html index afdb386..59ae224 100644 --- a/index.html +++ b/index.html @@ -38,17 +38,8 @@ max-width: 90%; } - #info-banner { - background-color: #2196F3; - color: white; - padding: 10px 20px; - text-align: center; - font-family: sans-serif; - font-size: 14px; - } - #placeholder { - display: flex; + display: none; flex-direction: column; align-items: center; justify-content: center; @@ -72,9 +63,6 @@ - @@ -100,6 +88,7 @@ // If no uri parameter provided, show helpful message if (!swaggerUri) { const placeholder = document.getElementById('placeholder'); + placeholder.style.display = 'flex'; placeholder.innerHTML = `Usage:
@@ -138,8 +127,6 @@