Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

Commit

Permalink
productionbasePath wasnt fully implemented .. 🐛
Browse files Browse the repository at this point in the history
  • Loading branch information
Freymaurer committed Jul 11, 2022
1 parent b44e9a5 commit da2f374
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
6 changes: 6 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
15 changes: 10 additions & 5 deletions src/Nfdi4Plants.Fornax/Loaders.fs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit da2f374

Please sign in to comment.