anchor.diff:  Target.create "GenerateDocs" (fun _ ->
       let result =
           Shell.cleanDir ".fsdocs"
  -        DotNet.exec id "fsdocs" "build --clean"
  +        DotNet.exec id "fsdocs" "build --clean --eval"
  +
  +    if not result.OK then failwith "error generating docs"
  +)
  +
  +Target.create "GenerateLocalDocs" (fun _ ->
  +    let root = "file://" + (__SOURCE_DIRECTORY__ @@ "/output/")
  +    let cmd = @"build --clean --eval --parameters root """ + root + @""""
  +    let result =
  +        Shell.cleanDir ".fsdocs"
  +        DotNet.exec id "fsdocs" cmd
   
       if not result.OK then failwith "error generating docs"
   )
  
positive.code: // Build everything
  
  Target.create "Build" (fun _ ->
      solutionFile 
      |> DotNet.build (fun p -> 
          { p with
              Configuration = buildConfiguration })
  )
  
negative.code:   ==> "CleanDocs"
    ==> "AssemblyInfo"
    ==> "Build"
    ==> "CopyBinaries"
    ==> "GenerateDocs"
    ==> "BuildDevPackages"
    ==> "DevBuild"
  
  "CopyBinaries"
    ==> "GenerateLocalDocs"
  
  "DevBuild"
    ==> "RunPlotlyTests"
  