File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -24,11 +24,11 @@ type TestFile =
2424 | File of name : string * contents : string
2525 | MarkdownFile of name : string * markdown : Markdown
2626
27- static member IndexFile ( [<LanguageInjection( " markdown" ) >] m ) =
27+ static member Index ( [<LanguageInjection( " markdown" ) >] m ) =
2828 MarkdownFile( " index.md" , m)
2929
30- static member Markdown ( [<LanguageInjection( " markdown" ) >] m ) =
31- MarkdownFile( " index.md " , m)
30+ static member Markdown path ( [<LanguageInjection( " markdown" ) >] m ) =
31+ MarkdownFile( path , m)
3232
3333type Setup =
3434
@@ -106,7 +106,7 @@ type Setup =
106106
107107 /// Pass a full documentation page to the test setup
108108 static member Document ( [<LanguageInjection( " markdown" ) >] m : string ) =
109- lazy ( task { return ! Setup.Generator [ IndexFile m] } |> Async.AwaitTask |> Async.RunSynchronously)
109+ lazy ( task { return ! Setup.Generator [ Index m] } |> Async.AwaitTask |> Async.RunSynchronously)
110110
111111 /// Pass a markdown fragment to the test setup
112112 static member Markdown ( [<LanguageInjection( " markdown" ) >] m : string ) =
@@ -115,7 +115,7 @@ type Setup =
115115{m}
116116"""
117117 lazy (
118- task { return ! Setup.Generator [ IndexFile m] }
118+ task { return ! Setup.Generator [ Index m] }
119119 |> Async.AwaitTask |> Async.RunSynchronously
120120 )
121121
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ open authoring
1010type ``two pages with anchors end up in artifact`` () =
1111
1212 static let generator = Setup.Generate [
13- IndexFile """
13+ Index """
1414# A Document that lives at the root
1515
1616*Welcome* to this documentation
@@ -21,7 +21,7 @@ type ``two pages with anchors end up in artifact`` () =
2121
2222Through various means $$$including-this-inline-syntax$$$
2323"""
24- MarkdownFile ( " file.md" , " *hello* world" )
24+ Markdown " file.md" " *hello* world"
2525 ]
2626
2727 [<Fact>]
You can’t perform that action at this time.
0 commit comments