Skip to content

Dottydoc: Keep documentation on package objects #4573

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

Merged
merged 1 commit into from
Jul 9, 2018

Conversation

Duhemm
Copy link
Contributor

@Duhemm Duhemm commented May 23, 2018

The documentation for packages must be set on the package object. When
generating the docsite, dotty doc must then copy the documentation from
the package object node to the package node, so that it is shown in the
index for this package.

In dotty doc, the comments are added to the "doc AST" in the
DocstringPhase. Then, the doc for packages are copied from the
matching package objects in the PackageObjectsPhase.

This means that PackageObjectsPhase must be able to see the changes
done by DocstringPhase, and therefor they cannot be in the same
miniphase.

The documentation for packages must be set on the package object. When
generating the docsite, dotty doc must then copy the documentation from
the package object node to the package node, so that it is shown in the
index for this package.

In dotty doc, the comments are added to the "doc AST" in the
`DocstringPhase`. Then, the doc for packages are copied from the
matching package objects in the `PackageObjectsPhase`.

This means that `PackageObjectsPhase` must be able to see the changes
done by `DocstringPhase`, and therefor they cannot be in the same
miniphase.
@allanrenucci allanrenucci merged commit acd0c6e into scala:master Jul 9, 2018
@allanrenucci allanrenucci deleted the fix/dottydoc-package-doc branch July 9, 2018 15:12
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.

2 participants