@@ -8,6 +8,7 @@ Lowlight.(lowlight->registerLanguage("reason", reason));
88[@ bs . module ] external mdToJson : string => ' a = "@phenomic/markdown-as-json" ;
99
1010Js . log("Docs pages..." );
11+
1112let sourcePath = Path . join([| root, "docs" |] );
1213let outputPath = Path . join([| root, "build" , "docs-pages" |] );
1314Path . join([| sourcePath, "**/*.md" |] )
@@ -24,7 +25,12 @@ Path.join([|sourcePath, "**/*.md"|])
2425 let mdJson = mdToJson(file. content);
2526 let content =
2627 {
27- "filename" : file. name |> Js . String . replace(root, "" ),
28+ "filename" :
29+ file. name
30+ |> Js . String . replace(
31+ root,
32+ "reason-react-native.github.io/blob/src/" ,
33+ ),
2834 "id" : mdJson## id,
2935 "title" : mdJson## title,
3036 "body" : mdJson## body,
@@ -84,6 +90,10 @@ Path.join([|sourcePath, "**/*.md"|])
8490 |> Js . String . replace(
8591 Node . Path . resolve(root, ".." ) ++ "/" ,
8692 "" ,
93+ )
94+ |> Js . String . replace(
95+ "reason-react-native" ,
96+ "reason-react-native/blob/master" ,
8797 ),
8898 "id" : mdJson## id,
8999 "title" : mdJson## title,
@@ -150,7 +160,12 @@ Path.join([|sourcePath, "**/*.md"|])
150160 let mdJson = mdToJson(file. content);
151161 let content =
152162 {
153- "filename" : file. name |> Js . String . replace(root, "" ),
163+ "filename" :
164+ file. name
165+ |> Js . String . replace(
166+ root,
167+ "reason-react-native.github.io/blob/src/" ,
168+ ),
154169 "id" : mdJson## id,
155170 "title" : mdJson## title,
156171 "author" : mdJson## author,
0 commit comments