mirror of
https://github.com/go-gitea/gitea
synced 2025-08-12 12:38:20 +00:00
Move 3rd party js/css into public/vendor
and document sources (#2383)
This commit cherry picks the following commits (master -> v1.2):a915a09
874f9be
233bbcf
Ref: https://github.com/go-gitea/gitea/issues/1484 Signed-off-by: Michael Lustfield <michael@lustfield.net>
This commit is contained in:
committed by
Lunny Xiao
parent
e13eef8cfe
commit
9df0eafa25
10
templates/swagger.tmpl
vendored
10
templates/swagger.tmpl
vendored
@@ -5,9 +5,9 @@
|
||||
<meta charset="UTF-8">
|
||||
<title>Swagger UI</title>
|
||||
<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,700|Source+Code+Pro:300,600|Titillium+Web:400,600,700" rel="stylesheet">
|
||||
<link rel="stylesheet" type="text/css" href="{{AppSubUrl}}/assets/swagger-ui/swagger-ui.css" >
|
||||
<link rel="icon" type="image/png" href="{{AppSubUrl}}/assets/swagger-ui/favicon-32x32.png" sizes="32x32" />
|
||||
<link rel="icon" type="image/png" href="{{AppSubUrl}}/assets/swagger-ui/favicon-16x16.png" sizes="16x16" />
|
||||
<link rel="stylesheet" type="text/css" href="{{AppSubUrl}}/vendor/assets/swagger-ui/swagger-ui.css" >
|
||||
<link rel="icon" type="image/png" href="{{AppSubUrl}}/vendor/assets/swagger-ui/favicon-32x32.png" sizes="32x32" />
|
||||
<link rel="icon" type="image/png" href="{{AppSubUrl}}/vendor/assets/swagger-ui/favicon-16x16.png" sizes="16x16" />
|
||||
<style>
|
||||
html
|
||||
{
|
||||
@@ -67,8 +67,8 @@
|
||||
|
||||
<div id="swagger-ui"></div>
|
||||
|
||||
<script src="{{AppSubUrl}}/assets/swagger-ui/swagger-ui-bundle.js"> </script>
|
||||
<script src="{{AppSubUrl}}/assets/swagger-ui/swagger-ui-standalone-preset.js"> </script>
|
||||
<script src="{{AppSubUrl}}/vendor/assets/swagger-ui/swagger-ui-bundle.js"> </script>
|
||||
<script src="{{AppSubUrl}}/vendor/assets/swagger-ui/swagger-ui-standalone-preset.js"> </script>
|
||||
<script>
|
||||
window.onload = function() {
|
||||
// Build a system
|
||||
|
Reference in New Issue
Block a user