Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LSO
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
GÉANT Orchestration and Automation Team
GAP
LSO
Commits
84533602
Verified
Commit
84533602
authored
1 year ago
by
Karel van Klink
Browse files
Options
Downloads
Patches
Plain Diff
remove openapi spec from docs as we only have a single endpoint
parent
bfd74342
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
build-docs.sh
+1
-5
1 addition, 5 deletions
build-docs.sh
docs/dump-openapi-spec.py
+0
-20
0 additions, 20 deletions
docs/dump-openapi-spec.py
docs/source/_static/openapi.html
+0
-25
0 additions, 25 deletions
docs/source/_static/openapi.html
docs/source/index.rst
+0
-3
0 additions, 3 deletions
docs/source/index.rst
with
1 addition
and
53 deletions
build-docs.sh
+
1
−
5
View file @
84533602
...
...
@@ -5,12 +5,8 @@ set -o nounset
pip
install
-r
requirements.txt
pip
install
-e
.
export
SETTINGS_FILENAME
=
./config.json.example
python docs/dump-openapi-spec.py
rm
-r
./docs/build/
*
vale
--config
=
docs/vale/.vale.ini
sync
vale
--config
=
docs/vale/.vale.ini docs/source/
*
.rst lso/
*
.py
sphinx-build
-b
html docs/source docs/build
unset
SETTINGS_FILENAME
sphinx-build
-b
html docs/source docs/build
This diff is collapsed.
Click to expand it.
docs/dump-openapi-spec.py
deleted
100644 → 0
+
0
−
20
View file @
bfd74342
import
json
import
os
from
fastapi.testclient
import
TestClient
import
lso
config_filename
=
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
"
..
"
,
"
config.json.example
"
)
output_filename
=
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
"
source
"
,
"
_static
"
,
"
openapi.json
"
)
os
.
environ
[
"
SETTINGS_FILENAME
"
]
=
config_filename
app
=
lso
.
create_app
()
client
=
TestClient
(
app
)
rsp
=
client
.
get
(
"
/openapi.json
"
)
openapi_doc
=
json
.
dumps
(
rsp
.
json
(),
indent
=
2
)
with
open
(
output_filename
,
"
w
"
)
as
f
:
f
.
write
(
openapi_doc
)
print
(
f
"
wrote
{
output_filename
}
"
)
This diff is collapsed.
Click to expand it.
docs/source/_static/openapi.html
deleted
100644 → 0
+
0
−
25
View file @
bfd74342
<html
lang=
"en"
>
<head>
<meta
charset=
"utf-8"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
/>
<meta
name=
"description"
content=
"SwaggerUI"
/>
<title>
SwaggerUI
</title>
<link
rel=
"stylesheet"
href=
"https://unpkg.com/swagger-ui-dist@4.5.0/swagger-ui.css"
/>
</head>
<body>
<div
id=
"swagger-ui"
></div>
<script
src=
"https://unpkg.com/swagger-ui-dist@4.5.0/swagger-ui-bundle.js"
crossorigin
></script>
<script>
window
.
onload
=
()
=>
{
window
.
ui
=
SwaggerUIBundle
({
url
:
'
openapi.json
'
,
dom_id
:
'
#swagger-ui
'
,
});
};
</script>
</body>
</html>
This diff is collapsed.
Click to expand it.
docs/source/index.rst
+
0
−
3
View file @
84533602
...
...
@@ -9,6 +9,3 @@ Documentation for LSO (Lightweight Service Orchestrator).
quickstart
modules
`Swagger API Docs <_static/openapi.html>`_
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment