docusaurus-plugin-openapi-docs 5.0.0 → 5.0.1

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
@@ -47,24 +47,14 @@ Key Features:
47
47
  | 2.2.3 (end-of-support) | `2.4.1 - 2.4.3` |
48
48
  | 1.7.3 (end-of-support) | `2.0.1 - 2.2.0` |
49
49
 
50
- ## Bootstrapping from Template (new Docusaurus site)
50
+ ## Quick Start (new Docusaurus site)
51
51
 
52
52
  Run the following to bootstrap a Docusaurus v3 site (classic theme) with `docusaurus-openapi-docs`:
53
53
 
54
54
  ```bash
55
- npx create-docusaurus@3.10.0 my-website --package-manager yarn
55
+ npx create-docusaurus-openapi-docs my-website
56
56
  ```
57
57
 
58
- > When prompted to select a template choose `Git repository`.
59
-
60
- Template Repository URL:
61
-
62
- ```bash
63
- https://github.com/PaloAltoNetworks/docusaurus-template-openapi-docs.git
64
- ```
65
-
66
- > When asked how the template repo should be cloned choose "copy".
67
-
68
58
  ```bash
69
59
  cd my-website
70
60
  yarn start
@@ -72,6 +62,13 @@ yarn start
72
62
 
73
63
  If all goes well, you should be greeted by a brand new Docusaurus site that includes API reference docs for the ubiquitous Petstore API!
74
64
 
65
+ ### CLI Options
66
+
67
+ | Option | Description |
68
+ | --------------------------------- | ----------------------------------------------------- |
69
+ | `-p, --package-manager <manager>` | Use a specific package manager (yarn, npm, pnpm, bun) |
70
+ | `-s, --skip-install` | Skip automatic dependency installation |
71
+
75
72
  ## Installation (existing Docusaurus site)
76
73
 
77
74
  > Both the plugin and theme are currently designed to pair with a specific Docusaurus release. The Docusaurus badge in the `README.md` and at the top of this page will always reflect the current compatible versions.
@@ -9,7 +9,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
9
9
  exports.createDeprecationNotice = createDeprecationNotice;
10
10
  const utils_1 = require("./utils");
11
11
  function createAdmonition({ children }) {
12
- return `:::caution deprecated\n\n${(0, utils_1.render)(children)}\n\n:::`;
12
+ return `:::caution[deprecated]\n\n${(0, utils_1.render)(children)}\n\n:::`;
13
13
  }
14
14
  function createDeprecationNotice({ deprecated, description, }) {
15
15
  return (0, utils_1.guard)(deprecated, () => createAdmonition({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "docusaurus-plugin-openapi-docs",
3
3
  "description": "OpenAPI plugin for Docusaurus.",
4
- "version": "5.0.0",
4
+ "version": "5.0.1",
5
5
  "license": "MIT",
6
6
  "keywords": [
7
7
  "openapi",
@@ -65,5 +65,5 @@
65
65
  "engines": {
66
66
  "node": ">=14"
67
67
  },
68
- "gitHead": "516bd48c628fb16b7fe90d8f996168ab75ce5562"
68
+ "gitHead": "467fb6d5e1e78e0fd2ce5aaa2904aef701fe87e3"
69
69
  }
@@ -8,7 +8,7 @@
8
8
  import { clean, guard, Props, render } from "./utils";
9
9
 
10
10
  function createAdmonition({ children }: Props) {
11
- return `:::caution deprecated\n\n${render(children)}\n\n:::`;
11
+ return `:::caution[deprecated]\n\n${render(children)}\n\n:::`;
12
12
  }
13
13
 
14
14
  interface DeprecationNoticeProps {