-
Notifications
You must be signed in to change notification settings - Fork 9k
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
Render links to external docs #7559
Render links to external docs #7559
Conversation
src/core/components/array-model.jsx
Outdated
} | ||
} | ||
{ | ||
!externalDocsUrl ? null : |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
!externalDocsUrl ? null : | |
externalDocsUrl && |
src/core/components/object-model.jsx
Outdated
@@ -93,6 +96,17 @@ export default class ObjectModel extends Component { | |||
</td> | |||
</tr> | |||
} | |||
{ | |||
!externalDocsUrl ? null : |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
!externalDocsUrl ? null : | |
externalDocsUrl && |
@@ -88,21 +88,17 @@ export default class OperationTag extends React.Component { | |||
</small> | |||
} | |||
|
|||
{tagExternalDocsUrl ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{tagExternalDocsUrl ? | |
{tagExternalDocsUrl && |
target="_blank" | ||
>{tagExternalDocsDescription || "External docs"}</Link> | ||
</small> | ||
</div> : null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
</div> : null | |
</div> |
@@ -53,6 +56,12 @@ export default class Primitive extends Component { | |||
!description ? null : | |||
<Markdown source={ description } /> | |||
} | |||
{ | |||
!externalDocsUrl ? null : |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
!externalDocsUrl ? null : | |
externalDocsUrl && |
@fabsrc Thanks for the PR! First, to complete this PR, please add Cypress E2E tests to validate that |
fbdb6dd
to
4b5fb8f
Compare
4b5fb8f
to
2b2374d
Compare
@tim-lai I updated the PR and added some Cypress E2E tests. Also checked the responsiveness, which seems to be fine. Could you please have another look? |
@fabsrc PR merged! Thanks for the contribution and followup! |
Description
Renders links to external docs in all locations where external docs can be used:
Motivation and Context
Fixes #1545
How Has This Been Tested?
TODO
Screenshots (if appropriate):
Checklist
My PR contains...
src/
is unmodified: changes to documentation, CI, metadata, etc.)package.json
)My changes...
Documentation
Automated tests