fsharp.org icon indicating copy to clipboard operation
fsharp.org copied to clipboard

docs.fsharp.org?

Open dsyme opened this issue 9 months ago • 9 comments

I've spoken with @ReedCopsey and if we like he can make the DNS changes needed to activate https://docs.fsharp.org

However we'd need to decide what docs can really go there. I'll write some notes about what I think makes sense, if someone wants to tackle this

The main docs for F# are the ones listed here: https://learn.microsoft.com/dotnet/fsharp/ and whose source is part of the .NET docs (https://github.com/dotnet/docs). Although relying on the .NET docs to host and publish the F# docs is a bit annoying (e.g. the Microsoft branding and advertising is frustrating), it's not realistic for the F# community to host all those docs instead. The real question is about the important docs that are "external" to the .NET docs and are in this org,

The .NET docs site links to these. Do we want to move the first two to docs.fsharp.org URL?

To do this we would need a single repo https://github.com/fsharp/fsharp-docs that would contain the CNAME for the DNS entry and would combine the material in

  • docs.fsharp.org/spec --> the material now at https://fsharp.org/specs/language-spec
  • docs.fsharp.org/spec/markdown --> the material now at https://github.com/fsharp/fslang-spec
  • docs.fsharp.org/reference/... --> the material now at https://fsharp.github.io/fsharp-core-docs
  • docs.fsharp.org/compiler/... --> the material now at https://fsharp.github.io/fsharp-compiler-docs/
  • the content at https://fsharp.github.io/fsharp-core-docs would all need to be replaced by deep redirects to docs.fsharp.org/reference/... There are a lot of links to that current site.

The front page docs.fsharp.org would minimally need a search experience, see search on https://fsharp.github.io/fsharp-core-docs/ for example. Other improvements would have to come my improving the tools fsdocs (https://fsprojects.github.io/FSharp.Formatting/) which would continue to be used to generate at least the core docs.

dsyme avatar Apr 08 '25 18:04 dsyme

I'd be happy to work on this.

IanWitham avatar Apr 08 '25 21:04 IanWitham

@IanWitham i will create a new repo docs.fsharp.org and give you access

dsyme avatar Apr 08 '25 23:04 dsyme

Created! https://github.com/fsharp/docs.fsharp.org

dsyme avatar Apr 09 '25 00:04 dsyme

The CNAME mapping is not yet in place

dsyme avatar Apr 09 '25 00:04 dsyme

The site and domains are all setup and should be functioning now.

The docs/ folder (https://github.com/fsharp/docs.fsharp.org/tree/main/docs) is now published to https://docs.fsharp.org properly

ReedCopsey avatar Apr 09 '25 14:04 ReedCopsey

Please take a look at https://github.com/fsharp/docs.fsharp.org/wiki and let me know your thoughts.

IanWitham avatar Apr 16 '25 05:04 IanWitham

Please take a look at https://github.com/fsharp/docs.fsharp.org/wiki and let me know your thoughts.

Shall we include repl with docs? So people can try snippets? We can employ Fable (which can sometimes lag behind a tiny bit), or we can try deploying repl as wasm containers or something. I can assist with integrating it.

vzarytovskii avatar Apr 16 '25 08:04 vzarytovskii

Please take a look at https://github.com/fsharp/docs.fsharp.org/wiki and let me know your thoughts.

I propose we keep the sources of the markdown spec in fsharp/fslang-spec, in the same way as the (real) sources for the core lib documentation stay in dotnet/fsharp (as XML comments in the lib sources).

The spec content still needs a lot of hard work on the content, namely on integrating the RFCs. This will need discussions quite differerent from those needed in fsharp/docs.fsharp.org.

To move fsharp/fsharp-core-docs probably makes more sense, as it would be an intermediate step between the sources and the new site.

Martin521 avatar Apr 16 '25 15:04 Martin521

Would a submodule make sense here?

ReedCopsey avatar Apr 16 '25 15:04 ReedCopsey