v0.2.0
0.2.0 (Dec 4, 2021)
💥 Breaking Changes
The plugin option openapiPath has been renamed to path and no longer needs to be wrapped in require.resolve.
As recomended my the Docusaurus documentation, the plugin docusaurus-plugin-api has been properly split into 3 packages:
docusaurus-preset-apidocusaurus-plugin-apidocusaurus-theme-api
The package docusaurus-plugin-api will no longer work on it's own without docusaurus-theme-api. Instead, the preset docusaurus-preset-api can be used on it's own and act as a drop-in replacement for @docusaurus/preset-classic.
Example usage:
// docusaurus.config.js
const config = {
- plugins: [
- [
- "docusaurus-plugin-openapi",
- {
- openapiPath: require.resolve("./examples/openapi.json"),
- },
- ],
- ],
presets: [
[
- "@docusaurus/preset-classic",
+ "docusaurus-preset-openapi",
{
+ api: {
+ path: "examples/openapi.json",
+ }
docs: {
// doc options ...
},
blog: {
// blog options ...
},
theme: {
customCss: require.resolve("./src/css/custom.css"),
},
},
],
],
}Other enhancements and bug fixes