diff --git a/scripts/PrepareMdToJson.re b/scripts/PrepareMdToJson.re index ecbb8fc..1a6293b 100644 --- a/scripts/PrepareMdToJson.re +++ b/scripts/PrepareMdToJson.re @@ -24,7 +24,7 @@ Path.join([|sourcePath, "**/*.md"|]) let mdJson = mdToJson(file.content); let content = { - "filename": file.name |> Js.String.replace(root, "website"), + "filename": file.name |> Js.String.replace(root, ""), "id": mdJson##id, "title": mdJson##title, "body": mdJson##body, @@ -150,7 +150,7 @@ Path.join([|sourcePath, "**/*.md"|]) let mdJson = mdToJson(file.content); let content = { - "filename": file.name |> Js.String.replace(root, "website"), + "filename": file.name |> Js.String.replace(root, ""), "id": mdJson##id, "title": mdJson##title, "author": mdJson##author, @@ -190,4 +190,4 @@ Path.join([|sourcePath, "**/*.md"|]) (index^ |> Js.Json.stringifyAny)->Option.getWithDefault("[]"), }, |]); - }); + }); \ No newline at end of file diff --git a/src/components/PageContent.re b/src/components/PageContent.re index 249ec14..b37bb80 100644 --- a/src/components/PageContent.re +++ b/src/components/PageContent.re @@ -90,7 +90,7 @@ let make = (~pageData) => { None; }; let editHref = - "https://github.com/reason-react-native/reason-react-native/blob/master/" + "https://github.com/reason-react-native/reason-react-native.github.io/blob/src/" ++ pageData.filename;
@@ -160,4 +160,4 @@ If you want you can help us to improve the situation by |}
; -}; +}; \ No newline at end of file