File tree Expand file tree Collapse file tree 3 files changed +59
-0
lines changed Expand file tree Collapse file tree 3 files changed +59
-0
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,56 @@ open ReleaseTasks
16
16
17
17
initializeContext ()
18
18
19
+ open FSharp.Compiler .Diagnostics
20
+ open BasicTasks
21
+
22
+ let verifyDocs =
23
+ BuildTask.create " VerifyDocs" [ clean; build ] {
24
+ let targets =
25
+ !! " docs/**.fsx" |> Seq.map ( fun f -> f.ToString())
26
+
27
+ let checker =
28
+ FSharp.Compiler.CodeAnalysis.FSharpChecker.Create()
29
+
30
+ let ignoredDiagnostics = Set.ofList [ 1182 ] // unused variable
31
+
32
+ targets
33
+ |> Seq.map ( fun target ->
34
+ checker.Compile(
35
+ [|
36
+ " fsc.exe"
37
+ " -o"
38
+ @" aaaaaaaaaaa.exe"
39
+ " -a"
40
+ target
41
+ |]
42
+ )
43
+ |> Async.RunSynchronously
44
+ |> fst
45
+ |> Seq.where ( fun diag ->
46
+ match diag.Severity with
47
+ | FSharpDiagnosticSeverity.Error
48
+ | FSharpDiagnosticSeverity.Warning -> true
49
+ | _ -> false ))
50
+ |> Seq.collect id
51
+ |> Seq.where ( fun c -> not ( ignoredDiagnostics.Contains c.ErrorNumber))
52
+ |> Seq.sortBy ( fun diag ->
53
+ ( match diag.Severity with
54
+ | FSharpDiagnosticSeverity.Error -> 0
55
+ | _ -> 1 ),
56
+ diag.FileName.[.. 6 (* to only count the numeric part *) ])
57
+ |> Seq.map ( fun diag ->
58
+ ( match diag.Severity with
59
+ | FSharpDiagnosticSeverity.Error -> " --- Error: "
60
+ | _ -> " --- Warning: " )
61
+ + diag.ToString())
62
+ |> String.concat " \n "
63
+ |> ( fun errorText ->
64
+ match errorText with
65
+ | " " -> ()
66
+ | text -> raise ( System.Exception $" Errors:\n {text}" ))
67
+ }
68
+
19
69
let sourceFiles =
20
70
!! " src/Plotly.NET/**/*.fs"
21
71
++ " src/Plotly.NET.ImageExport/**/*.fs"
Original file line number Diff line number Diff line change 27
27
<PackageReference Include =" Fake.DotNet.MSBuild" Version =" 5.22.0" />
28
28
<PackageReference Include =" Fake.IO.FileSystem" Version =" 5.22.0" />
29
29
<PackageReference Include =" Fake.Tools.Git" Version =" 5.22.0" />
30
+ <PackageReference Include =" FSharp.Compiler.Service" Version =" 41.0.3" />
30
31
</ItemGroup >
31
32
32
33
</Project >
Original file line number Diff line number Diff line change @@ -21,6 +21,14 @@ open System.Runtime.InteropServices
21
21
///- surface and mesh: 3d surface trace types
22
22
///- cone and streamtube: 3d vector field trace types
23
23
///- volume and isosurface: 3d volume trace types
24
+ ///- scatter3d, which can be used to draw individual markers, 3d bubble charts and lines and curves
25
+ ///- surface and mesh: 3d surface trace types
26
+ ///- cone and streamtube: 3d vector field trace types
27
+ ///- volume and isosurface: 3d volume trace types
28
+ ///- scatter3d, which can be used to draw individual markers, 3d bubble charts and lines and curves
29
+ ///- surface and mesh: 3d surface trace types
30
+ ///- cone and streamtube: 3d vector field trace types
31
+ ///- volume and isosurface: 3d volume trace types
24
32
25
33
type Trace3D ( traceTypeName ) =
26
34
inherit Trace( traceTypeName)
You can’t perform that action at this time.
0 commit comments