Skip to content
This repository was archived by the owner on Apr 16, 2022. It is now read-only.
/ repo2site Public archive

Uses AJAX to build an HTML site from a git repo's MarkDown files

License

Notifications You must be signed in to change notification settings

haliphax/repo2site

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

repo2site

Uses AJAX to build an HTML site from a git repo's MarkDown files

Usage

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.

Example

The x84-extras site uses repo2site to generate its pages.

Credits

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).

About

Uses AJAX to build an HTML site from a git repo's MarkDown files

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published