Skip to content

docs: fix inherited docs-private members showing up #22890

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

Conversation

devversion
Copy link
Member

@devversion devversion commented Jun 4, 2021

We recently landed a couple of improvements in the Dgeni pipeline, so
that descriptions of inherited members show up. To achieve this, we
applied a workaround that basically meant we are parsing the API docs'
string content manually to a JSDoc description (this also involved
manually stripping any JSDoc annotations).

This commit replaces the workaround with a solution that allows us
to still run necessary default Dgeni processors on the inherited API
docs, such as the offical jsdoc processors. These solve the problem
of manually extracting the JSDoc description, and also fix more
down-the-line problems where e.g. @docs-private is not respected
for inherited members. It also fixes cases where the JSDoc annotations
are still showing up in the docs.

We recently landed a couple of improvements in the Dgeni pipeline, so
that descriptions of inherited members show up. To achieve this, we
applied a workaround that basically meant we are parsing the API doc's`
string cotntent manually to a JSDoc description (this also involved
manually stripping any JSDoc annotations).

This commit replaces the workaround with a solution that allows us
to still run necessary default Dgeni processors on the inherited API
docs, such as the offical `jsdoc` processors. These solve the problem
of manually extracting the JSDOc description, and also fix more
down-the-line problems where e.g. `@docs-private` is not respected
for inherited members. It also fixes cases where the JSDOc annotations
are still showing up in the docs.
@google-cla google-cla bot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Jun 4, 2021
@devversion devversion requested review from crisbeto and jelbourn June 4, 2021 16:28
@devversion devversion added merge safe target: patch This PR is targeted for the next patch release labels Jun 4, 2021
@devversion devversion marked this pull request as ready for review June 4, 2021 16:31
@devversion devversion requested a review from a team as a code owner June 4, 2021 16:31
@josephperrott josephperrott removed the request for review from a team June 4, 2021 17:10
Copy link
Member

@crisbeto crisbeto left a comment

Choose a reason for hiding this comment

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

LGTM, although I don't have a lot of knowledge about the Dgeni API.

@devversion devversion added the action: merge The PR is ready for merge by the caretaker label Jun 7, 2021
@andrewseguin andrewseguin merged commit 68e5566 into angular:master Jun 7, 2021
andrewseguin pushed a commit that referenced this pull request Jun 7, 2021
We recently landed a couple of improvements in the Dgeni pipeline, so
that descriptions of inherited members show up. To achieve this, we
applied a workaround that basically meant we are parsing the API doc's`
string cotntent manually to a JSDoc description (this also involved
manually stripping any JSDoc annotations).

This commit replaces the workaround with a solution that allows us
to still run necessary default Dgeni processors on the inherited API
docs, such as the offical `jsdoc` processors. These solve the problem
of manually extracting the JSDOc description, and also fix more
down-the-line problems where e.g. `@docs-private` is not respected
for inherited members. It also fixes cases where the JSDOc annotations
are still showing up in the docs.

(cherry picked from commit 68e5566)
@devversion
Copy link
Member Author

For reference: Here is the docs content diff

angular/material2-docs-content@b260ae6

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Jul 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants