swagger: improve layout

and fix lint
This commit is contained in:
André Roth
2024-11-28 13:34:33 +01:00
parent 4f229a5bcf
commit a69c00a5bc
7 changed files with 23 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
# Remote Repository Mirrors
# Manage Remote Repository Mirrors
<div>
Manage mirrors of remote Debian repositories.

View File

@@ -1,4 +1,4 @@
# Search Packages
# Search Package Collection
<div>
Perform operations on the whole collection of packages in apty database.
</div>

View File

@@ -1,4 +1,4 @@
# Publish repositories and mirrors
# Publish Repositories and Mirrors
<div>
Publish snapshot or local repo as Debian repository which could be served by HTTP/FTP/rsync server. Repository is signed by user's key with GnuPG. Key should be created beforehand (see section GPG Keys below). Published repository could be consumed directly by apt.

View File

@@ -1,4 +1,4 @@
# Manage repository and mirror Snapshots
# Manage Snapshots of Repositories and Mirrors
<div>
Snapshot is a fixed state of remote repository mirror or local repository. Internally snapshot is list of references to packages. Snapshot is immutable, i.e. it cant be changed since it has been created. Snapshots could be merged, filtered, individual packages could be pulled, snapshot could be verified for missing dependencies. Finally, snapshots could be published as repositories.
</div>

View File

@@ -1,4 +1,4 @@
# Aptly Status Information
# Status Information
<div>
Various status information.

View File

@@ -73,6 +73,10 @@
align-self: flex-start;
}
#swagger-ui {
padding-bottom: 112px;
}
</style>
</head>
@@ -117,6 +121,17 @@
<script src="/docs/swagger-ui-bundle.js"> </script>
<script src="/docs/swagger-ui-standalone-preset.js"> </script>
<script>
function collapseAll() {
blocks = document.getElementsByClassName("opblock-tag");
for (let i = 0; i < blocks.length; i++) {
blocks[i].click();
}
models = document.getElementsByClassName("models-control");
for (let i = 0; i < models.length; i++) {
models[i].click();
}
}
window.onload = function() {
const ui = SwaggerUIBundle({
@@ -146,6 +161,8 @@ window.onload = function() {
}
window.ui = ui
setTimeout(collapseAll, 700);
}
</script>
</body>