rogeriopradoj / ghio.js
将github.io页面的url转换为仓库url,反之亦然
0.2.0
2014-03-26 14:12 UTC
Requires
This package is not auto-updated.
Last update: 2024-09-14 13:50:45 UTC
README
将github.io页面的url转换为仓库url,反之亦然
用法
<!-- 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>
包管理器
测试
它使用 QUnit 进行测试。
只需在浏览器中打开 test.html
,即可看到发生的魔法。
变更日志
0.2.0 - 2014-03-26
- 包括更多Gulp任务
0.1.0 - 2014-03-26
- 第一个公开版本
许可证
MIT