瀏覽代碼

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>
tags/v1.13.0-rc1
silverwind 3 年之前
父節點
當前提交
28a7708d69
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 1 行新增0 行删除
  1. 1
    0
      web_src/js/standalone/swagger.js

+ 1
- 0
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
],

Loading…
取消
儲存