blueswen / mkdocs-swagger-ui-tag

A MkDocs plugin supports adding Swagger UI to the page.
https://blueswen.github.io/mkdocs-swagger-ui-tag/
MIT License
75 stars 7 forks source link

Inbuilt search is not working for content generated by this plugin #18

Closed GarlicHiker closed 7 months ago

GarlicHiker commented 7 months ago

Hello, above all, thank you for creating this plugin! It's awesome!

I stumbled across one issue: when I add the plugin in the suggested way to my project, and build the static website, the OpenAPI specification generated by this plugin seems to be invisible to the default search feature provided by Material for MkDocs. Is the there a known way (a workaround) how to put the searching into operation, or is this a bug to be fixed? Thank you!

blueswen commented 7 months ago

Hi @GarlicHiker ,

This isn't a bug; the content is unsearchable. Because the searching feature is based on the markdown file contents, Swagger UI or OpenAPI contents are generated by JavaScript when you open the web page.

GarlicHiker commented 7 months ago

Thank you for explanation!