You are browsing documentation for an outdated version. See the latest documentation here.
Alternate OpenAPI Renderer
Through Kong Manager, use the Dev Portal Editor to customize how your API specs render in your Dev Portal.
To do this, add some custom code and update your config, as follows:
In Kong Manager, navigate to the Dev Portal Editor from the left sidebar.
Navigate to Themes > base > layout > system >
spec.renderer.html.In
spec.renderer.html, replace all of the current content with the content from this spec-renderer.html file. Doing so adds options for Stoplight and Redoc layouts.In
theme.conf.yaml, add the parameterspec_render_typeand the valuestoplightorredoc. For example:spec_render_type: "stoplight"
Refresh your Dev Portal to see that the change has taken effect.