-
Notifications
You must be signed in to change notification settings - Fork 146
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
feat: add wrapperTemplate
option
#348
Conversation
Posted the PR to look for any feedback while i fill in the rest of the checklist! |
Where are the docs located? 🤔 |
@jdalrymple docs are in https://github.com/all-contributors/all-contributors. |
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.
@jdalrymple Thanks for this contribution. Please provide a working example for this one so we can compare. Also, I'm unsure about using other parent tags besides <table>
. We also need to check the browser compatiblity.
Can do! The primary reason for the option to change the wrapper tag is because of the styling limitations within markdown linked to the table tag. For example in that issue, the desire to have a minimalist list of contributors such as: Can only be accomplished with either styling (which isnt supported in github markdown) or changing the tag used to wrap the content. I was able to accomplish this example with p tag instead of the table tag, however knowing that things should not be hardcoded, i figured using a configurable option would be the way to go. Ill post up a sample repo ASAP! |
|
Is there anything else that i need to address for this to be merged? |
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.
Thank you for the pull request! Sorry for the delay!
wrapperTemplate
option
@all-contributors add @jdalrymple for code and test |
I've put up a pull request to add @jdalrymple! 🎉 |
🎉 This PR is included in version 6.25.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
What: Adding support for a wrapper template that allows for a minimalist version of the contributors log. See original issue
Why: Modified the wrapping template from the defaulted 'table' to what ever the user supplies in their configuration
How: A simple if during the generation of the list wrapping. For a working sample, check this repo. After running the install, you may need to run
yarn build
from within the node_modules/all-contributors-cli directory to have access to the cli commands.Checklist: