Skip to content

Fix issues with docs extend links for various components #1372

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 3 commits into from
Jul 18, 2021

Conversation

ethanshar
Copy link
Collaborator

Description

Fix docs issue with external extend link to some component not working (for example: in Carousel's link to ScrollView)

Changelog

Fix docs links

Copy link
Contributor

@mendyEdri mendyEdri left a comment

Choose a reason for hiding this comment

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

comment out code, you decide :)

@@ -48,19 +48,18 @@ export default class ComponentTemplate extends Component {
return _.map(extendedComponents, (component, index) => {
const isLast = index === _.size(extendedComponents) - 1;
const text = `${component}${!isLast ? ', ' : ''}`;
const extendedComponent = _.find(allComponents, c => c.node.displayName.trim() === component.trim());
const path = !extendedComponent && componentInfo.extendsLink ? componentInfo.extendsLink : `/docs/${component}`;
// const extendedComponent = _.find(allComponents, c => c.node.displayName.trim() === component.trim());
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we still need it? :)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Removed 👍

@ethanshar ethanshar enabled auto-merge (squash) July 18, 2021 08:55
@ethanshar ethanshar merged commit f76db46 into master Jul 18, 2021
@ethanshar ethanshar deleted the docs/fixExtendLinks branch April 18, 2022 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants