vitepress-openapi 0.1.18 → 0.1.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -2,10 +2,17 @@
2
2
 
3
3
  Generate VitePress API Documentation from OpenAPI Specification.
4
4
 
5
+ ## Demo
6
+
7
+ - [DolarApi.com](https://dolarapi.com/)
8
+ - [ArgentinaDatos](https://argentinadatos.com/)
9
+ - [CriptoYa API](https://docs.criptoya.com/)
10
+
5
11
  ## Documentation
6
12
 
7
13
  To get started, check out the [documentation](https://vitepress-openapi.vercel.app/).
8
14
 
15
+
9
16
  ## Contributors
10
17
 
11
18
  <a href="https://github.com/enzonotario/vitepress-openapi/graphs/contributors">
@@ -14,6 +21,18 @@ To get started, check out the [documentation](https://vitepress-openapi.vercel.a
14
21
 
15
22
  Made with [contrib.rocks](https://contrib.rocks).
16
23
 
24
+
17
25
  ## License
18
26
 
19
27
  [MIT License](./LICENSE) © 2023-present [Enzo Notario](https://github.com/enzonotario).
28
+
29
+ ---
30
+
31
+ ### ❤️ Sponsors & Backers
32
+
33
+ <a href="https://github.com/sponsors/enzonotario">
34
+ <img src="https://raw.githubusercontent.com/enzonotario/enzonotario/main/sponsors.png" alt="Sponsors & Backers" />
35
+ </a>
36
+
37
+ > [Become a sponsor](https://github.com/sponsors/enzonotario)
38
+
@@ -21,4 +21,5 @@ export { useTheme } from './composables/useTheme';
21
21
  export { generateCodeSample } from './lib/codeSamples/generateCodeSample';
22
22
  export { OARequest } from './lib/codeSamples/request';
23
23
  export { createOpenApiSpec } from './lib/spec/createOpenApiSpec';
24
+ export { minifyHtml } from './lib/utils/minifyHtml';
24
25
  export { locales } from './locales';
@@ -4,6 +4,7 @@ export { getGlobalOpenapi, injectOpenapi, useOpenapi, } from './composables/useO
4
4
  export { usePaths } from './composables/usePaths';
5
5
  export { useSidebar } from './composables/useSidebar';
6
6
  export { createOpenApiSpec, type OpenApiSpecInstance } from './lib/spec/createOpenApiSpec';
7
+ export { minifyHtml } from './lib/utils/minifyHtml';
7
8
  export { parseSpec } from './lib/utils/parseSpec';
8
9
  export declare const httpVerbs: readonly OpenAPIV3.HttpMethods[];
9
10
  export declare const literalTypes: string[];
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Minifies a string of HTML by replacing multiple whitespace characters with a single space
3
+ * and trimming the result. This helps prevent hydration mismatches in VitePress.
4
+ */
5
+ export declare function minifyHtml(html: string): string;