diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index 5913342..ae920d3 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -1,3 +1,9 @@ +### 0.5.2+b44e9a5 (Released 2022-7-11) +* Additions: + * latest commit #b44e9a5 +* Bugfixes: + * [[#b44e9a5](https://github.com/Freymaurer/Nfdi4Plants.Fornax/commit/b44e9a590407e687d829dd7a64ac10e3ffe4becd)] Try fix path bug :bug: + ### 0.5.1+b277eab (Released 2022-7-11) * Additions: * latest commit #b277eab diff --git a/src/Nfdi4Plants.Fornax/Loaders.fs b/src/Nfdi4Plants.Fornax/Loaders.fs index 60b3493..dbd75b9 100644 --- a/src/Nfdi4Plants.Fornax/Loaders.fs +++ b/src/Nfdi4Plants.Fornax/Loaders.fs @@ -15,10 +15,15 @@ module Pipelines = .UseNFDICodeBlock() .Build() - let sidebarMarkdownPipeline = - MarkdownPipelineBuilder() - .UseSidebarHeader() - .Build() + let sidebarMarkdownPipeline(productionBasePath: string option) = + if productionBasePath.IsSome then + MarkdownPipelineBuilder() + .UseSidebarHeader(productionBasePath.Value) + .Build() + else + MarkdownPipelineBuilder() + .UseSidebarHeader() + .Build() type SidebarElement = { Title: string @@ -110,7 +115,7 @@ module internal Aux = let c = lines |> List.rev |> String.concat "\n" { Title = title - Content = Markdig.Markdown.ToHtml(c, Pipelines.sidebarMarkdownPipeline) + Content = Markdig.Markdown.ToHtml(c, Pipelines.sidebarMarkdownPipeline(productionBasePath)) } ) |> List.rev