diff options
author | silverwind <me@silverwind.io> | 2020-08-05 23:42:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-05 22:42:19 +0100 |
commit | 28a7708d69b9bf6879e8992e2b2c4b33d06ee76f (patch) | |
tree | c593ef39830686959df312457ada0b39d288393c /web_src/js/standalone | |
parent | 48598a7e835cf9da87ef4d928fbd23fb0c5f5ea6 (diff) | |
download | gitea-28a7708d69b9bf6879e8992e2b2c4b33d06ee76f.tar.gz gitea-28a7708d69b9bf6879e8992e2b2c4b33d06ee76f.zip |
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>
Diffstat (limited to 'web_src/js/standalone')
-rw-r--r-- | web_src/js/standalone/swagger.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/web_src/js/standalone/swagger.js b/web_src/js/standalone/swagger.js index 757612dcdf..3378bfbab8 100644 --- a/web_src/js/standalone/swagger.js +++ b/web_src/js/standalone/swagger.js @@ -18,6 +18,7 @@ window.addEventListener('load', async () => { spec, dom_id: '#swagger-ui', deepLinking: true, + docExpansion: 'none', presets: [ SwaggerUI.presets.apis ], |