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

jQuery Dev Summit - Issue 44 #10

Closed
wants to merge 2 commits into from
Closed

Conversation

ronchalant
Copy link

First part of a fix for jquery/2012-dev-summit#44

Adds a helper that pulls git contributors for given files and returns them to a callback in an array such as:
[{"name":"adam j. sontag ","email":"ajpiano@ajpiano.com"},{"name":"Ralph Whitbeck ","email":"ralph.whitbeck@gmail.com"}]

The above is pushed to the post JSON object as "post.authors = [...]"

Did not utilize any piped commands, all deduping was done in Javascript to ensure the most cross-platform compatibility.

What remains is to determine how these authors would be included in the content markup, if at all.

@@ -116,27 +156,32 @@ grunt.registerMultiTask( "build-pages", "Process html and markdown files as page
grunt.verbose.write( "Processing " + fileName + "..." );
delete post.content;

// Convert markdown to HTML
Copy link
Member

Choose a reason for hiding this comment

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

What's with these changes (and those below)?

Copy link
Author

Choose a reason for hiding this comment

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

The "retrieve-git-authors" is async with a callback (it has to be due to using grunt's spawn function), so I moved some fo the code into the callback. It looks odd on the diff, but no code was actually moved just moved into the callback handler for the helper.

@ronchalant
Copy link
Author

I don't think it will be used outside of this code. I changed it to be a function within the build.js file.

@jzaefferer
Copy link
Member

@ajpiano will you test this?

@RedWolves
Copy link
Member

Dev summit issue 44 is now at jquery/learn.jquery.com#174

@scottgonzalez
Copy link
Member

This belongs in learn.jquery.com's grunt file. This functionality isn't used anywhere else.

@ajpiano
Copy link
Member

ajpiano commented Oct 20, 2012

@ronchalant any chance you can adapt this into a PR on learn.jquery.com? Would be greatly appreciated

@ronchalant
Copy link
Author

Sorry I've been laid up and now playing catchup at work - I can try to get to this in the next week or so. Not sure how pressing it is, let me know.

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.

None yet

5 participants