arquillian/arquillian.github.com — pull request #18 by aslakknutsen (2011-10-26 13:01:46+00:00)
Title: Add Awestruct::Extension::GitHelper helper

One 'tiny' issue with getting them from the git history:

- ANY change to the file counts as author, so Dan and Aslak are authors/co authors of 'all'
- ONLY people that has been a part of the commit are listed, e.g. Karel is missing from the Drone guide since Dan 'copied' it in from jboss.org

It's possible where we have guides that are copied in, to manually add to the page.authors Array i guess..

_layouts
guide.html.haml:
---
# meta
---
- page.authors = page_authors(page)

guides/
my_guide.textile:
---
# meta
---
#{page.authors = ['Karel Piwko'] + page.authors}

(this does not work with site.interpolate: false) ??

Methods
-------

page_authors(page)

Returns a Array of unique author.name's based on the Git commit history located at page.site.dir for the given page.
The Array is ordered by number of commits done by the authors.