File tree 6 files changed +10
-5
lines changed 6 files changed +10
-5
lines changed File renamed without changes.
Original file line number Diff line number Diff line change @@ -5,10 +5,11 @@ import matter from 'gray-matter';
5
5
import StyledMarkdown from '~/components/StyledMarkdown' ;
6
6
import { SectionContext } from '~/context' ;
7
7
import { Headline1 } from '~/components/Headlines' ;
8
+ import { DocsHelp } from '~/components/DocsHelp' ;
8
9
9
10
export async function getStaticProps ( ) {
10
11
const index = fs . readFileSync (
11
- 'pages/specification/json-hyper-schema/index .md' ,
12
+ 'pages/specification/json-hyper-schema/_index .md' ,
12
13
'utf-8' ,
13
14
) ;
14
15
// const main = fs.readFileSync('pages/draft-05/release-notes.md', 'utf-8');
@@ -34,6 +35,7 @@ export default function ImplementationsPages({
34
35
blocks : any ;
35
36
frontmatter : any ;
36
37
} ) {
38
+ const markdownFile = '_indexPage' ;
37
39
return (
38
40
< SectionContext . Provider value = { null } >
39
41
< Headline1 > { frontmatter . title } </ Headline1 >
@@ -42,6 +44,7 @@ export default function ImplementationsPages({
42
44
43
45
< StyledMarkdown markdown = { blocks . index } />
44
46
< StyledMarkdown markdown = { blocks . body } />
47
+ < DocsHelp markdownFile = { markdownFile } />
45
48
</ SectionContext . Provider >
46
49
) ;
47
50
}
File renamed without changes.
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import { DocsHelp } from '~/components/DocsHelp';
10
10
11
11
export async function getStaticProps ( ) {
12
12
const index = fs . readFileSync (
13
- 'pages/specification/migration/intro .md' ,
13
+ 'pages/specification/migration/_index .md' ,
14
14
'utf-8' ,
15
15
) ;
16
16
// const main = fs.readFileSync('pages/draft-05/release-notes.md', 'utf-8');
@@ -36,6 +36,7 @@ export default function ImplementationsPages({
36
36
blocks : any ;
37
37
frontmatter : any ;
38
38
} ) {
39
+ const markdownFile = '_indexPage' ;
39
40
return (
40
41
< SectionContext . Provider value = { null } >
41
42
< Headline1 > { frontmatter . title } </ Headline1 >
@@ -71,7 +72,7 @@ export default function ImplementationsPages({
71
72
link = '/draft-06#draft-06-release-notes'
72
73
/>
73
74
</ div >
74
- < DocsHelp />
75
+ < DocsHelp markdownFile = { markdownFile } />
75
76
</ SectionContext . Provider >
76
77
) ;
77
78
}
File renamed without changes.
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import { DocsHelp } from '~/components/DocsHelp';
10
10
11
11
export async function getStaticProps ( ) {
12
12
const index = fs . readFileSync (
13
- 'pages/specification/release-notes/intro .md' ,
13
+ 'pages/specification/release-notes/_index .md' ,
14
14
'utf-8' ,
15
15
) ;
16
16
// const main = fs.readFileSync('pages/draft-05/release-notes.md', 'utf-8');
@@ -36,6 +36,7 @@ export default function ImplementationsPages({
36
36
blocks : any ;
37
37
frontmatter : any ;
38
38
} ) {
39
+ const markdownFile = '_indexPage' ;
39
40
return (
40
41
< SectionContext . Provider value = { null } >
41
42
< Headline1 > { frontmatter . title } </ Headline1 >
@@ -78,7 +79,7 @@ export default function ImplementationsPages({
78
79
link = '/draft-05#explanation-for-lack-of-draft-05-meta-schema'
79
80
/>
80
81
</ div >
81
- < DocsHelp />
82
+ < DocsHelp markdownFile = { markdownFile } />
82
83
</ SectionContext . Provider >
83
84
) ;
84
85
}
You can’t perform that action at this time.
0 commit comments