We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 59794b6 + ca1d66d commit 74ab8b4Copy full SHA for 74ab8b4
generators/lunr.fsx
@@ -9,17 +9,17 @@
9
10
open Apirefloader
11
open FSharp.Formatting.ApiDocs
12
-
13
let generate (ctx : SiteContents) (projectRoot: string) (page: string) =
14
let all = ctx.TryGetValues<AssemblyEntities>()
+ let siteInfo = ctx.TryGetValue<SiteInfo>() |> Option.get
15
let refs =
16
match all with
17
| None -> [| |]
18
| Some all ->
19
match List.ofSeq all with
20
| [model] ->
21
let model = { model.GeneratorOutput with
22
- CollectionRootUrl = "/reference/FSharp.Core" }
+ CollectionRootUrl = siteInfo.root_url + "/reference/FSharp.Core" }
23
ApiDocs.GenerateSearchIndexFromModel model
24
| _ ->
25
[| |]
0 commit comments