Skip to content

Commit 852d813

Browse files
committed
Fixed #6: Incompatible with special character in path
1 parent 904633f commit 852d813

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mkdocs_swagger_ui_tag/plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def on_post_page(self, output, page, config, **kwargs):
9595
loader=FileSystemLoader(os.path.join(base_path, "swagger-ui")))
9696
template = env.get_template('swagger.html')
9797

98-
page_dir = os.path.dirname(os.path.join(config['site_dir'], page.url))
98+
page_dir = os.path.dirname(os.path.join(config['site_dir'], urlunquote(page.url)))
9999
if not os.path.exists(page_dir):
100100
os.makedirs(page_dir)
101101

0 commit comments

Comments
 (0)