Comments (10)
If it's not possible (which is ok) then FSharp.Formatting should propose a way to fill the gap with the docs on the type itself.
from fsharp.formatting.
The F# compiler does not support commenting the default constructor. Handling this in F# Formatting is a great idea. Do you have any preference on how to write this? Perhaps something like:
/// Type comment
///
/// [constructor]
/// Constructor comment
///
/// ## Parameters
/// - `foo` means nothing
type Bar(foo:int) = (..)
from fsharp.formatting.
No please don't add such magic to it. [omit] should be enough magic.
Have to think about it. We should defer this.
from fsharp.formatting.
That's why I'm looking for better ideas :-) better ideas on [omit]
are also welcome...
from fsharp.formatting.
There is another "issue".
I like to have a detailed information about a module like this:
but I don't want to see all details in the module overview:
I assume this can also be done via magic, but...
/cc @Slesa
from fsharp.formatting.
I wrote that in the comments, just to have the information there. But it'd be better a part of the tutorial.
from fsharp.formatting.
Yep maybe, but there are a couple of other helpers where I have the same "problem".
from fsharp.formatting.
Well, another "magic" is that for the overview, it only picks all content until the first heading. So:
/// Summary
///
/// ## Details
/// More info
module Foo = (...)
... should do the trick. Again, I did this just while I was experimenting with the options. Better suggestions are welcome :-)
The problem is that we generally have to put everything in ///
comments - perhaps cross-reference to some other file might work... but that does not feel any simpler.
from fsharp.formatting.
works like a charm.
from fsharp.formatting.
Closing this old issue (spring cleaning)
from fsharp.formatting.
Related Issues (20)
- Use `Microsoft.Build.Locator` and stop bundling MSBuild assemblies in the CLI tool. HOT 2
- Support generating documentation from specific assemblies in the CLI tool. HOT 2
- `--projects` does not work with relative paths. HOT 1
- String Links 404 HOT 15
- Async function takes longer than usual HOT 5
- Consider targetting .NET 6 as well HOT 8
- Better "Tests" detection HOT 10
- _menu-item_template _menu_template oddities HOT 2
- Guidance on literate programming HOT 9
- Missing `fsdocs-page-source` in ApiDocs generation HOT 2
- Using polyglot notebooks (dotnet interactive) as input HOT 13
- fsdocs does not generate correct code cell metadata for .ipynb
- Cannot use the evaluator from .net7 scripts
- Use fsdocs command line tool to convert single files
- Get CommonMark 0.30 tests to pass for "Tabs" section
- Get CommonMark 0.30 tests to pass for "Fenced code blocks" section
- Dockerfile fails to build with "failed to solve: process /bin/bash ..." HOT 2
- discussion: multi target F# libraries (IL, WebSharper, Fable, etc.)
- discussion: offering back links form API pages to the other documentation pages?
- Need to update repo's nuget API key HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fsharp.formatting.