Skip to content

Commit

Permalink
[V3] Improved Docusaurus 3 compatibility (#677)
Browse files Browse the repository at this point in the history
* Introduce clean function for escaping headers and descriptions

* Remove escape from codeblocks

* Add typing to sidebar generation

* Update Docusaurus dependencies in packages

* Use improved TypeScript support of Docusaurus for demo

* Update tests
  • Loading branch information
Gijsdeman authored Dec 13, 2023
1 parent 9e57319 commit 20a21b0
Show file tree
Hide file tree
Showing 38 changed files with 1,393 additions and 867 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,6 @@ dist
demo/**/*.api.mdx
demo/**/*.info.mdx
demo/**/*.tag.mdx
demo/**/sidebar.js
demo/**/sidebar.ts
demo/**/versions.json

4 changes: 3 additions & 1 deletion .prettierrc.json
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
{}
{
"trailingComma": "es5"
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions demo/docs/versioning.md → demo/docs/versioning.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ Import:

```javascript
const {
versionSelector,
versionSelector
} = require("docusaurus-plugin-openapi-docs/lib/sidebars/utils"); // imports utility
const petstoreVersions = require("./docs/petstore/versions.json"); // imports Petstore versions.json
```
Expand All @@ -102,7 +102,7 @@ Import:

```javascript
const {
versionCrumb,
versionCrumb
} = require("docusaurus-plugin-openapi-docs/lib/sidebars/utils");
```

Expand Down
274 changes: 0 additions & 274 deletions demo/docusaurus.config.js

This file was deleted.

Loading

0 comments on commit 20a21b0

Please sign in to comment.