Skip to content

Commit a2ffba3

Browse files
author
Ahkshaey Ravi
committed
CO-622-fix-lint-and-test-suite-failures
1 parent e0e13ea commit a2ffba3

File tree

6 files changed

+26
-5
lines changed

6 files changed

+26
-5
lines changed

demo/src/utils/prismDark.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* LICENSE file in the root directory of this source tree.
66
*/
77

8-
import darkTheme from "prism-react-renderer/themes/vsDark/index.cjs.js";
8+
import { vsDark as darkTheme } from "prism-react-renderer/themes";
99

1010
export default {
1111
plain: {

demo/src/utils/prismLight.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* LICENSE file in the root directory of this source tree.
66
*/
77

8-
import lightTheme from "prism-react-renderer/themes/github/index.cjs.js";
8+
import { github as lightTheme } from "prism-react-renderer/themes";
99

1010
export default {
1111
...lightTheme,

packages/docusaurus-plugin-openapi-docs/src/markdown/index.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,20 @@
55
* LICENSE file in the root directory of this source tree.
66
* ========================================================================== */
77

8+
import { createAuthentication } from "./createAuthentication";
9+
import { createContactInfo } from "./createContactInfo";
10+
// import { createDeprecationNotice } from "./createDeprecationNotice";
11+
import { createDescription } from "./createDescription";
12+
import { createDownload } from "./createDownload";
13+
import { createEndpoint } from "./createEndpoint";
14+
import { createLicense } from "./createLicense";
15+
import { createLogo } from "./createLogo";
16+
import { createParamsDetails } from "./createParamsDetails";
17+
// import { createRequestBodyDetails } from "./createRequestBodyDetails";
18+
import { createRequestSchema } from "./createRequestSchema";
19+
import { createStatusCodes } from "./createStatusCodes";
20+
import { createTermsOfService } from "./createTermsOfService";
21+
// import { createVendorExtensions } from "./createVendorExtensions";
822
import { createVersionBadge } from "./createVersionBadge";
923
import { greaterThan, lessThan, render } from "./utils";
1024
import {

packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/Authorization/slice.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,12 @@ import {
99
SecurityRequirementObject,
1010
SecuritySchemeObject,
1111
} from "@mxenabled/docusaurus-plugin-openapi-docs/src/openapi/types";
12+
/* eslint-disable import/no-extraneous-dependencies*/
13+
import { ThemeConfig } from "@mxenabled/docusaurus-theme-openapi-docs/src/types";
1214
import { createSlice, PayloadAction } from "@reduxjs/toolkit";
1315
import { createStorage, hashArray } from "@theme/ApiExplorer/storage-utils";
1416

1517
import { getAuthDataKeys } from "./auth-types";
16-
import { ThemeConfig } from "../../types";
1718

1819
// The global definitions
1920
// "securitySchemes": {

packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/persistanceMiddleware.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
* LICENSE file in the root directory of this source tree.
66
* ========================================================================== */
77

8+
/* eslint-disable import/no-extraneous-dependencies*/
9+
import { ThemeConfig } from "@mxenabled/docusaurus-theme-openapi-docs/src/types";
810
import { Middleware } from "@reduxjs/toolkit";
911
import {
1012
setAuthData,
@@ -13,7 +15,6 @@ import {
1315
import { AppDispatch, RootState } from "@theme/ApiItem/store";
1416

1517
import { createStorage, hashArray } from "./storage-utils";
16-
import { ThemeConfig } from "../types";
1718

1819
export function createPersistanceMiddleware(options: ThemeConfig["api"]) {
1920
const persistanceMiddleware: Middleware<{}, RootState, AppDispatch> =

packages/docusaurus-theme-openapi-docs/src/theme/ApiItem/index.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ import {
2020
ParameterObject,
2121
} from "@mxenabled/docusaurus-plugin-openapi-docs/src/openapi/types";
2222
import type { ApiItem as ApiItemType } from "@mxenabled/docusaurus-plugin-openapi-docs/src/types";
23+
/* eslint-disable import/no-extraneous-dependencies*/
24+
import type {
25+
DocFrontMatter,
26+
ThemeConfig,
27+
} from "@mxenabled/docusaurus-theme-openapi-docs/src/types";
2328
import { createAuth } from "@theme/ApiExplorer/Authorization/slice";
2429
import { createPersistanceMiddleware } from "@theme/ApiExplorer/persistanceMiddleware";
2530
import DocItemLayout from "@theme/ApiItem/Layout";
@@ -29,7 +34,6 @@ import clsx from "clsx";
2934
import { Provider } from "react-redux";
3035

3136
import { createStoreWithoutState, createStoreWithState } from "./store";
32-
import type { DocFrontMatter, ThemeConfig } from "../types";
3337

3438
let ApiExplorer = (_: { item: any; infoPath: any; sampleResponses: any }) => (
3539
<div />
@@ -41,6 +45,7 @@ if (ExecutionEnvironment.canUseDOM) {
4145

4246
interface DocFM extends DocFrontMatter {
4347
readonly api_reference?: boolean;
48+
readonly info_path?: string;
4449
}
4550

4651
export interface SampleResponses {

0 commit comments

Comments
 (0)