diff --git a/build.fsx b/build.fsx index 2296da58..7140bb1a 100644 --- a/build.fsx +++ b/build.fsx @@ -14,12 +14,17 @@ Environment.CurrentDirectory <- __SOURCE_DIRECTORY__ // PREPARE +Target "Start" DoNothing Target "Clean" (fun _ -> CleanDirs ["out"; "obj"; "temp"]) Target "RestorePackages" RestorePackages Target "AssemblyInfo" DoNothing Target "Prepare" DoNothing -"Clean" ==> "RestorePackages" ==> "AssemblyInfo" ==> "Prepare" +"Start" + =?> ("Clean", not (hasBuildParam "incremental")) + ==> "RestorePackages" + ==> "AssemblyInfo" + ==> "Prepare" // BUILD @@ -52,6 +57,8 @@ Target "Test" (fun _ -> // DOCUMENTATION +Target "CleanDocs" (fun _ -> CleanDirs ["out" @@ "docs"]) + Target "Docs" (fun _ -> executeFSIWithArgs "docs/tools" "build-docs.fsx" ["--define:RELEASE"] [] |> ignore ) diff --git a/docs/tools/build-docs.fsx b/docs/tools/build-docs.fsx index a9c523ba..bc603bda 100644 --- a/docs/tools/build-docs.fsx +++ b/docs/tools/build-docs.fsx @@ -83,7 +83,7 @@ let buildDocumentation () = let sub = if dir.Length > content.Length then dir.Substring(content.Length + 1) else "." Literate.ProcessDirectory ( dir, docTemplate, output @@ sub, replacements = ("root", root)::info, - layoutRoots = layoutRoots ) + layoutRoots = layoutRoots, references=false, lineNumbers=true ) // Generate copyFiles()