Skip to content

Commit f21e07d

Browse files
committed
feat(ci): build only FSharpLint.Core for docs
1 parent b9126af commit f21e07d

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

build/build.fs

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -604,6 +604,16 @@ let cleanDocsCache _ = DocsTool.cleanDocsCache ()
604604

605605
let buildDocs ctx =
606606
let configuration = configuration (ctx.Context.AllExecutingTargets)
607+
608+
// Build only FSharpLint.Core project for documentation
609+
DotNet.build
610+
(fun c -> {
611+
c with
612+
Configuration = DotNet.BuildConfiguration.fromString (string configuration)
613+
MSBuildParams = disableBinLog c.MSBuildParams
614+
})
615+
(rootDirectory </> "src/FSharpLint.Core")
616+
607617
DocsTool.build (string configuration)
608618

609619
let watchDocs ctx =
@@ -687,9 +697,9 @@ let initTargets (ctx : Context.FakeExecutionContext) =
687697

688698
"CleanDocsCache" ==>! "BuildDocs"
689699

690-
"DotnetBuild" ?=>! "BuildDocs"
691-
692-
"DotnetBuild" ==>! "BuildDocs"
700+
// BuildDocs doesn't need DotnetBuild as it builds FSharpLint.Core itself
701+
// "DotnetBuild" ?=>! "BuildDocs"
702+
// "DotnetBuild" ==>! "BuildDocs"
693703

694704
"DotnetBuild" ==>! "WatchDocs"
695705

0 commit comments

Comments
 (0)