3
3
// (the generated documentation is stored in the 'docs' directory)
4
4
// --------------------------------------------------------------------------------------
5
5
6
+ #r " paket: groupref generate //"
7
+ #load " ./.fake/generate.ja.fsx/intellisense.fsx"
8
+
9
+ // Binaries that have XML documentation (in a corresponding generated XML file)
10
+ let referenceBinaries = [ " ../../../artifacts/bin/fcs/Release/net461/FSharp.Compiler.Service.dll" ]
11
+
6
12
// Web site location for the generated documentation
7
13
let website = " /FSharp.Compiler.Service/ja"
8
14
@@ -18,35 +24,22 @@ let info =
18
24
// For typical project, no changes are needed below
19
25
// --------------------------------------------------------------------------------------
20
26
21
- #I " ../../packages/FSharpVSPowerTools.Core/lib/net461"
22
- #I " ../../packages/FSharp.Formatting/lib/net40"
23
- #I " ../../packages/FSharp.Compiler.Service/lib/net461"
24
- #I " ../../packages/FAKE/tools"
25
- #r " FSharpVSPowerTools.Core.dll"
26
- #r " System.Web.Razor.dll"
27
- #r " FakeLib.dll"
28
- #r " FSharp.Compiler.Service.dll"
29
- #r " RazorEngine.dll"
30
- #r " FSharp.Literate.dll"
31
- #r " FSharp.CodeFormat.dll"
32
- #r " FSharp.MetadataFormat.dll"
33
- open Fake
34
- open System.IO
35
- open Fake.FileHelper
36
- open FSharp.Literate
37
- open FSharp.MetadataFormat
27
+ open Fake.IO .FileSystemOperators
28
+ open Fake.IO
29
+ open Fake.Core
30
+ open FSharp.Formatting .Razor
38
31
39
32
// When called from 'build.fsx', use the public project URL as <root>
40
33
// otherwise, use the current 'output' directory.
41
34
let root = " ."
42
35
43
36
// Paths with template/source/output locations
44
- let bin = __ SOURCE_ DIRECTORY__ @@ " ../../../release/fcs/net461 "
37
+ let bin = __ SOURCE_ DIRECTORY__ @@ " ../../../release/fcs/netcoreapp3.0 "
45
38
let content = __ SOURCE_ DIRECTORY__ @@ " ../content/ja"
46
39
let outputJa = __ SOURCE_ DIRECTORY__ @@ " ../../../docs/ja"
47
40
let files = __ SOURCE_ DIRECTORY__ @@ " ../files"
48
41
let templates = __ SOURCE_ DIRECTORY__ @@ " templates/ja"
49
- let formatting = __ SOURCE_ DIRECTORY__ @@ " ../../packages/FSharp.Formatting/ "
42
+ let formatting = __ SOURCE_ DIRECTORY__ @@ " ../../packages/generate/ FSharp.Formatting"
50
43
let docTemplate = formatting @@ " templates/docpage.cshtml"
51
44
52
45
// Where to look for *.csproj templates (in this order)
@@ -60,10 +53,9 @@ let layoutRoots =
60
53
let buildDocumentation () =
61
54
for dir in [ content] do
62
55
let sub = if dir.Length > content.Length then dir.Substring( content.Length + 1 ) else " ."
63
- printfn " root = %s " root
64
- Literate.ProcessDirectory
56
+ RazorLiterate.ProcessDirectory
65
57
( dir, docTemplate, outputJa @@ sub, replacements = ( " root" , root):: info,
66
- layoutRoots = layoutRoots, generateAnchors = true )
58
+ layoutRoots = layoutRoots, generateAnchors = true , processRecursive = false )
67
59
68
60
// Generate
69
61
buildDocumentation()
0 commit comments