FSharp.Formatting icon indicating copy to clipboard operation
FSharp.Formatting copied to clipboard

fsdocs-list-of-documents not working as expected

Open ryanwildes opened this issue 3 years ago • 1 comments

Hello,

I'm using FSharp.Formatting to create a static site using literate scripts. I've created a _template.html to selectively replace some of the substitution parameters with hard-coded values (like repository URL, etc). However, I'm running into an issue trying to use {{fsdocs-list-of-documents}}. I think it's including the root parameter, so instead of getting a URL like:

/category/document.html

I'm getting:

/repofolder/category/document.html

However, if I try to set the root parameter in the command line, like --parameters root /, it doesn't fix the issue. It also has the side effect of causing index.json to be empty.

ryanwildes avatar Apr 24 '22 20:04 ryanwildes

Hmmm interesting. I think you'd just need to debug through what's happening in GetNavigationEntries, I see

              let link = model.Uri(root)

and root should come from Crack.crackProjects and is used throughout, so I'm not quite sure what's up

dsyme avatar Apr 25 '22 03:04 dsyme