Skip to content

Commit

Permalink
Fix apis
Browse files Browse the repository at this point in the history
  • Loading branch information
jlvandenhout committed May 28, 2024
1 parent 4d7f665 commit 0c0e86a
Show file tree
Hide file tree
Showing 4 changed files with 102 additions and 1,133 deletions.
1 change: 1 addition & 0 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ module.exports = async () => {
'docusaurus-plugin-openapi-docs',
{
id: 'openapi',
docsPlugin: './src/plugins/docs',
docsPluginId: 'apis', // e.g. "classic" or the plugin-content-docs id
config: {
coreApiV2: {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@
"@svgr/webpack": "^5.5.0",
"bufferutil": "^4.0.8",
"clsx": "^1.2.1",
"docusaurus-plugin-openapi-docs": "dr-electron/docusaurus-openapi-docs#head=tmp-fix-type&workspace=docusaurus-plugin-openapi-docs",
"docusaurus-theme-openapi-docs": "dr-electron/docusaurus-openapi-docs#head=tmp-fix-type&workspace=docusaurus-theme-openapi-docs",
"docusaurus-plugin-openapi-docs": "jlvandenhout/docusaurus-openapi-docs#head=patch-main&workspace=docusaurus-plugin-openapi-docs",
"docusaurus-theme-openapi-docs": "jlvandenhout/docusaurus-openapi-docs#head=patch-main&workspace=docusaurus-theme-openapi-docs",
"file-loader": "^6.2.0",
"flickity": "2.3.0",
"flickity-fade": "^2.0.0",
Expand Down
3 changes: 1 addition & 2 deletions src/utils/config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
const path = require('path');
const defaultSettings = require('../common/defaultContentPlugin');
const fs = require('fs');
const pluginDocs = require('../plugins/docs');

/**
* Merges multiple configuration objects into one object.
Expand Down Expand Up @@ -130,7 +129,7 @@ async function create_doc_plugin({ ...options }) {
}

return [
pluginDocs,
'./src/plugins/docs',
/** @type {import('../plugins/docs').Options} */
({
...setting,
Expand Down
Loading

0 comments on commit 0c0e86a

Please sign in to comment.