File tree Expand file tree Collapse file tree 6 files changed +26
-5
lines changed
docusaurus-plugin-openapi-docs/src/markdown
docusaurus-theme-openapi-docs/src/theme Expand file tree Collapse file tree 6 files changed +26
-5
lines changed Original file line number Diff line number Diff line change 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
1010export default {
1111 plain : {
Original file line number Diff line number Diff line change 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
1010export default {
1111 ...lightTheme ,
Original file line number Diff line number Diff line change 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";
822import { createVersionBadge } from "./createVersionBadge" ;
923import { greaterThan , lessThan , render } from "./utils" ;
1024import {
Original file line number Diff line number Diff 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" ;
1214import { createSlice , PayloadAction } from "@reduxjs/toolkit" ;
1315import { createStorage , hashArray } from "@theme/ApiExplorer/storage-utils" ;
1416
1517import { getAuthDataKeys } from "./auth-types" ;
16- import { ThemeConfig } from "../../types" ;
1718
1819// The global definitions
1920// "securitySchemes": {
Original file line number Diff line number Diff line change 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" ;
810import { Middleware } from "@reduxjs/toolkit" ;
911import {
1012 setAuthData ,
@@ -13,7 +15,6 @@ import {
1315import { AppDispatch , RootState } from "@theme/ApiItem/store" ;
1416
1517import { createStorage , hashArray } from "./storage-utils" ;
16- import { ThemeConfig } from "../types" ;
1718
1819export function createPersistanceMiddleware ( options : ThemeConfig [ "api" ] ) {
1920 const persistanceMiddleware : Middleware < { } , RootState , AppDispatch > =
Original file line number Diff line number Diff line change @@ -20,6 +20,11 @@ import {
2020 ParameterObject ,
2121} from "@mxenabled/docusaurus-plugin-openapi-docs/src/openapi/types" ;
2222import 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" ;
2328import { createAuth } from "@theme/ApiExplorer/Authorization/slice" ;
2429import { createPersistanceMiddleware } from "@theme/ApiExplorer/persistanceMiddleware" ;
2530import DocItemLayout from "@theme/ApiItem/Layout" ;
@@ -29,7 +34,6 @@ import clsx from "clsx";
2934import { Provider } from "react-redux" ;
3035
3136import { createStoreWithoutState , createStoreWithState } from "./store" ;
32- import type { DocFrontMatter , ThemeConfig } from "../types" ;
3337
3438let ApiExplorer = ( _ : { item : any ; infoPath : any ; sampleResponses : any } ) => (
3539 < div />
@@ -41,6 +45,7 @@ if (ExecutionEnvironment.canUseDOM) {
4145
4246interface DocFM extends DocFrontMatter {
4347 readonly api_reference ?: boolean ;
48+ readonly info_path ?: string ;
4449}
4550
4651export interface SampleResponses {
You can’t perform that action at this time.
0 commit comments