Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 6b93eac

Browse files
.
1 parent 9ad5e75 commit 6b93eac

File tree

2 files changed

+1
-32
lines changed

2 files changed

+1
-32
lines changed

‎.github/workflows/generate-page-docs.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
sleep 1
3434
done
3535
curl -o docs/index.html --silent --fail http://0.0.0.0:8000/api/docs
36-
sed 's:/api/openapi.json:openapi.json:g' docs/index.html > docs/i.html
36+
sed 's:/api/openapi.json:openapi.json:g' docs/index.html > docs/index.html
3737
3838
- uses: EndBug/add-and-commit@v9
3939
with:

‎docs/index.html‎

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +0,0 @@
1-
2-
<!DOCTYPE html>
3-
<html>
4-
<head>
5-
<link type="text/css" rel="stylesheet" href="https://cdn.jsdelivr.net/npm/swagger-ui-dist@5.9.0/swagger-ui.css">
6-
<link rel="shortcut icon" href="https://fastapi.tiangolo.com/img/favicon.png">
7-
<title>FastAPI Template - Swagger UI</title>
8-
</head>
9-
<body>
10-
<div id="swagger-ui">
11-
</div>
12-
<script src="https://cdn.jsdelivr.net/npm/swagger-ui-dist@5.9.0/swagger-ui-bundle.js"></script>
13-
<!-- `SwaggerUIBundle` is now available on the page -->
14-
<script>
15-
const ui = SwaggerUIBundle({
16-
url: '/api/openapi.json',
17-
"dom_id": "#swagger-ui",
18-
"layout": "BaseLayout",
19-
"deepLinking": true,
20-
"showExtensions": true,
21-
"showCommonExtensions": true,
22-
oauth2RedirectUrl: window.location.origin + '/api/docs/oauth2-redirect',
23-
presets: [
24-
SwaggerUIBundle.presets.apis,
25-
SwaggerUIBundle.SwaggerUIStandalonePreset
26-
],
27-
})
28-
</script>
29-
</body>
30-
</html>
31-

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /