ghio

Convert urls of github.io pages into urls of repositories and vice versa


Keywords
ghio, github pages, gh-pages, github.io, conversion
License
MIT
Install
bower install ghio

Documentation

ghio

Build Status

Convert urls of github.io pages into urls of repositories and vice versa

Usage

    <!-- include script in your html -->
    <script src="ghio.js"></script>
    <!-- maybe use this tag for testing: <script src="https://raw.github.com/rogeriopradoj/ghio.js/master/ghio.js"></script> -->

    <script>
        // main github.io to repo
        var io            = 'http://adobe.github.io/';
        var repo          = Ghio.convert(io);
        console.log("Io: %s, Repo: %s", io, repo); // should print Io: http://adobe.github.io/, Repo: https://github.com/adobe/adobe.github.io in your browser log

    </script>

Package Managers

Testing

It's using QUnit for testing.

Just open test.html in your browser to see the magic taking place.

Changelog

0.2.0 - 2014-03-26

  • Include more Gulp tasks

0.1.0 - 2014-03-26

  • First public version

License

MIT