Uses AJAX to build an HTML site from a git repo's MarkDown files
Usage is seen in the index.html
file. Replace the <body>
tag's onload
attribute so that it calls repo2site
using your username and repo name.
You may also specify the branch name (default: master
) and the name of the
initial file to load (default: README.md
).
Update: You can now also provide the URL stem for the files to be loaded
via AJAX. You may use the {repo}
and {branch}
tokens in your URL stem, and
they will be automatically replaced with the appropriate variables. The current
default is GitHub, but it could be easily adapated for other hosting services.
The x84-extras site uses repo2site to generate its pages.
I'm using markdown-js and a simple, cross-browser, vanilla JS AJAX implementation I found on Krasimir Tsonev's blog (which is used in AbsurdJS).