Skip to content

Commit

Permalink
Document
Browse files Browse the repository at this point in the history
  • Loading branch information
blueswen committed Jun 21, 2022
1 parent 363ff6d commit 11454ac
Show file tree
Hide file tree
Showing 15 changed files with 23 additions and 30 deletions.
2 changes: 1 addition & 1 deletion demo-mkdocs/docs/options.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ plugins:

### Swagger UI with local configurations

<swagger-ui supportedSubmitMethods="aaaaa" docExpansion="none" filter="" syntaxHighlightTheme="monokai" src="./demo/openapi-spec/sample.yaml"/>
<swagger-ui supportedSubmitMethods="['get']" docExpansion="none" filter="" syntaxHighlightTheme="monokai" src="./demo/openapi-spec/sample.yaml"/>

### Swagger UI without local configurations

Expand Down
6 changes: 3 additions & 3 deletions docs/demo/build-in-multiple/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -221,10 +221,10 @@ <h2 id="markdown">Markdown</h2>
<a href="#__codelineno-0-5" id="__codelineno-0-5" name="__codelineno-0-5"></a>&lt;swagger-ui grouped name="Sample Third" src="./openapi-spec/sample-third.yaml"/&gt;
</code></pre></div>
<h2 id="multiple-oas-in-single-swagger-ui">Multiple OAS in single Swagger UI</h2>
<p><iframe frameborder="0" id="12bb2da3" src="swagger-12bb2da3.html" style="overflow:hidden;width:100%;" width="100%"></iframe>
<p><iframe frameborder="0" id="73e228be" src="swagger-73e228be.html" style="overflow:hidden;width:100%;" width="100%"></iframe>
</p>
<h2 id="other-independent-swagger-ui">Other independent Swagger UI</h2>
<p><iframe frameborder="0" id="7d581dbb" src="swagger-7d581dbb.html" style="overflow:hidden;width:100%;" width="100%"></iframe></p>
<p><iframe frameborder="0" id="a790076c" src="swagger-a790076c.html" style="overflow:hidden;width:100%;" width="100%"></iframe></p>
</article>
<script>var input,hash=location.hash.slice(1);hash.startsWith("__tabbed_")&&((input=document.getElementById(hash)).checked=!0)</script>
</div>
Expand Down Expand Up @@ -285,7 +285,7 @@ <h2 id="other-independent-swagger-ui">Other independent Swagger UI</h2>
characterDataOldValue: false
};

const iframe_id_list = ["7d581dbb", "12bb2da3"]
const iframe_id_list = ["a790076c", "73e228be"]

function color_scheme_callback(mutations) {
for (let mutation of mutations) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
}
}
const resize_ob = new ResizeObserver(function(entries) {
parent.update_swagger_ui_iframe_height("12bb2da3");
parent.update_swagger_ui_iframe_height("73e228be");
});

// start observing for resize
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
}
}
const resize_ob = new ResizeObserver(function(entries) {
parent.update_swagger_ui_iframe_height("2e0d805d");
parent.update_swagger_ui_iframe_height("a790076c");
});

// start observing for resize
Expand Down
6 changes: 3 additions & 3 deletions docs/demo/multiple/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,8 @@ <h2 id="markdown">Markdown</h2>
<a href="#__codelineno-0-2" id="__codelineno-0-2" name="__codelineno-0-2"></a>&lt;swagger-ui src="https://petstore.swagger.io/v2/swagger.json"/&gt;
</code></pre></div>
<h2 id="swagger-ui">Swagger UI</h2>
<p><iframe frameborder="0" id="70f08651" src="swagger-70f08651.html" style="overflow:hidden;width:100%;" width="100%"></iframe>
<iframe frameborder="0" id="ad7c227c" src="swagger-ad7c227c.html" style="overflow:hidden;width:100%;" width="100%"></iframe></p>
<p><iframe frameborder="0" id="75963d6f" src="swagger-75963d6f.html" style="overflow:hidden;width:100%;" width="100%"></iframe>
<iframe frameborder="0" id="773a84f3" src="swagger-773a84f3.html" style="overflow:hidden;width:100%;" width="100%"></iframe></p>
</article>
<script>var input,hash=location.hash.slice(1);hash.startsWith("__tabbed_")&&((input=document.getElementById(hash)).checked=!0)</script>
</div>
Expand Down Expand Up @@ -281,7 +281,7 @@ <h2 id="swagger-ui">Swagger UI</h2>
characterDataOldValue: false
};

const iframe_id_list = ["70f08651", "ad7c227c"]
const iframe_id_list = ["75963d6f", "773a84f3"]

function color_scheme_callback(mutations) {
for (let mutation of mutations) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
}
}
const resize_ob = new ResizeObserver(function(entries) {
parent.update_swagger_ui_iframe_height("7d581dbb");
parent.update_swagger_ui_iframe_height("75963d6f");
});

// start observing for resize
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
}
}
const resize_ob = new ResizeObserver(function(entries) {
parent.update_swagger_ui_iframe_height("ad7c227c");
parent.update_swagger_ui_iframe_height("773a84f3");
});

