This repository was archived by the owner on Jan 20, 2025. It is now read-only.
File tree 2 files changed +7
-7
lines changed
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -14,12 +14,12 @@ const addContent = (content) => {
14
14
standards . forEach ( ( item , index ) => {
15
15
const fileContent = `---
16
16
sidebar_position: ${ index + 1 }
17
- id: ${ item . id }
18
- title: ${ item . id . charAt ( 0 ) . toUpperCase ( ) + item . id . slice ( 1 ) }
19
- slug: /details/${ item . id }
17
+ id: ${ item . slug }
18
+ title: ${ item . title }
19
+ slug: /details/${ item . slug }
20
20
---
21
21
22
- # ${ item . id . charAt ( 0 ) . toUpperCase ( ) + item . id . slice ( 1 ) }
22
+ # ${ item . title }
23
23
24
24
## Use Case
25
25
@@ -29,7 +29,7 @@ slug: /details/${item.id}
29
29
30
30
## Description
31
31
32
- ${ item . item }
32
+ ${ item . description }
33
33
34
34
## Details
35
35
@@ -40,6 +40,6 @@ ${item.item}
40
40
- How To: ${ addContent ( item [ 'how to' ] ) }
41
41
42
42
`
43
- const detination = path . join ( process . cwd ( ) , `docs/details/${ item . id } .mdx` )
43
+ const detination = path . join ( process . cwd ( ) , `docs/details/${ item . slug } .mdx` )
44
44
writeFileSync ( detination , fileContent )
45
45
} )
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ standards.forEach(item =>
30
30
const addHeader = ( ) => `
31
31
| Section | Item | Priority Group | Details |
32
32
| --- | --- | --- | --- |`
33
- const addRow = ( item ) => `| ${ item . section } | ${ item . item } | ${ item [ 'priority group' ] } | [details](/details/${ item . id } ) |`
33
+ const addRow = ( item ) => `| ${ item . section } | ${ item . title } | ${ item [ 'priority group' ] } | [details](/details/${ item . slug } ) |`
34
34
35
35
// Prepare the markdown files
36
36
projectStatus . forEach ( ( status , index ) => {
You can’t perform that action at this time.
0 commit comments