Skip to content

[Docs]: Open to doc additions with F# (fsharp) #3245

@IvanTheGeek

Description

@IvanTheGeek

Page(s)

https://playwright.dev/dotnet/docs/next/intro
https://playwright.dev/dotnet/docs/next/writing-tests

Description

I understand .Net/dotnet is usually associated with C# as it has the lion's share of developers however there is a strong and passionate group who use F# (fsharp) which IS a dotnet language. In my striving to become proficient in F#, the combination of the functional paradigm AND lack of F# documentation and samples/examples (dotnet api docs HAVE gotton much better each year including F#) has made my journey of the last 15 years nearly impossible (hobby).

This is a query as to the willingness to accept additions to the documentation for playwright-dotnet adding F# versions of the code and examples, mirroring the C# examples?

The second part is what would be the best way to do so for display? The learn docs have a dropdown at the top to change preferred language as demonstrated at
https://learn.microsoft.com/en-us/dotnet/api/system.io.streamwriter?view=net-9.0
This page is an example where the implementation has F# code, but the examples are missing for F# , so it defaults to C#.

https://learn.microsoft.com/en-us/dotnet/api/system.io.file?view=net-9.0
This page has both the F# usage AND the example is in F# as well when the language option is set to F#.

I am proposing doing a similar setup for the playwrite-dotnet docs.

I am likely going to fork and work my own additions either way. If the maintainers feel this would be a contribution, I am willing to cooperate with the changes and submit back to the project. If it is not welcome, then I will proceed without consideration of submitting back.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions