浏览代码

Refactoring my URLs

Swaroop C H 9 年之前
父节点
当前提交
6acea17f2b
共有 5 个文件被更改,包括 8 次插入6 次删除
  1. 2 2
      about.md
  2. 3 1
      book.json
  3. 1 1
      feedback.md
  4. 1 1
      revision_history.md
  5. 1 1
      what_next.md

+ 2 - 2
about.md

@@ -18,7 +18,7 @@ In the sixth draft, I decided to use Quanta+ to do all the editing. The standard
 
 For the seventh draft, I was using [MediaWiki](http://www.mediawiki.org) as the basis of my setup. I used to edit everything online and the readers can directly read/edit/discuss within the wiki website, but I ended up spending more time fighting spam than writing.
 
-For the eight draft, I used [Vim](http://www.swaroopch.com/notes/vim), [Pandoc](http://johnmacfarlane.net/pandoc/README.html), and Mac OS X.
+For the eight draft, I used [Vim]({{ book.vimBookUrl }}), [Pandoc](http://johnmacfarlane.net/pandoc/README.html), and Mac OS X.
 
 For the ninth draft, I switched to [AsciiDoc format](http://asciidoctor.org/docs/what-is-asciidoc/) and used [Emacs 24.3](http://www.masteringemacs.org/articles/2013/03/11/whats-new-emacs-24-3/),
 [tomorrow theme](https://github.com/chriskempson/tomorrow-theme),
@@ -32,4 +32,4 @@ For the tenth draft, I switched to writing in Markdown + [GitBook](https://www.g
 
 ## About the Author
 
-See http://www.swaroopch.com/about/
+See {{ book.authorUrl }}

+ 3 - 1
book.json

@@ -1,10 +1,12 @@
 {
     "variables": {
+        "authorUrl": "http://www.swaroopch.com/about/",
         "buyBookUrl": "http://www.swaroopch.com/buybook/",
+        "contactUrl": "http://www.swaroopch.com/contact/",
         "downloadUrl": "https://www.gitbook.com/book/swaroopch/byte-of-python/details",
         "officialUrl": "http://python.swaroopch.com/",
         "pythonVersion": "3.5.1",
         "sourceUrl": "https://github.com/swaroopch/byte-of-python",
-        "vimBookUrl": "http://www.swaroopch.com/notes/vim/"
+        "vimBookUrl": "http://vim.swaroopch.com/"
     }
 }

+ 1 - 1
feedback.md

@@ -1,3 +1,3 @@
 # Feedback
 
-The book needs the help of its readers such as yourselves to point out any parts of the book which are not good, not comprehensible or are simply wrong. Please [write to the main author](http://www.swaroopch.com/contact/) or the respective [translators](./translations.md#translations) with your comments and suggestions.
+The book needs the help of its readers such as yourselves to point out any parts of the book which are not good, not comprehensible or are simply wrong. Please [write to the main author]({{ book.contactUrl }}) or the respective [translators](./translations.md#translations) with your comments and suggestions.

+ 1 - 1
revision_history.md

@@ -12,7 +12,7 @@ In the true spirit of open source, I have received lots of constructive suggesti
 
 ## Status Of The Book
 
-The book needs the help of its readers such as yourselves to point out any parts of the book which are not good, not comprehensible or are simply wrong. Please [write to the main author](http://www.swaroopch.com/contact/) or the respective [translators](./translations.md#translations) with your comments and suggestions.
+The book needs the help of its readers such as yourselves to point out any parts of the book which are not good, not comprehensible or are simply wrong. Please [write to the main author]({{ book.contactUrl }}) or the respective [translators](./translations.md#translations) with your comments and suggestions.
 
 # Appendix: Revision History {#revision-history}
 

+ 1 - 1
what_next.md

@@ -8,7 +8,7 @@ I would suggest that you tackle this problem:
 
 This is fairly easy if you think about it in terms of all the various stuff that we have come across till now. If you still want directions on how to proceed, then here's a hint [^1].
 
-Once you are able to do this, you can claim to be a Python programmer. Now, immediately [send me an email](http://www.swaroopch.com/contact/) thanking me for this great book ;-). This step is optional but recommended. Also, please consider [buying a printed copy](http://www.swaroopch.com/buybook/) to support the continued development of this book.
+Once you are able to do this, you can claim to be a Python programmer. Now, immediately [send me an email]({{ book.contactUrl }}) thanking me for this great book ;-). This step is optional but recommended. Also, please consider [buying a printed copy]({{ book.buyBookUrl }}) to support the continued development of this book.
 
 If you found that program easy, here's another one: