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

Add grouping to scaladoc for arity methods #2080

Merged
merged 1 commit into from
Dec 19, 2017

Conversation

ceedubs
Copy link
Contributor

@ceedubs ceedubs commented Dec 7, 2017

This makes it so when you look at the Applicative scaladoc you don't
have a bunch of ap3, ap4, etc noise mixed in with the more
meaningful methods. Instead, the generated higher-arity methods show up
in separate scaladoc groups below.

To see the changes you can pull this branch, run sbt unidoc (you may
need to clean first), and open
cats/docs/target/scala-2.12/unidoc/cats/Applicative.html in your
browser.

@ceedubs
Copy link
Contributor Author

ceedubs commented Dec 7, 2017

Oops I spotted a typo. Change incoming.

This makes it so when you look at the `Applicative` scaladoc you don't
have a bunch of `ap3`, `ap4`, etc noise mixed in with the more
meaningful methods. Instead, the generated higher-arity methods show up
in separate scaladoc groups below.

To see the changes you can pull this branch, run `sbt unidoc` (you may
need to clean first), and open
`cats/docs/target/scala-2.12/unidoc/cats/Applicative.html` in your
browser.
@ceedubs
Copy link
Contributor Author

ceedubs commented Dec 7, 2017

Resolves #1113

@codecov-io
Copy link

codecov-io commented Dec 7, 2017

Codecov Report

Merging #2080 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2080   +/-   ##
=======================================
  Coverage   94.66%   94.66%           
=======================================
  Files         318      318           
  Lines        5383     5383           
  Branches      207      207           
=======================================
  Hits         5096     5096           
  Misses        287      287

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bb64ef9...f6592e0. Read the comment docs.

Copy link
Contributor

@kailuowang kailuowang left a comment

Choose a reason for hiding this comment

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

Noice!

@ceedubs
Copy link
Contributor Author

ceedubs commented Dec 18, 2017

It seems that only @kailuowang shares my enthusiasm for this change :P

Asking people to pull my branch and generate the scaladoc to check out this change probably had a fairly significant barrier. For anyone who is interested, here are before/after images for part of the scaladocs.

Before this PR:
screen shot 2017-12-18 at 12 03 40 pm

After this PR:
screen shot 2017-12-18 at 12 09 14 pm

Higher-arity methods are grouped below the main methods:
screen shot 2017-12-18 at 12 13 13 pm

@ceedubs ceedubs requested a review from LukaJCB December 18, 2017 20:15
@ceedubs
Copy link
Contributor Author

ceedubs commented Dec 18, 2017

@travisbrown or @mpilquist do either of you want to take a look? Circe and Scodec are two of very few projects that I can think of that use Scaladoc groups.

Copy link
Member

@LukaJCB LukaJCB left a comment

Choose a reason for hiding this comment

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

Looks great!

@ceedubs ceedubs merged commit 5051b36 into typelevel:master Dec 19, 2017
@ceedubs ceedubs deleted the scaladoc-groups branch December 19, 2017 14:47
@kailuowang kailuowang added this to the 1.0 milestone Dec 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants