Skip to content

Commit

Permalink
Add docs component (#652)
Browse files Browse the repository at this point in the history
  • Loading branch information
benjagm authored Apr 15, 2024
1 parent 924d1f9 commit 11471ab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pages/overview/code-of-conduct/index.page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import Head from 'next/head';
import matter from 'gray-matter';
import StyledMarkdown from '~/components/StyledMarkdown';
import { SectionContext } from '~/context';
import { DocsHelp } from '~/components/DocsHelp';

export async function getStaticProps() {
const block = fs.readFileSync(
Expand All @@ -28,6 +29,7 @@ export default function Content({ blocks }: { blocks: any[] }) {
<title>{newTitle}</title>
</Head>
<StyledMarkdown markdown={blocks[0]} />
<DocsHelp />
</SectionContext.Provider>
);
}
Expand Down
2 changes: 2 additions & 0 deletions pages/overview/sponsors/index.page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { Headline1 } from '~/components/Headlines';
import matter from 'gray-matter';
import StyledMarkdown from '~/components/StyledMarkdown';
import { SectionContext } from '~/context';
import { DocsHelp } from '~/components/DocsHelp';

export async function getStaticProps() {
const block1 = fs.readFileSync('pages/overview/sponsors/_index.md', 'utf-8');
Expand All @@ -27,6 +28,7 @@ export default function ContentExample({ blocks }: { blocks: any[] }) {
</Head>
<Headline1>{newTitle}</Headline1>
<StyledMarkdown markdown={blocks[0]} />
<DocsHelp />
</SectionContext.Provider>
);
}
Expand Down

0 comments on commit 11471ab

Please sign in to comment.