Generate interactive Swagger UI pages from OpenAPI specifications.
{
"openapi": "swagger.json"
}
This generates a Swagger UI page at api-docs.html.
{
"openapi": {
"api-docs": "swagger/v1.json",
"admin-api": "swagger/admin.json"
}
}
Each key becomes a separate HTML page (e.g., api-docs.html, admin-api.html).
Both JSON and YAML OpenAPI specifications are supported. The spec file path is relative to the book's root directory.