pull/26459/head^2
Paul Wackerow 2 years ago
parent 95ab538776
commit f66ca930f5
No known key found for this signature in database
GPG Key ID: BB63E296FE9CAB8D
  1. 7
      src/pages/[...slug].tsx
  2. 2
      src/theme/foundations/textStyles.ts

@ -9,11 +9,10 @@ import { ParsedUrlQuery } from 'querystring';
import type { GetStaticPaths, GetStaticProps, NextPage } from 'next';
import MDXComponents from '../components/';
import { Breadcrumbs } from '../components/docs'
import { Breadcrumbs } from '../components/docs';
import { PageMetadata } from '../components/UI';
import { textStyles } from '../theme/foundations';
const MATTER_OPTIONS = {
engines: {
yaml: (s: any) => yaml.load(s, { schema: yaml.JSON_SCHEMA }) as object
@ -87,7 +86,9 @@ const DocPage: NextPage<Props> = ({ frontmatter, content }) => {
</Heading>
{/* <Text as='span' mt='0 !important'>last edited {TODO: get last edited date}</Text> */}
</Stack>
<ReactMarkdown remarkPlugins={[gfm]} components={ChakraUIRenderer(MDXComponents)}>{content}</ReactMarkdown>
<ReactMarkdown remarkPlugins={[gfm]} components={ChakraUIRenderer(MDXComponents)}>
{content}
</ReactMarkdown>
</main>
</>
);

@ -137,7 +137,7 @@ export const textStyles = {
'header-button': {
fontFamily: '"JetBrains Mono", monospace',
fontWeight: 700,
fontSize: { base: '0.86rem', sm: '1rem' },
fontSize: { base: '0.86rem', sm: '1rem' }
},
'header-mobile-button': {
fontFamily: '"JetBrains Mono", monospace',

Loading…
Cancel
Save