fsprojects / FSharp.Formatting

F# tools for generating documentation (Markdown processor and F# code formatter)
https://fsprojects.github.io/FSharp.Formatting/
Other
462 stars 155 forks source link

Test projects #801

Closed nhirschey closed 1 year ago

nhirschey commented 1 year ago

Fixes #800. Mostly relies on projInfos now to exclude test projects, but for building FSharp.Formatting docs correctly we need custom code to exclude this library's own test projects from the ApiDocs.

I exclude FSharp.Formatting test projects using

if s.Contains("tests\\FSharp") then

We could be more explicit, such as below, but then if a future person adds additional test projects to this library they might forget to explicitly exclude them

if s.Contains("FSharp.ApiDocs.Tests") || s.Contains("FSharp.Formatting.TestHelpers")