Skip to content

Include comments in child declarations in HTML docs - #2981

Merged
hdgarrood merged 1 commit into
masterfrom
include-child-decl-comments
Jul 9, 2017
Merged

Include comments in child declarations in HTML docs#2981
hdgarrood merged 1 commit into
masterfrom
include-child-decl-comments

Conversation

@hdgarrood

Copy link
Copy Markdown
Contributor

That is, if doc-comments are provided in a source file for any of the
following:

  • type class members
  • instance declarations
  • data constructors

they will now be included in the HTML.

Fixes purescript/pursuit#159.

That is, if doc-comments are provided in a source file for any of the
following:

- type class members
- instance declarations
- data constructors

they will now be included in the HTML.

Fixes purescript/pursuit#159.

@paf31 paf31 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you have some example HTML? I'm curious to see what instances look like.

Looks good!

@hdgarrood

Copy link
Copy Markdown
Contributor Author

Oh of course, yes: http://harry.garrood.me/purs-html-docs-example/Data.Either.html

I was previously thinking of making these collapsible (see the Pursuit issue), but since library authors can choose whether to use these or not, I don't think there's too much risk of docs becoming excessively verbose; I think we can and should trust authors to use this appropriately.

@paf31

paf31 commented Jul 9, 2017

Copy link
Copy Markdown
Contributor

Looks really good!

@hdgarrood

Copy link
Copy Markdown
Contributor Author

Thanks :)

@hdgarrood
hdgarrood merged commit ad6166f into master Jul 9, 2017
@hdgarrood
hdgarrood deleted the include-child-decl-comments branch July 9, 2017 20:51
paf31 added a commit that referenced this pull request Jul 10, 2017
paf31 added a commit that referenced this pull request Jul 10, 2017
…2985)

* Revert "Fix child decl ordering (#2984)"

This reverts commit 7fdd39d.

* Revert "Only build master and semver tags in Travis (#2982)"

This reverts commit c41a7a4.

* Revert "Include comments in child declarations in HTML docs (#2981)"

This reverts commit ad6166f.

* Revert "Solve RowToList (#2945)"

This reverts commit 0e2d820.

* Revert "Fix links to type operators in HTML docs (#2979)"

This reverts commit 5fe26f2.

* Revert "Re-evaluate REPL globs during :reload (#2978)"

This reverts commit 50e1c68.

* Revert "[purs ide] Collect data constructors (#2976)"

This reverts commit c965f35.

* Revert "Replace synonyms in instance constraints (#2973)"

This reverts commit ee66e0d.

* Revert "Require single-method instance declarations to be indented (#2965)"

This reverts commit b3e470d.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants