diff options
author | Samy Pessé <samypesse@gmail.com> | 2016-02-18 15:23:01 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2016-02-18 15:23:01 +0100 |
commit | 1a3ee784592c8cfbf1a6bc98dcaf3e8a5afef7fb (patch) | |
tree | 3112f0f28a98fcf7efad756ac61f8eb767f6b3ff | |
parent | b99c499d2ea67268760a7c8265a0669b016a56f1 (diff) | |
download | gitbook-1a3ee784592c8cfbf1a6bc98dcaf3e8a5afef7fb.zip gitbook-1a3ee784592c8cfbf1a6bc98dcaf3e8a5afef7fb.tar.gz gitbook-1a3ee784592c8cfbf1a6bc98dcaf3e8a5afef7fb.tar.bz2 |
Accept external url in summary
-rw-r--r-- | lib/backbone/summary.js | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/backbone/summary.js b/lib/backbone/summary.js index 405c192..0d1d0d7 100644 --- a/lib/backbone/summary.js +++ b/lib/backbone/summary.js @@ -22,9 +22,6 @@ function TOCArticle(def, parent) { // ex: '1.0.0' this.level = def.level; - if (def.path && location.isExternal(def.path)) { - throw error.ParsingError(new Error('SUMMARY can only contains relative locations')); - } if (!def.title) { throw error.ParsingError(new Error('SUMMARY entries should have an non-empty title')); } |