-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
docs: Use prerendered sponsors for README #122
Conversation
tools/update-readme.js
Outdated
newReadme = newReadme.replace( | ||
/<!--techsponsorsstart-->[\w\W]*?<!--techsponsorsend-->/u, | ||
formatTechSponsors(techSponsors), | ||
`<!--sponsorsstart-->\n\n${allSponsors}\n<!--sponsorsend-->`, |
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.
why do we have two new line in this repo alone? whilst we dont have it in other eslint/js
and eslint/eslint
repo?
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.
Without the second one, in this repo Prettier would be reporting a formatting error there.
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.
I also added another new line in the fetched content, for the same reason (eslint/eslint.org#648).
tools/update-readme.js
Outdated
</p> | ||
<!--techsponsorsend-->`; | ||
async function fetchSponsorsMarkdown() { | ||
return got(SPONSORS_URL).text(); | ||
} | ||
|
||
//----------------------------------------------------------------------------- | ||
// Main | ||
//----------------------------------------------------------------------------- | ||
|
||
(async () => { |
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.
(async () => { |
remove IIFE fn
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.
Removed in 0911a8f now.
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.
LGTM
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.
LGTM. Thanks.
Prerequisites checklist
What is the purpose of this pull request?
Simplifies script that adds sponsors to READMEs.
What changes did you make? (Give an overview)
Updated
tools/update-readme.js
to use prerendered sponsors markdown from the eslint.org repo.Related Issues
eslint/eslint.org#619
Is there anything you'd like reviewers to focus on?