Skip to content

Commit

Permalink
Docusaurus v3.6 - enable Docusaurus Faster (#1003)
Browse files Browse the repository at this point in the history
* stable docusaurus-faster setup

* mention Docusaurus Faster in readme

* 3.6 stable

* 3.6 stable
  • Loading branch information
slorber authored Nov 4, 2024
1 parent e7295a8 commit 9163472
Show file tree
Hide file tree
Showing 5 changed files with 1,598 additions and 308 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<div align="center">

OpenAPI plugin for generating API reference docs in Docusaurus v3.
OpenAPI plugin for generating API reference docs in Docusaurus v3 (compatible with [Docusaurus Faster](https://github.com/facebook/docusaurus/issues/10556).

<img src="https://img.shields.io/badge/dynamic/json?style=for-the-badge&logo=meta&color=blueviolet&label=Docusaurus&query=dependencies%5B%22%40docusaurus%2Fcore%22%5D&url=https%3A%2F%2Fraw.githubusercontent.com%2FPaloAltoNetworks%2Fdocusaurus-openapi-docs%2Fmain%2Fdemo%2Fpackage.json" />
<br/><br/>
Expand Down
4 changes: 4 additions & 0 deletions demo/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ import { DOCUSAURUS_VERSION } from "@docusaurus/utils";
import { myCustomApiMdGenerator } from "./customMdGenerators";

const config: Config = {
future: {
experimental_faster: (process.env.DOCUSAURUS_FASTER ?? "true") === "true",
},

title: "Docusaurus OpenAPI Docs",
tagline: "OpenAPI plugin for generating API reference docs in Docusaurus v2",
url: "https://docusaurus-openapi.tryingpan.dev",
Expand Down
7 changes: 4 additions & 3 deletions demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@
"re-gen": "yarn clean-all && yarn gen-all"
},
"dependencies": {
"@docusaurus/core": "3.5.2",
"@docusaurus/plugin-google-gtag": "3.5.2",
"@docusaurus/preset-classic": "3.5.2",
"@docusaurus/core": "3.6.0",
"@docusaurus/faster": "3.6.0",
"@docusaurus/plugin-google-gtag": "3.6.0",
"@docusaurus/preset-classic": "3.6.0",
"clsx": "^1.1.1",
"docusaurus-plugin-openapi-docs": "^4.2.0",
"docusaurus-theme-openapi-docs": "^4.2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/docusaurus-theme-openapi-docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"docusaurus-plugin-sass": "^0.2.3",
"file-saver": "^2.0.5",
"lodash": "^4.17.20",
"node-polyfill-webpack-plugin": "^2.0.1",
"node-polyfill-webpack-plugin": "^3.0.0",
"postman-code-generators": "^1.10.1",
"postman-collection": "^4.4.0",
"prism-react-renderer": "^2.3.0",
Expand Down
Loading

0 comments on commit 9163472

Please sign in to comment.