rstacruz / flatdoc

Build sites fast from Markdown
http://ricostacruz.com/flatdoc
2.68k stars 262 forks source link

Add support for non-default github branches #46

Closed avendael closed 9 years ago

avendael commented 9 years ago

This allows users to specify branch names like so:

Flatdoc.run({ fetcher: Flatdoc.github('coinsph/api', 'README.md', 'gh-pages') })

which means, the default branch can stay as master and gh-pages as an orphan branch. The ref parameter is further described here.