Skip to content
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

Allow section content to be function #1368

Merged
merged 4 commits into from
Jun 4, 2019

Conversation

eragon512
Copy link
Collaborator

@eragon512 eragon512 commented May 18, 2019

Marking this PR as a WIP, as I am not sure how to refactor to maintain consistency across the project

Refers: #1224

Edit: Removing WIP status, this PR is good to go

@codecov-io
Copy link

codecov-io commented May 18, 2019

Codecov Report

Merging #1368 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted Files Coverage Δ
src/loaders/utils/getComponentFiles.js 100% <ø> (ø) ⬆️
...c/client/rsg-components/Section/SectionRenderer.js 100% <ø> (ø) ⬆️
src/loaders/utils/getSections.js 100% <100%> (ø) ⬆️

content: section.content(),
},
],
contentRelativePath,
Copy link
Member

Choose a reason for hiding this comment

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

You need to test that but looks like filepath prop isn't used anywhere in sections. It's passed here but I don't see where it's used:

Copy link
Member

@sapegin sapegin left a comment

Choose a reason for hiding this comment

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

Is this still work in progress? Looks good to me, except one minor suggestion.

src/loaders/utils/getSections.js Outdated Show resolved Hide resolved
src/loaders/utils/getSections.js Outdated Show resolved Hide resolved
Co-Authored-By: Artem Sapegin <artem@sapegin.ru>
@eragon512 eragon512 changed the title [WIP] Allow section content to be function Allow section content to be function May 21, 2019
Co-Authored-By: Artem Sapegin <artem@sapegin.ru>
@eragon512
Copy link
Collaborator Author

@sapegin this PR is good to go, added your requested changes

@eragon512
Copy link
Collaborator Author

hey @sapegin , any more changes needed to this PR?

@sapegin sapegin merged commit 92ff85d into styleguidist:master Jun 4, 2019
@sapegin
Copy link
Member

sapegin commented Jun 4, 2019

Thanks!

@styleguidist-bot
Copy link
Collaborator

🎉 This PR is included in version 9.1.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

@eragon512 eragon512 mentioned this pull request Jun 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants