Skip to content

Commit fbdb5b8

Browse files
committed
Update dependencies and config
1 parent b9742e4 commit fbdb5b8

File tree

6 files changed

+14
-10
lines changed

6 files changed

+14
-10
lines changed

README.md

+7-2
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ A MkDocs plugin supports adding [Swagger UI](https://github.com/swagger-api/swag
2323
## Dependency
2424

2525
1. Python Package
26-
1. beautifulsoup4>=4.11.1
26+
1. beautifulsoup4>=4.13.3
2727
2. [Swagger UI dist](https://www.npmjs.com/package/swagger-ui-dist) javascript file and CSS file
28-
1. swagger-ui-dist==5.17.14
28+
1. swagger-ui-dist==5.20.6
2929

3030
## Usage
3131

@@ -73,6 +73,11 @@ A MkDocs plugin supports adding [Swagger UI](https://github.com/swagger-api/swag
7373
| supportedSubmitMethods | Array | Default: All Http Methods. Array=["get", "put", "post", "delete", "options", "head", "patch", "trace"]. List of HTTP methods that have the "Try it out" feature enabled. An empty array disables "Try it out" for all operations. This does not filter the operations from the display. |
7474
| validatorUrl | String | Default: "https://validator.swagger.io/validator". By default, Swagger UI attempts to validate specs against swagger.io's online validator in multiple OAS Swagger UI. You can use this parameter to set a different validator URL, for example for locally deployed validators ([Validator Badge](https://github.com/swagger-api/validator-badge)). Setting it "none" to disable validation. |
7575
76+
77+
Add dark_scheme_name
78+
extra_css
79+
filter_files
80+
7681
## How it works
7782
7883
1. Copy the Swagger UI script file into `site/assets/javascripts/` directory, the CSS file into `site/assets/stylesheets/` directory, and the [default Oauth2 redirect html](https://github.com/blueswen/mkdocs-swagger-ui-tag/blob/main/mkdocs_swagger_ui_tag/swagger-ui/oauth2-redirect.html) into `site/assets/swagger-ui/` directory

demo-mkdocs/docs/index.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ A MkDocs plugin supports adding [Swagger UI](https://github.com/swagger-api/swag
1919
## Dependency
2020

2121
1. Python Package
22-
1. beautifulsoup4>=4.11.1
22+
1. beautifulsoup4>=4.13.3
2323
2. [Swagger UI dist](https://www.npmjs.com/package/swagger-ui-dist) javascript file and CSS file
24-
1. swagger-ui-dist==5.17.14
24+
1. swagger-ui-dist==5.20.6
2525

2626
## Usage
2727

demo-mkdocs/mkdocs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ theme:
4141
extra:
4242
analytics:
4343
provider: google
44-
property: G-XYSWM3DNCQ
44+
property: !ENV GOOGLE_ANALYTICS_KEY
4545

4646
markdown_extensions:
4747
- pymdownx.highlight:

mkdocs_swagger_ui_tag/swagger-ui/javascripts/swagger-ui-bundle.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

mkdocs_swagger_ui_tag/swagger-ui/swagger.html

+2-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
{% endfor %}
1212
</head>
1313

14-
<body style="overflow:hidden;background: {{background}};">
14+
<body style="overflow:hidden;{% if background %}background: {{ background }};{% endif %}">
1515
<div id="swagger-ui"></div>
1616
<script src="{{ js_dir }}swagger-ui-bundle.js" charset="UTF-8"> </script>
1717
<script src="{{ js_dir }}swagger-ui-standalone-preset.js" charset="UTF-8"> </script>
@@ -47,8 +47,7 @@
4747
window.ui.initOAuth({{oath2_prop_str | safe}})
4848
{% endif %}
4949

50-
const scheme = parent.scheme
51-
if (scheme === "slate") {
50+
if (parent.__init_is_dark_mode) {
5251
enable_dark_mode();
5352
}
5453
}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"dependencies": {
3-
"swagger-ui-dist": "5.20.0"
3+
"swagger-ui-dist": "5.20.6"
44
}
55
}

0 commit comments

Comments
 (0)