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

Commit

Permalink
set up nuget.config 🎨
Browse files Browse the repository at this point in the history
  • Loading branch information
Freymaurer committed Jun 14, 2022
1 parent ee3b12a commit 675aa1a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
6 changes: 6 additions & 0 deletions nuget.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="Nfdi4Plants.Fornax" value="src\_lib" />
</packageSources>
</configuration>
2 changes: 0 additions & 2 deletions src/_lib/loadscript.fsx

This file was deleted.

8 changes: 3 additions & 5 deletions src/loaders/docsloader.fsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#r "../_lib/Fornax.Core.dll"
#r "../_lib/Markdig.dll"
#i """nuget: C:\Users\Kevin\source\repos\Nfdi4Plants.Fornax\pkg"""
#r "nuget: Nfdi4Plants.Fornax"
// This can be used to access local .nupkg, thanks to the nuget.config file.
#r "nuget: Nfdi4Plants.Fornax, 0.0.0"

open System.IO
open Fornax.Nfdi4Plants
Expand All @@ -10,16 +10,14 @@ let contentDir = "docs"

let loader (projectRoot: string) (siteContent: SiteContents) =
let docsPath = Path.Combine(projectRoot, contentDir)
// let options = EnumerationOptions(RecurseSubdirectories = true)
// let files = Directory.GetFiles(docsPath, "*"), options)
let files =
Directory.GetFiles(docsPath, "*")
|> Array.filter (fun n -> n.EndsWith ".md")
|> Array.filter (fun n -> n.Contains "README.md" |> not)
let docs =
files
|> Array.map (Docs.loadFile projectRoot contentDir)

printfn "LOADER: %i" <| Seq.length docs

docs
Expand Down

0 comments on commit 675aa1a

Please sign in to comment.