-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Rebuild fetch files #2072
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
Rebuild fetch files #2072
Conversation
Did we disabled builds on PRS? 🤔 |
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.
Great work @jeremenichelli
tt, code { font-size: 90%; color: inherit } | ||
} | ||
|
||
h1:first-child { |
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.
What is the reason of this change?
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.
This is because, when a README has an h2 heading as the first child, if we remove the margin it gets collapsed with the page title and it looks bad.
@@ -0,0 +1,11 @@ | |||
module.exports = function yamlHeadmatter(fields) { |
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.
What is this doing?
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.
This builds the yaml matter for the fetched README files, I didn't add this I just moved it to an specific file so the fetchPackagedFiles
script looks cleaner.
Squash and merge next time please |
This adds all fetch files into the new
rebuild
flow.DirectoryTreePlugin
detects the files and removes them from computed route name..sh
one as entry point since moving the API to JavaScript is a little unnecessary, I gave it a try and it's just more spaghetti code.promisify
, all fetch flows are now Promise based, no more callback which resulted on tons of lines removed and more readable code.yarn.lock
file to match the rest of the projects in the organizationutils
folder for better file organization.