codeisland / codeisland.github.io

New home for Code Island projects
2 stars 4 forks source link

Add Github contributors to Members page #17

Closed goldenmeanie closed 9 years ago

goldenmeanie commented 9 years ago

We'd love to list the GitHub organization member on the member page with the leadership team. Is there a widget that does this?

theryankelly commented 9 years ago

There is the civic tech issues finder http://www.codeforamerica.org/geeks/civicissues/embed. Which we need to make sure we are added to but I don't think this answers your question.

joealba commented 9 years ago

Here's a rough start:

http://jsfiddle.net/joealba/z78f7ba6/

joealba commented 9 years ago

The public members list works, but the "teams" APIs require authentication. To use that list, we'd have to write code to authenticate, hit the API and build a static page based on the result as part of the Jekyll build. If no one else finds an easier embed solution, I will look at writing that code.

goldenmeanie commented 9 years ago

Does any of this get easier if people set their organization membership privacy to public?

On Thu, Dec 4, 2014 at 1:12 PM, Joe Alba notifications@github.com wrote:

The public members list works, but the "teams" APIs require authentication. To use that list, we'd have to write code to authenticate, hit the API and build a static page based on the result as part of the Jekyll build. If no one else finds an easier embed solution, I will look at writing that code.

— Reply to this email directly or view it on GitHub https://github.com/codeisland/codeisland.github.io/issues/17#issuecomment-65675998 .

joealba commented 9 years ago

Well isn't that interesting! I did not know that membership was private by default!

I updated my privacy setting for the codeisland group, and it now appears on my jsfiddle test.

goldenmeanie commented 9 years ago

That looks like it will work @joealba! Is it possible to include the GitHub avatars for members?

joealba commented 9 years ago

Yup. http://jsfiddle.net/joealba/z78f7ba6/1/

goldenmeanie commented 9 years ago

Nice!

joealba commented 9 years ago

Switched from JS to a custom Jekyll plugin that will update the _includes/github_org_members.html file anytime you run jekyll build.

joealba commented 9 years ago

I pushed my change to the github_members branch. @goldenmeanie, take a look and style it up!

You can modify the _plugins/github_org_members.liquid template file however you want. Then run jekyll build to update the include file.

goldenmeanie commented 9 years ago

I merged this to master and pushed production and the site stopped working.

I've rolled master back and the site is working again.

I haven't tried it again to rule out coincidence. Any chance the plugin blows up the gh-pages scripts?

joealba commented 9 years ago

Yup! I was hoping that by setting safe false to this plugin that Github pages would simply ignore it. Guess not.

I'll look for another way to structure it to make it work without breaking the standard Github pages build.

goldenmeanie commented 9 years ago

Cool man. I like this approach a lot more than the JS version! The liquid template is super clear and looks easy to modify down the road. Thanks for all the work on this!

Cheers, Alex

On Tue, Dec 9, 2014 at 1:22 PM, Joe Alba notifications@github.com wrote:

Yup! I was hoping that by setting safe false to this plugin that Github pages would simply ignore it. Guess not.

I'll look for another way to structure it to make it work without breaking the standard Github pages build.

— Reply to this email directly or view it on GitHub https://github.com/codeisland/codeisland.github.io/issues/17#issuecomment-66330732 .

goldenmeanie commented 9 years ago

Booo.

https://help.github.com/articles/using-jekyll-plugins-with-github-pages/

goldenmeanie commented 9 years ago

This might be an argument in favor hosting this on our Digital Ocean(?) brigade account instead of gh-pages. We'd need some deploy magic, or a short list of folks with ssh keys. So, there's that.

joealba commented 9 years ago

It can be worked around.

And if we were to go away from Github Pages for hosting, the best choice for a statically-generated site is S3. Our usage would be so low it would probably wind up being free.

joealba commented 9 years ago

I moved the Github members plugin to an _offline_plugins directory for now so we can continue to be hosted by Github without errors.

You can regenerate the Github members include file via: bundle exec ruby _offline_plugins/github_org_members.rb

joealba commented 9 years ago

@goldenmeanie I pushed to the github_members_offline branch. Check it out and see if that works for you. Once you've got it styled up, merge it in whenever you want.

goldenmeanie commented 9 years ago

I styled the output and merged to production. Thanks @joealba this is great!

*Note: this doesn't update automatically on the site. It's a script you run locally and commit/push the results to the live site.

I'm going to close this and we can open a new issue if we need to pursue live updates.

jamesrhaley commented 9 years ago

very cool! looks great.

On Sat, Dec 20, 2014 at 12:03 PM, Alex Taylor notifications@github.com wrote:

I styled the output and merged to production. Thanks @joealba https://github.com/joealba this is great!

*Note: this doesn't update automatically on the site. It's a script you run locally and commit/push the results to the live site.

I'm going to close this and we can open a new issue if we need to pursue live updates.

— Reply to this email directly or view it on GitHub https://github.com/codeisland/codeisland.github.io/issues/17#issuecomment-67744220 .

theryankelly commented 9 years ago

Agreed, Looks great. Nice work guys!