You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/apidocs.fsx
+11-11Lines changed: 11 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -61,7 +61,7 @@ The HTML is built by instantiating a template. The template used is the first of
61
61
62
62
* The default template
63
63
64
-
Usually the same template can be used as for [other content](content.html).
64
+
Usually, the same template can be used as for [other content](content.html).
65
65
66
66
## Classic XML Doc Comments
67
67
@@ -94,7 +94,7 @@ In addition, you may also use the [Recommended XML doc extensions for F# documen
94
94
* `\(...\)` for inline math and `$$...$$` and `\[...\]`for math environments, see http://docs.mathjax.org.
95
95
Some escaping of characters (e.g. `<`, `>`) may be needed to form valid XML
96
96
97
-
An example of an XML documentation comment, assuming the code is in namespace `TheNamespace`:
97
+
An example of an XML documentation comment, assuming the code is in the namespace `TheNamespace`:
98
98
*)
99
99
/// <summary>
100
100
/// A module
@@ -211,7 +211,7 @@ If the member cannot be found, a link to the containing module/type will be used
211
211
(**
212
212
### Classic XMl Doc Comments: Excluding APIs from the docs
213
213
214
-
If you want to exclude modules or functions from the API docs you can use the `<exclude/>` tag.
214
+
If you want to exclude modules or functions from the API docs, you can use the `<exclude/>` tag.
215
215
It needs to be set on a separate triple-slashed line, and can either appear on its own or as part
216
216
of an existing `<summary>` (for example, you may wish to hide existing documentation while it's in progress).
217
217
The `<exclude/>` tag can be the first or last line in these cases.
@@ -304,16 +304,16 @@ You can do this in two different ways:
304
304
* Add a [markdown inline link](https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet#links) were the link
305
305
title is the name of the type you want to link.
306
306
307
-
/// this will generate a link to [Foo.Bar] documentation
307
+
/// This will generate a link to [Foo.Bar] documentation
308
308
309
309
* Add a [Markdown inline code](https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet#code) (using
310
310
back-ticks) where the code is the name of the type you want to link.
311
311
312
312
/// This will also generate a link to `Foo.Bar` documentation
313
313
314
314
You can use either the full name (including namespace and module) or the simple name of a type.
315
-
If more than one type is found with the same name the link will not be generated.
316
-
If a type with the given name is not found in the same assembly the link will not be generated.
315
+
If more than one type is found with the same name, the link will not be generated.
316
+
If a type with the given name is not found in the same assembly, the link will not be generated.
317
317
*)
318
318
319
319
/// Contains two types [Bar] and [Foo.Baz]
@@ -353,7 +353,7 @@ module Bar =
353
353
leta=42
354
354
355
355
(**
356
-
Example as first line:
356
+
Example as the first line:
357
357
*)
358
358
359
359
/// [omit]
@@ -366,8 +366,8 @@ module Bar2 =
366
366
367
367
## Building library documentation programmatically
368
368
369
-
You can build library documentation programatically using the functionality
370
-
in the `cref:T:FSharp.Formatting.ApiDocs.ApiDocs` type. To do this, load the assembly and open necessary namespaces:
369
+
You can build library documentation programmatically using the functionality
370
+
in the `cref:T:FSharp.Formatting.ApiDocs.ApiDocs` type. To do this, load the assembly and open the necessary namespaces:
371
371
*)
372
372
373
373
#r "FSharp.Formatting.ApiDocs.dll"
@@ -414,7 +414,7 @@ ApiDocs.GenerateHtml(
414
414
(**
415
415
or use `libDirs` to include all assemblies from an entire folder.
416
416
Tip: A combination of `<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>` in the fsproj file and setting `libDirs` to the compilation output path leads to only one folder with all dependencies referenced.
417
-
This might be easier especially for large projects with many dependencies.
417
+
This might be easier, especially for large projects with many dependencies.
418
418
*)
419
419
420
420
ApiDocs.GenerateHtml(
@@ -429,7 +429,7 @@ ApiDocs.GenerateHtml(
429
429
(**
430
430
## Rebasing Links
431
431
432
-
The `root` parameter is used for the base of page and image links in the generated documentation. By default it is derived from the project's `<PackageProjectUrl>` property.
432
+
The `root` parameter is used for the base of page and image links in the generated documentation. By default, it is derived from the project's `<PackageProjectUrl>` property.
433
433
434
434
In some instances, you may wish to override the value for `root` (perhaps for local testing). To do this, you can use the command-line argument `--parameters root <base>`.
0 commit comments