diff options
author | Samy Pessé <samypesse@gmail.com> | 2015-01-11 15:14:50 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2015-01-11 15:14:50 +0100 |
commit | dcbf115f25d53a59f6939339b30c1141029c82c0 (patch) | |
tree | 624646dc67879dbd1ea5b1d27c5f29aaed1a298b | |
parent | 668f2f9e2cab061d0dc4d73c321f55de27bbbbd3 (diff) | |
download | gitbook-dcbf115f25d53a59f6939339b30c1141029c82c0.zip gitbook-dcbf115f25d53a59f6939339b30c1141029c82c0.tar.gz gitbook-dcbf115f25d53a59f6939339b30c1141029c82c0.tar.bz2 |
Adapt platform command to gitbook.com
-rw-r--r-- | README.md | 6 | ||||
-rwxr-xr-x | bin/gitbook.js | 2 | ||||
-rw-r--r-- | bin/platform.js | 4 | ||||
-rw-r--r-- | test/fixtures/PAGE.md | 2 | ||||
-rw-r--r-- | test/fixtures/QUIZ_PAGE.md | 2 | ||||
-rw-r--r-- | theme/templates/book/includes/summary.html | 2 |
6 files changed, 9 insertions, 9 deletions
@@ -4,7 +4,7 @@ GitBook [](https://travis-ci.org/GitbookIO/gitbook) [](http://badge.fury.io/js/gitbook) -GitBook is a command line tool (and Node.js library) for building beautiful books using GitHub/Git and Markdown. Here is an example: [Learn Javascript](https://www.gitbook.io/book/GitBookIO/javascript). You can publish book easily online using [gitbook.io](https://www.gitbook.io) and an [editor](https://github.com/GitbookIO/editor) is available for Windows, Mac and Linux. You can follow [@GitBookIO](https://twitter.com/GitBookIO) on Twitter. Complete documentation is available at [help.gitbook.io](http://help.gitbook.io/). +GitBook is a command line tool (and Node.js library) for building beautiful books using GitHub/Git and Markdown. Here is an example: [Learn Javascript](https://www.gitbook.com/book/GitBookIO/javascript). You can publish book easily online using [gitbook.com](https://www.gitbook.com) and an [editor](https://github.com/GitbookIO/editor) is available for Windows, Mac and Linux. You can follow [@GitBookIO](https://twitter.com/GitBookIO) on Twitter. Complete documentation is available at [help.gitbook.io](http://help.gitbook.io/).  @@ -16,7 +16,7 @@ GitBook can be installed from **NPM** using: $ npm install gitbook -g ``` -Create the directories and files for a book from its [SUMMARY.md](https://github.com/GitbookIO/gitbook#book-format) file using +Create the directories and files for a book from its [SUMMARY.md](https://github.com/GitbookIO/gitbook#book-format) file using ``` $ gitbook init ``` @@ -131,7 +131,7 @@ Here are the options that can be stored in this file: } ``` -You can publish your books to our index by visiting [GitBook.io](http://www.gitbook.io) +You can publish your books to our index by visiting [GitBook.com](http://www.gitbook.com) ## Output Formats diff --git a/bin/gitbook.js b/bin/gitbook.js index 80d139f..856d3e3 100755 --- a/bin/gitbook.js +++ b/bin/gitbook.js @@ -139,7 +139,7 @@ prog prog .command('publish [source_dir]') -.description('Publish content to the associated gitbook.io book') +.description('Publish content to the associated gitbook.com book') .action(action(function(dir) { dir = dir || process.cwd(); return platform.publish(dir); diff --git a/bin/platform.js b/bin/platform.js index 6bf0b94..35d581d 100644 --- a/bin/platform.js +++ b/bin/platform.js @@ -12,7 +12,7 @@ var publish = function(folder) { console.log(out.stdout); }, function(err) { if (err.code == 128) { - console.log("No book on gitbook.io is configured with this git repository."); + console.log("No book on gitbook.com is configured with this git repository."); console.log("Run 'gitbook git:remote username/book' to intialize this repository."); } else { console.log(err.message); @@ -27,7 +27,7 @@ var remote = function(folder, bookId) { return process.exit(-1); } - var url = "https://push.gitbook.io/"+bookId+".git"; + var url = "https://git.gitbook.com/"+bookId+".git"; var addRemote = function() { return utils.gitCmd("remote", ["add", "gitbook", url]); } diff --git a/test/fixtures/PAGE.md b/test/fixtures/PAGE.md index 7dcaa40..77a6ce9 100644 --- a/test/fixtures/PAGE.md +++ b/test/fixtures/PAGE.md @@ -27,7 +27,7 @@ assert(c, 3) Some more nice content .... -[Cool stuff](http://gitbook.io) +[Cool stuff](http://gitbook.com) [Link to another Markdown file](./xyz/file.md) diff --git a/test/fixtures/QUIZ_PAGE.md b/test/fixtures/QUIZ_PAGE.md index a076055..21b2a9d 100644 --- a/test/fixtures/QUIZ_PAGE.md +++ b/test/fixtures/QUIZ_PAGE.md @@ -28,7 +28,7 @@ What does Gitbook support? Some more nice content .... -[Cool stuff](http://gitbook.io) +[Cool stuff](http://gitbook.com) [Link to another Markdown file](./xyz/file.md) diff --git a/theme/templates/book/includes/summary.html b/theme/templates/book/includes/summary.html index 8f6e4c8..3fff7fe 100644 --- a/theme/templates/book/includes/summary.html +++ b/theme/templates/book/includes/summary.html @@ -56,7 +56,7 @@ {% if options.links.gitbook !== false %} <li class="divider"></li> <li> - <a href="http://www.gitbook.io/" target="blank" class="gitbook-link">Published using GitBook</a> + <a href="https://www.gitbook.com" target="blank" class="gitbook-link">Published using GitBook</a> </li> {% endif %} </ul> |