Skip to content

Commit

Permalink
feat: add rapidoc section
Browse files Browse the repository at this point in the history
  • Loading branch information
Indyandie committed Oct 23, 2024
1 parent 2bc6b7f commit 746c6e7
Show file tree
Hide file tree
Showing 4 changed files with 3,942 additions and 0 deletions.
4 changes: 4 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ export default defineConfig({
label: 'Stoplight Elements',
autogenerate: { directory: 'stoplight-elements' },
},
{
label: 'RapiDoc',
autogenerate: { directory: 'rapidoc' },
},
],
}),
],
Expand Down
3,915 changes: 3,915 additions & 0 deletions public/rapi-doc/rapidoc-min.js

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions src/components/RapiDocPokeapi.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<script type="module" src="/lucero/rapi-doc/rapidoc-min.js"></script>
<div class="not-content">
<rapi-doc
spec-url="https://raw.githubusercontent.com/PokeAPI/pokeapi/master/openapi.yml"
theme="dark"
show-header="false"
show-curl-before-try="true"
layout="column"
render-style="read"
/>
</div>
12 changes: 12 additions & 0 deletions src/content/docs/rapidoc/pokeapi.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
title: PokeAPI (RapiDoc)
template: splash
prev: true
next: true
attrs:
target: _blank
---

import Poke from "../../../components/RapiDocPokeapi.html";

<Poke/>

0 comments on commit 746c6e7

Please sign in to comment.