swagger: completely removing artifacts #847

This commit is contained in:
Sören Weber 2024-08-29 10:19:03 +02:00
parent eceebaf8df
commit 2370df7a1d
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D
4 changed files with 10 additions and 16 deletions

View file

@ -1,7 +1,8 @@
---
description: "UI for your OpenAPI / Swagger specifications"
title: "OpenAPI"
---
+++
aliases = "/shortcodes/swagger"
description = "UI for your OpenAPI / Swagger specifications"
title = "OpenAPI"
+++
The `openapi` shortcode uses the [Swagger UI](https://github.com/swagger-api/swagger-ui) library to display your OpenAPI / Swagger specifications.

View file

@ -1,5 +1,6 @@
---
description: "Adds UI fer yer OpenAPI / Swaggerrr Specificat'ns"
title: "OpenAPI"
---
+++
aliases = "/pir/shortcodes/swagger"
description = "Adds UI fer yer OpenAPI / Swaggerrr Specificat'ns"
title = "OpenAPI"
+++
{{< piratify >}}

View file

@ -1,2 +0,0 @@
{{- $page := .page }}
{{- warnf "%q: UNSUPPORTED shortcode `swagger` found, use `openapi` instead; see https://mcshelby.github.io/hugo-theme-relearn/basics/migration#600" $page.File.Filename }}

View file

@ -1,6 +0,0 @@
{{- $id := "" }}
{{- partial "shortcodes/swagger.html" (dict
"page" .Page
"src" (.Get "src")
"id" $id
) }}