Skip to content

Issue 855 #856

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
"@docusaurus/plugin-google-gtag": "3.4.0",
"@docusaurus/preset-classic": "3.4.0",
"clsx": "^1.1.1",
"docusaurus-plugin-openapi-docs": "^3.0.0-beta.10",
"docusaurus-theme-openapi-docs": "^3.0.0-beta.10",
"docusaurus-plugin-openapi-docs": "^3.0.0-beta.11",
"docusaurus-theme-openapi-docs": "^3.0.0-beta.11",
"prism-react-renderer": "^2.3.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/docusaurus-plugin-openapi-docs/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "docusaurus-plugin-openapi-docs",
"description": "OpenAPI plugin for Docusaurus.",
"version": "3.0.0-beta.10",
"version": "3.0.0-beta.11",
"license": "MIT",
"keywords": [
"openapi",
Expand Down
2 changes: 2 additions & 0 deletions packages/docusaurus-plugin-openapi-docs/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -531,6 +531,7 @@ custom_edit_url: null
version: version,
label: metadata.label,
baseUrl: metadata.baseUrl,
downloadUrl: metadata.downloadUrl,
});
}

Expand Down Expand Up @@ -685,6 +686,7 @@ custom_edit_url: null
delete parentConfig.version;
delete parentConfig.label;
delete parentConfig.baseUrl;
delete parentConfig.downloadUrl;

// TODO: handle when no versions are defined by version command is passed
if (versionId === "all") {
Expand Down
1 change: 1 addition & 0 deletions packages/docusaurus-plugin-openapi-docs/src/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export const OptionsSchema = Joi.object({
outputDir: Joi.string().required(),
label: Joi.string().required(),
baseUrl: Joi.string().required(),
downloadUrl: Joi.string(),
})
),
})
Expand Down
1 change: 1 addition & 0 deletions packages/docusaurus-plugin-openapi-docs/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ export interface APIVersionOptions {
outputDir: string;
label: string;
baseUrl: string;
downloadUrl?: string;
}

export interface LoadedContent {
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
@@ -1,7 +1,7 @@
{
"name": "docusaurus-theme-openapi-docs",
"description": "OpenAPI theme for Docusaurus.",
"version": "3.0.0-beta.10",
"version": "3.0.0-beta.11",
"license": "MIT",
"keywords": [
"openapi",
Expand Down
Loading