Skip to content

Dottydoc doesn't support multiple @usecase sections #4752

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

Closed
Duhemm opened this issue Jul 2, 2018 · 0 comments
Closed

Dottydoc doesn't support multiple @usecase sections #4752

Duhemm opened this issue Jul 2, 2018 · 0 comments

Comments

@Duhemm
Copy link
Contributor

Duhemm commented Jul 2, 2018

scaladoc allows several @usecase sections to exist in a doc comment:

  /**
   * @usecase def foo: String
   * @usecase def foo: Int
   */
  def foo(x: Int): Unit

It renders them as several different definitions in the docsite:

screen shot 2018-07-02 at 11 25 48

Currently, dottydoc will only show the first @usecase.

Dottydoc should do the same thing.

Duhemm added a commit to dotty-staging/dotty that referenced this issue Jul 2, 2018
In the documentation, it is possible to have several `@usecase`
sections, which means that each of these section should be displayed as
a separate member in the documentation. So far, Dottydoc was only
considering the first `@usecase` section and was disregarding the
others.

This commit fixes that, and generates a new member for each of the
usecases.

Fixes scala#4752
Duhemm added a commit to dotty-staging/dotty that referenced this issue Jul 12, 2018
In the documentation, it is possible to have several `@usecase`
sections, which means that each of these section should be displayed as
a separate member in the documentation. So far, Dottydoc was only
considering the first `@usecase` section and was disregarding the
others.

This commit fixes that, and generates a new member for each of the
usecases.

Fixes scala#4752
Duhemm added a commit to dotty-staging/dotty that referenced this issue Jul 13, 2018
In the documentation, it is possible to have several `@usecase`
sections, which means that each of these section should be displayed as
a separate member in the documentation. So far, Dottydoc was only
considering the first `@usecase` section and was disregarding the
others.

This commit fixes that, and generates a new member for each of the
usecases.

Fixes scala#4752
Duhemm added a commit to dotty-staging/dotty that referenced this issue Jul 13, 2018
In the documentation, it is possible to have several `@usecase`
sections, which means that each of these section should be displayed as
a separate member in the documentation. So far, Dottydoc was only
considering the first `@usecase` section and was disregarding the
others.

This commit fixes that, and generates a new member for each of the
usecases.

Fixes scala#4752
Duhemm added a commit to dotty-staging/dotty that referenced this issue Aug 2, 2018
In the documentation, it is possible to have several `@usecase`
sections, which means that each of these section should be displayed as
a separate member in the documentation. So far, Dottydoc was only
considering the first `@usecase` section and was disregarding the
others.

This commit fixes that, and generates a new member for each of the
usecases.

Fixes scala#4752
@Duhemm Duhemm closed this as completed in 10de931 Sep 4, 2018
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

1 participant