Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create great docs #2

Closed
forki opened this issue Dec 9, 2013 · 12 comments
Closed

Create great docs #2

forki opened this issue Dec 9, 2013 · 12 comments

Comments

@forki
Copy link
Member

forki commented Dec 9, 2013

Docs can be found at http://forki.github.io/FSharpx.Collections/

needed for #1

@forki
Copy link
Member Author

forki commented Dec 9, 2013

@jackfoxy
Copy link
Contributor

jackfoxy commented Dec 9, 2013

I will review. Give me some time I have a very busy day today. For the "final" merged library I want to suggest renaming "Heap" to "OrderedQueue" and keep aliases for Heap and PriorityQueue. I also have in mind a minor adjustment to the empty binding. I think too many potential users are not familiar with Heap or PriorityQueue, and this is a more descriptive name. (This is a pairing heap implementation, btw, for those who don't know.)

forki added a commit that referenced this issue Dec 9, 2013
forki added a commit that referenced this issue Dec 9, 2013
forki added a commit that referenced this issue Dec 9, 2013
forki added a commit that referenced this issue Dec 9, 2013
@forki forki mentioned this issue Dec 10, 2013
3 tasks
forki added a commit that referenced this issue Dec 10, 2013
forki added a commit that referenced this issue Dec 10, 2013
forki added a commit that referenced this issue Dec 10, 2013
pblasucci added a commit that referenced this issue Jan 24, 2014
Changing magic constant to support VS2012
@jackfoxy
Copy link
Contributor

It took me a long time, but I have some minor doc changes that I will submit with the next substantive push for this project.

@jackfoxy
Copy link
Contributor

I want to improve something in the xml doc for the Heap collection, and found the project does not build to an xml doc file. Looking in build.fsx I also saw nothing that looks xml doc related.@forki how are the xml docs getting built?

@forki
Copy link
Member Author

forki commented Mar 30, 2014

They are built with FSharp.Formatting during release build.

@jackfoxy
Copy link
Contributor

The Heap.empty function needs additional pop-up intellisense docs because it has a parameter, but this seems to have no affect:

///<summary>O(1). Returns a empty heap.</summary>
///<param name="isDescending">true: heap will sort descending.</param>
[<GeneralizableValue>]
val empty<'T when 'T : comparison> : bool -> Heap<'T>

Correctly builds the xmldoc

<member name="M:FSharpx.Collections.HeapModule.empty``1(System.Boolean)">
<summary>O(1). Returns a empty heap.</summary>
<param name="isDescending">true: heap will order descending.</param>
</member>

but the pop-up intellisense (testing in HeapTests.fs) only shows the summary. Is this because the project target framework is .NET 3.5? Is there any reason not to advance this project to 4.5, or at least 4.0?

@forki
Copy link
Member Author

forki commented Mar 31, 2014

This stuff is used in 3.5 projects. Please keep it compatible

@jackfoxy
Copy link
Contributor

Is there something I should do to get param intellisense to work in VS?

Empty and ofSeq are the only way to construct this collection, and the parameter is not intuitive.

The alternative I have thoughtof is to drop the parameter, make empty and ofSeq instantiate ascending order and add 2 new module functions, emptyDescending and ofSeqDescending. Of course that would be a breaking change and also undesireable.

@forki
Copy link
Member Author

forki commented Mar 31, 2014

strange. Maybe we should use markdown XML comments like in FAKE.

@jackfoxy
Copy link
Contributor

I temporarily turned on XML generation in the FSharpx.Collections project in order to observe the results in the FSharpx.Collections.Tests project. I think this methodology is sound for this test.

I have no experience with Markdown XML comments. Another alternative is to put the parameter information inside the summary part of the xml doc. This at least gets the message to the user.

@forki
Copy link
Member Author

forki commented Mar 31, 2014

"parameter information inside the summary part of the xml"

That's basically what we do in MD style. We just omit the xml tags and everything goes into summary.

https://github.com/fsharp/FAKE/blob/develop/src/app/FakeLib/UnitTest/XUnitHelper.fs#L105 gets rendered to http://fsharp.github.io/FAKE/apidocs/fake-xunithelper.html

@jackfoxy
Copy link
Contributor

Pretty sure this issue is obsolete.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants