File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,9 @@ const parsePathSlug = (slug: string) => {
73
73
/ ^ \/ (?< platform > [ ^ / ] + ) \/ p e r f o r m a n c e - o n b o a r d i n g \/ (?< sub_platform > [ ^ / ] + ) \/ (?< step > [ ^ / ] + ) \/ $ /
74
74
) ;
75
75
76
- const { platform, sub_platform, step } = pathMatch . groups ;
76
+ const { platform, sub_platform } = pathMatch . groups ;
77
+ let { step } = pathMatch . groups ;
78
+ step = step . replaceAll ( "." , "-" ) ;
77
79
let sub = `performance-onboarding-${ sub_platform } -${ step } ` ;
78
80
79
81
if ( platform === pathMatch . groups . sub_platform ) {
@@ -105,7 +107,7 @@ const writeJson = async (
105
107
const platforms = [ ] ;
106
108
const indexJson = { } ;
107
109
nodes . forEach ( node => {
108
- const { platform :main , sub} = parsePathSlug ( node . fields . slug ) ;
110
+ const { platform : main , sub } = parsePathSlug ( node . fields . slug ) ;
109
111
110
112
if ( ! indexJson [ main ] ) indexJson [ main ] = { } ;
111
113
if ( ! node . frontmatter . doc_link ) {
You can’t perform that action at this time.
0 commit comments