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: README.md
+13-41
Original file line number
Diff line number
Diff line change
@@ -9,45 +9,24 @@ signature files (`*.fsi`) in the FSharp.Core implementation.
9
9
10
10
* Fork and clone <https://github.com/dotnet/fsharp> locally, see below, as a subdirectory of your copy of `fsharp-core-docs`
11
11
12
-
* Contribute to [the FSharp.Core directory](https://github.com/dotnet/fsharp/tree/master/src/fsharp/FSharp.Core)
13
-
14
-
* Use a local build, see below
12
+
* Contribute to [the FSharp.Core directory](https://github.com/dotnet/fsharp/tree/main/src/fsharp/FSharp.Core)
15
13
16
14
* Submit work to `main` branch of <https://github.com/dotnet/fsharp>
17
15
18
-
*Once accepted your work will be published through a rebuild here. Site rebuilds daily at 17:30 UTC, or submit a dummy pull request here to trigger.
16
+
*Update the `dotnet tool` if new versions are released.
19
17
20
18
## Contributing to Generation of API Docs
21
19
22
20
The docs are generated by using `fsdocs` tool from FSharp.Formatting. If you want to improve the generation process:
23
21
24
-
* Contribute to the API Docs mode and/or HTML generator in [FSharp.Formatting.ApiDocs](https://github.com/fsprojects/FSharp.Formatting/tree/master/src/FSharp.Formatting.ApiDocs) and [the `fsdocs` tool](https://github.com/fsprojects/FSharp.Formatting/tree/master/src/FSharp.Formatting.CommandTool)
25
-
26
-
* Use a local copy of these, see below, as a subdirectory of fsharp-core-docs
27
-
28
-
* Submit work to the `master` branch of <https://github.com/fsprojects/FSharp.Formatting>
29
-
30
-
* Once accepted the new tooling will be published through a rebuild here, so submit a dummy pull request here that increments dummyVersion.txt
31
-
32
-
## Contributing to Layout and Design
33
-
34
-
These pages are currently using [the default template of the FSharp.Formatting tools](https://github.com/fsprojects/FSharp.Formatting/blob/master/docs/_template.html)
35
-
with its small amount of corresponding [CSS and JavaScript](https://github.com/fsprojects/FSharp.Formatting/tree/master/docs/content)
36
-
37
-
See [FSharp.Formatting styling](https://fsprojects.github.io/FSharp.Formatting/styling.html) for information on styling for output generated by `fsdocs`.
22
+
* Contribute to the API Docs mode and/or HTML generator in [FSharp.Formatting.ApiDocs](https://github.com/fsprojects/FSharp.Formatting/tree/main/src/FSharp.Formatting.ApiDocs) and [the `fsdocs` tool](https://github.com/fsprojects/FSharp.Formatting/tree/main/src/FSharp.Formatting.CommandTool)
38
23
39
-
This template is *not* the long term plan (unless it is improved enough). We can improve the design - please help with this.
24
+
* Submit work to the `main` branch of <https://github.com/fsprojects/FSharp.Formatting>
40
25
41
-
1. Copy the default template and CSS to `docs`. Rebuild as before. This template will be used instead of the default template.
42
-
43
-
2. After you have identified fixes and improvements, contribute back to the default template of FSharp.Formatting, or submit your work here and we can assess that. This will help improve many F# libraries.
44
-
45
-
Whatever improvements you make should eventually get copied across back into FSharp.Formatting (and the duplicated template and styling will then likely be removed from this repo once it's no longer needed). If the design diverges to be a completely different look and feel then we can make several templates available in FSharp.Formatting with this as one of them.
26
+
* Update the `dotnet tool` if new versions are released.
46
27
47
28
## Build steps
48
29
49
-
Eventually the build will just be
50
-
51
30
dotnet tool restore
52
31
dotnet restore FSharp.Core
53
32
dotnet fsdocs build
@@ -56,34 +35,27 @@ For now, we want to pick up the latest copies of FSharp.Formatting and FSharp.Co
56
35
57
36
(start in 'fsharp-core-docs')
58
37
dotnet restore FSharp.Core
38
+
dotnet tool restore
59
39
60
-
(make 'fsharp-core-docs/fsharp' and 'fsharp-core-docs/FSharp.Formatting' )
40
+
(make fsharp-compiler-docs/fsharp)
61
41
git clone https://github.com/dotnet/fsharp --depth 1 -b main
This repo is published via GitHub Actions. On each push to master, the docs are built, and the outputs (which are written to the `output` directory by fsdocs) are pushed to the `gh-pages` branch. This repo is configured to host using GitHub Pages from this branch, so once the generated files are pushed the update is nearly-instant.
82
-
83
-
To build the very latest and freshest docs using the latest `fsdocs` tooling the CI does this:
55
+
This repo is published via GitHub Actions. On each push to main, the docs are built, and the outputs (which are written to the `output` directory by fsdocs) are pushed to the `gh-pages` branch. This repo is configured to host using GitHub Pages from this branch, so once the generated files are pushed the update is nearly-instant.
84
56
85
-
1. build dotnet/fsharp `main` branch (where we assume latest doc updates have been pushed)
57
+
To build the very latest and freshest docs the CI does this:
86
58
87
-
2. builds `FSharp.Formatting` master branch
59
+
1. build dotnet/fsharp `main`branch (where we assume latest doc updates have been pushed).
88
60
89
-
3. Uses that `FSharp.Formatting` tool to build the docs for the FSharp.Core built in step 1
61
+
2. generate the documentation using the local dotnet fsdocs tool.
0 commit comments