summaryrefslogtreecommitdiffstats
path: root/lib/page/index.js
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2016-02-18 13:58:10 +0100
committerSamy Pessé <samypesse@gmail.com>2016-02-18 13:58:10 +0100
commit6e83240233e6168aa6567eb6fcac62508fe7fd0e (patch)
tree24437d0fdd8ba6c5b8dc6e589058db5800659e50 /lib/page/index.js
parent202c235c665ff2dc007a013b45bff787ee82176b (diff)
downloadgitbook-6e83240233e6168aa6567eb6fcac62508fe7fd0e.zip
gitbook-6e83240233e6168aa6567eb6fcac62508fe7fd0e.tar.gz
gitbook-6e83240233e6168aa6567eb6fcac62508fe7fd0e.tar.bz2
Glossary should be output as a normal page
Diffstat (limited to 'lib/page/index.js')
-rw-r--r--lib/page/index.js9
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/page/index.js b/lib/page/index.js
index 51ed2aa..bdf3c81 100644
--- a/lib/page/index.js
+++ b/lib/page/index.js
@@ -166,14 +166,7 @@ Page.prototype.toHTML = function(output) {
},
// Convert glossary entries to annotations
- annotations: _.map(that.book.glossary.entries, function(entry) {
- return {
- id: entry.id,
- name: entry.name,
- description: entry.description,
- href: '/GLOSSARY.html'
- };
- })
+ annotations: that.book.glosary.annotations()
};
var pipeline = new HTMLPipeline(that.content, pipelineOpts);