diff --git a/generator/konfig-next-app/src/OperationReferenceMain.tsx b/generator/konfig-next-app/src/OperationReferenceMain.tsx index d6aa73974..9f9dbac7b 100644 --- a/generator/konfig-next-app/src/OperationReferenceMain.tsx +++ b/generator/konfig-next-app/src/OperationReferenceMain.tsx @@ -44,6 +44,7 @@ import { notifications } from '@mantine/notifications' import localforage from 'localforage' import { ReferencePageProps } from './utils/generate-props-for-reference-page' import { SocialFooter } from './components/SocialFooter' +import { Breadcrumbs } from './components/Breadcrumbs' export function OperationReferenceMain({ pathParameters, @@ -206,6 +207,8 @@ export function OperationReferenceMain({ } } + const header = operation.operation.summary ?? operation.path + return (
- - + + + - {operation.operation.summary ?? operation.path} + {header} @@ -298,7 +302,7 @@ export function OperationReferenceMain({ requestBodyRequired={requestBodyRequired} /> {responses && ( - + Responses diff --git a/generator/konfig-next-app/src/components/DemoDivider.tsx b/generator/konfig-next-app/src/components/DemoDivider.tsx index cec8c42e8..d69e0c944 100644 --- a/generator/konfig-next-app/src/components/DemoDivider.tsx +++ b/generator/konfig-next-app/src/components/DemoDivider.tsx @@ -8,7 +8,7 @@ const _DemoDivider: Components['hr'] = ({ children, siblingCount, }) => { - return + return } export const DemoDivider = observer(_DemoDivider) diff --git a/generator/konfig-next-app/src/components/DemoMarkdown.tsx b/generator/konfig-next-app/src/components/DemoMarkdown.tsx index 445bd54e5..518d08381 100644 --- a/generator/konfig-next-app/src/components/DemoMarkdown.tsx +++ b/generator/konfig-next-app/src/components/DemoMarkdown.tsx @@ -137,11 +137,17 @@ const useStyles = createStyles((theme) => ({ markdown: { 'h1:first-of-type': { marginTop: 0, + '::after': { + display: 'none', + }, }, }, text: { img: { maxWidth: '100%', + display: 'block', + margin: 'auto', + borderRadius: theme.radius.md, }, }, })) diff --git a/generator/konfig-next-app/src/components/DemoPortal.tsx b/generator/konfig-next-app/src/components/DemoPortal.tsx index b0fe4ce8b..d718d8319 100644 --- a/generator/konfig-next-app/src/components/DemoPortal.tsx +++ b/generator/konfig-next-app/src/components/DemoPortal.tsx @@ -35,6 +35,11 @@ import { DemoHeader } from './DemoHeader' import type { SocialObject } from 'konfig-lib/dist/KonfigYamlCommon' import Head from 'next/head' import { NAVBAR_WIDTH } from './ReferenceNavbar' +import { proseContainerWidthStyles } from '@/utils/prose-container-width-styles' +import { FlexCenter } from '@/components/FlexCenter' +import { navLinkColor } from '@/utils/nav-link-color' +import { asideOffsetBreakpoint } from '@/utils/aside-offset-breakpoint' +import { navbarOffsetBreakpoint } from '@/utils/navbar-offset-breakpoint' type DemosInput = Demo[] @@ -184,6 +189,8 @@ export const DemoPortal = observer( // We need to access dummyState to tell MobX to track it state.dummyState + console.log(!opened) + return ( {sandbox && ( @@ -210,23 +217,23 @@ export const DemoPortal = observer( )} ) diff --git a/generator/konfig-next-app/src/components/DemoTableOfContents.tsx b/generator/konfig-next-app/src/components/DemoTableOfContents.tsx index 24007d3e0..b3d097266 100644 --- a/generator/konfig-next-app/src/components/DemoTableOfContents.tsx +++ b/generator/konfig-next-app/src/components/DemoTableOfContents.tsx @@ -13,6 +13,7 @@ import { import { IconList } from '@tabler/icons-react' import { TITLE_OFFSET_PX } from './DemoTitle' import { observer } from 'mobx-react' +import { asideOffsetBreakpoint } from '@/utils/aside-offset-breakpoint' const useStyles = createStyles((theme) => ({ wrapper: { @@ -189,7 +190,10 @@ export const DemoTableOfContents = observer( // if (headings.length === 0) return null return ( - +