Replies: 3 comments
-
Docs already support IMO, docs do need an overhaul on the sidebar for discoverability. It's a bit unclear how that should be handled. There are several maintenance steps here in general that will take several days of work, probably. Might be some new features in Docusaurus 3 that we should migrate to as well. I haven't read the release notes. It's been discussed that we want more C#-based examples, partially because devs get the impression that XAML is required. I'll leave the F# decision to the maintainers. I assumed most F# devs using Avalonia were using FuncUI which has its own documentation. |
Beta Was this translation helpful? Give feedback.
-
I noticed the tabs options when I was working on updating the Visual Studio Getting Started page. Thank you. After rounds of exploration and trial and errors I have the following understandings of Avalonia:
Mapping between C# and the axaml and what FuncUI is doing can make doing things in F# is quite challenging, at least for someone not truly knowledgeable in any of it (or app development). Having the examples in F# would have sped up what I understand above by a lot. So my question is if I started putting tabs in that showed the C# code in F#, or other F# information, will those PRs get accepted? I just do not want to do the effort if that is not desired by the Avalonia team. I realize F#ers are few, but that is partly because it is so hard to find reference and examples. Of all the research I have done over the last 15 years, Avalonia is the most exciting and closest to the Golden Ticket I have encountered. |
Beta Was this translation helpful? Give feedback.
-
IMO, this is a no, but I can't make that decision. The following points are my reasoning:
I would support a major docs section for non-XAML that explains how to use Avalonia without XAML in some targeted use cases. We need this for C# as well because many beginners believe Avalonia must use XAML. Some F# section for getting started / test drive would be good, too. Whereas the truth is that XAML is broadly preferred by developers because it makes creating UI hierarchies simpler and separates concerns, even if it's verbose. @maxkatz6 Thoughts on accepting F# samples in docs? |
Beta Was this translation helpful? Give feedback.
-
I am going through the docs like getting started and some of the control tutorials and finding them to be confusing sometimes. I should be considered a newbie in most aspects. I have managed to get docusaurus running local and I am going to submit some updates. The version says "Version: 11.0.0" which we are like 11.0.9. Should I assume to change docs in place for 11.0.0 or should the updates be made to the current dot version?
Second, I am trying to learn Avalonia, so I am doing things through C# first (which I know even less of than F#). If I apply these concepts into the F# templates, I am considering modifying the docs to show the F# code. In a similar way the MS docs on their site where the code samples default to C#, but have tabs for F# (sometimes, should be more) but also have a dropdown in the same way the docs version dropdown works. So if i select F#, then the code sample default to F# if they are there. Not sure how this works with docusaurus yet, but I want the node of OK if that seems like something that would get accepted, specifically:
Adding option to see code examples in F# (probably through tabs like the VS,Rider,CLI tabs work)?
Beta Was this translation helpful? Give feedback.
All reactions