// start observing for resize
Expand Down
4 changes: 2 additions & 2 deletions docs/demo/static-file/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ <h2 id="markdown">Markdown</h2>
<div class="highlight"><pre><span></span><code><a href="#__codelineno-0-1" id="__codelineno-0-1" name="__codelineno-0-1"></a>&lt;swagger-ui src="./openapi-spec/sample.yaml"/&gt;
</code></pre></div>
<h2 id="swagger-ui">Swagger UI</h2>
<p><iframe frameborder="0" id="2e0d805d" src="swagger-2e0d805d.html" style="overflow:hidden;width:100%;" width="100%"></iframe></p>
<p><iframe frameborder="0" id="1c707e14" src="swagger-1c707e14.html" style="overflow:hidden;width:100%;" width="100%"></iframe></p>
</article>
<script>var input,hash=location.hash.slice(1);hash.startsWith("__tabbed_")&&((input=document.getElementById(hash)).checked=!0)</script>
</div>
Expand Down Expand Up @@ -279,7 +279,7 @@ <h2 id="swagger-ui">Swagger UI</h2>
characterDataOldValue: false
};

const iframe_id_list = ["2e0d805d"]
const iframe_id_list = ["1c707e14"]

function color_scheme_callback(mutations) {
for (let mutation of mutations) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
}
}
const resize_ob = new ResizeObserver(function(entries) {
parent.update_swagger_ui_iframe_height("70f08651");
parent.update_swagger_ui_iframe_height("1c707e14");
});

// start observing for resize
Expand Down
6 changes: 3 additions & 3 deletions docs/options/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -289,9 +289,9 @@ <h2 id="through-tag-attributes">Through tag attributes</h2>
<div class="highlight"><pre><span></span><code><a href="#__codelineno-1-1" id="__codelineno-1-1" name="__codelineno-1-1"></a><span class="p">&lt;</span><span class="nt">swagger-ui</span> <span class="na">supportedSubmitMethods</span><span class="o">=</span><span class="s">"['get']"</span> <span class="na">docExpansion</span><span class="o">=</span><span class="s">"none"</span> <span class="na">filter</span><span class="o">=</span><span class="s">""</span> <span class="na">syntaxHighlightTheme</span><span class="o">=</span><span class="s">"monokai"</span> <span class="na">src</span><span class="o">=</span><span class="s">"./demo/openapi-spec/sample.yaml"</span><span class="p">/&gt;</span>
</code></pre></div>
<h3 id="swagger-ui-with-local-configurations">Swagger UI with local configurations</h3>
<p><iframe frameborder="0" id="3ebbfab9" src="swagger-3ebbfab9.html" style="overflow:hidden;width:100%;" width="100%"></iframe></p>
<p><iframe frameborder="0" id="ecdac580" src="swagger-ecdac580.html" style="overflow:hidden;width:100%;" width="100%"></iframe></p>
<h3 id="swagger-ui-without-local-configurations">Swagger UI without local configurations</h3>
<p><iframe frameborder="0" id="352360a6" src="swagger-352360a6.html" style="overflow:hidden;width:100%;" width="100%"></iframe></p>
<p><iframe frameborder="0" id="0aa67999" src="swagger-0aa67999.html" style="overflow:hidden;width:100%;" width="100%"></iframe></p>
</article>
<script>var input,hash=location.hash.slice(1);hash.startsWith("__tabbed_")&&((input=document.getElementById(hash)).checked=!0)</script>
</div>
Expand Down Expand Up @@ -365,7 +365,7 @@ <h3 id="swagger-ui-without-local-configurations">Swagger UI without local config
characterDataOldValue: false
};

const iframe_id_list = ["3ebbfab9", "352360a6"]
const iframe_id_list = ["ecdac580", "0aa67999"]

function color_scheme_callback(mutations) {
for (let mutation of mutations) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
}
}
const resize_ob = new ResizeObserver(function(entries) {
parent.update_swagger_ui_iframe_height("352360a6");
parent.update_swagger_ui_iframe_height("0aa67999");
});

// start observing for resize
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,7 @@
"filter": "",
"tryItOutEnabled": false,
"supportedSubmitMethods": [
"get",
"put",
"post",
"delete",
"options",
"head",
"patch",
"trace"
"get"
],
"syntaxHighlight.theme": "monokai"

Expand All @@ -46,7 +39,7 @@
}
}
const resize_ob = new ResizeObserver(function(entries) {
parent.update_swagger_ui_iframe_height("3ebbfab9");
parent.update_swagger_ui_iframe_height("ecdac580");
});

// start observing for resize
Expand Down
4 changes: 2 additions & 2 deletions docs/pet-store/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ <h2 id="markdown">Markdown</h2>
<div class="highlight"><pre><span></span><code><a href="#__codelineno-0-1" id="__codelineno-0-1" name="__codelineno-0-1"></a>&lt;swagger-ui src="https://petstore.swagger.io/v2/swagger.json"/&gt;
</code></pre></div>
<h2 id="swagger-ui">Swagger UI</h2>
<p><iframe frameborder="0" id="d181ec16" src="swagger-d181ec16.html" style="overflow:hidden;width:100%;" width="100%"></iframe></p>
<p><iframe frameborder="0" id="2770db91" src="swagger-2770db91.html" style="overflow:hidden;width:100%;" width="100%"></iframe></p>
</article>
<script>var input,hash=location.hash.slice(1);hash.startsWith("__tabbed_")&&((input=document.getElementById(hash)).checked=!0)</script>
</div>
Expand Down Expand Up @@ -278,7 +278,7 @@ <h2 id="swagger-ui">Swagger UI</h2>
characterDataOldValue: false
};

const iframe_id_list = ["d181ec16"]
const iframe_id_list = ["2770db91"]

function color_scheme_callback(mutations) {
for (let mutation of mutations) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
}
}
const resize_ob = new ResizeObserver(function(entries) {
parent.update_swagger_ui_iframe_height("d181ec16");
parent.update_swagger_ui_iframe_height("2770db91");
});

// start observing for resize
Expand Down
Binary file modified docs/sitemap.xml.gz
Binary file not shown.

0 comments on commit 11454ac

Please sign in to comment.