Skip to content

Commit b5c39cc

Browse files
committed
Fix the usage of feedback component
1 parent 9640ee9 commit b5c39cc

File tree

6 files changed

+10
-5
lines changed

6 files changed

+10
-5
lines changed

pages/specification/json-hyper-schema/index.page.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@ import matter from 'gray-matter';
55
import StyledMarkdown from '~/components/StyledMarkdown';
66
import { SectionContext } from '~/context';
77
import { Headline1 } from '~/components/Headlines';
8+
import { DocsHelp } from '~/components/DocsHelp';
89

910
export async function getStaticProps() {
1011
const index = fs.readFileSync(
11-
'pages/specification/json-hyper-schema/index.md',
12+
'pages/specification/json-hyper-schema/_index.md',
1213
'utf-8',
1314
);
1415
// const main = fs.readFileSync('pages/draft-05/release-notes.md', 'utf-8');
@@ -34,6 +35,7 @@ export default function ImplementationsPages({
3435
blocks: any;
3536
frontmatter: any;
3637
}) {
38+
const markdownFile = '_indexPage';
3739
return (
3840
<SectionContext.Provider value={null}>
3941
<Headline1>{frontmatter.title}</Headline1>
@@ -42,6 +44,7 @@ export default function ImplementationsPages({
4244

4345
<StyledMarkdown markdown={blocks.index} />
4446
<StyledMarkdown markdown={blocks.body} />
47+
<DocsHelp markdownFile={markdownFile} />
4548
</SectionContext.Provider>
4649
);
4750
}

pages/specification/migration/index.page.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { DocsHelp } from '~/components/DocsHelp';
1010

1111
export async function getStaticProps() {
1212
const index = fs.readFileSync(
13-
'pages/specification/migration/intro.md',
13+
'pages/specification/migration/_index.md',
1414
'utf-8',
1515
);
1616
// const main = fs.readFileSync('pages/draft-05/release-notes.md', 'utf-8');
@@ -36,6 +36,7 @@ export default function ImplementationsPages({
3636
blocks: any;
3737
frontmatter: any;
3838
}) {
39+
const markdownFile = '_indexPage';
3940
return (
4041
<SectionContext.Provider value={null}>
4142
<Headline1>{frontmatter.title}</Headline1>
@@ -71,7 +72,7 @@ export default function ImplementationsPages({
7172
link='/draft-06#draft-06-release-notes'
7273
/>
7374
</div>
74-
<DocsHelp />
75+
<DocsHelp markdownFile={markdownFile} />
7576
</SectionContext.Provider>
7677
);
7778
}

pages/specification/release-notes/index.page.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { DocsHelp } from '~/components/DocsHelp';
1010

1111
export async function getStaticProps() {
1212
const index = fs.readFileSync(
13-
'pages/specification/release-notes/intro.md',
13+
'pages/specification/release-notes/_index.md',
1414
'utf-8',
1515
);
1616
// const main = fs.readFileSync('pages/draft-05/release-notes.md', 'utf-8');
@@ -36,6 +36,7 @@ export default function ImplementationsPages({
3636
blocks: any;
3737
frontmatter: any;
3838
}) {
39+
const markdownFile = '_indexPage';
3940
return (
4041
<SectionContext.Provider value={null}>
4142
<Headline1>{frontmatter.title}</Headline1>
@@ -78,7 +79,7 @@ export default function ImplementationsPages({
7879
link='/draft-05#explanation-for-lack-of-draft-05-meta-schema'
7980
/>
8081
</div>
81-
<DocsHelp />
82+
<DocsHelp markdownFile={markdownFile} />
8283
</SectionContext.Provider>
8384
);
8485
}

0 commit comments

Comments
 (0)