We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
so i was trying to render a API json but the generated swagger is in dark mode can I change that into light mode ?
import { GetStaticProps, InferGetStaticPropsType } from "next"; import { createSwaggerSpec } from "next-swagger-doc"; import dynamic from "next/dynamic"; import Sample from "../public/sample.json"; import "swagger-ui-react/swagger-ui.css"; const SwaggerUI = dynamic<{ spec: any; // @ts-ignore }>(import("swagger-ui-react"), { ssr: false }); function ApiDoc({ spec }: InferGetStaticPropsType<typeof getStaticProps>) { return <SwaggerUI spec={spec} />; } export const getStaticProps: GetStaticProps = async () => { const spec: Record<string, any> = createSwaggerSpec({ definition: Sample, }); return { props: { spec, }, }; }; export default ApiDoc;
windos 10 , 32gb , i7
pnpm
The text was updated successfully, but these errors were encountered:
sorry , next js now comes with some global CSS whcij caused all problems , btw thanks for the nice package
Sorry, something went wrong.
No branches or pull requests
Describe the bug
so i was trying to render a API json but the generated swagger is in dark mode can I change that into light mode ?
Reproduction
import { GetStaticProps, InferGetStaticPropsType } from "next"; import { createSwaggerSpec } from "next-swagger-doc"; import dynamic from "next/dynamic"; import Sample from "../public/sample.json"; import "swagger-ui-react/swagger-ui.css"; const SwaggerUI = dynamic<{ spec: any; // @ts-ignore }>(import("swagger-ui-react"), { ssr: false }); function ApiDoc({ spec }: InferGetStaticPropsType<typeof getStaticProps>) { return <SwaggerUI spec={spec} />; } export const getStaticProps: GetStaticProps = async () => { const spec: Record<string, any> = createSwaggerSpec({ definition: Sample, }); return { props: { spec, }, }; }; export default ApiDoc;
System Info
Used Package Manager
pnpm
Validations
The text was updated successfully, but these errors were encountered: