Browse Source

Collapse Swagger UI tags by default (#12428)

This makes is slightly faster to navigate through the swagger docs by
initially collapsing the tags like 'admin' or 'miscellaneous'.

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: zeripath <art27@cantab.net>
for-closed-social
silverwind 4 years ago
committed by GitHub
parent
commit
28a7708d69
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      web_src/js/standalone/swagger.js

+ 1
- 0
web_src/js/standalone/swagger.js View File

@ -18,6 +18,7 @@ window.addEventListener('load', async () => {
spec,
dom_id: '#swagger-ui',
deepLinking: true,
docExpansion: 'none',
presets: [
SwaggerUI.presets.apis
],

Loading…
Cancel
Save