WebSocket server + Search index + indexable content parser

This commit is contained in:
NGPixel
2016-09-05 00:39:59 -04:00
parent 528fab6c87
commit 7945d024ad
30 changed files with 488 additions and 107 deletions

View File

@@ -183,7 +183,7 @@ module.exports = {
* @param {String} entryPath The entry path
* @return {String} Text-only version
*/
fetchTextVersion(entryPath) {
fetchIndexableVersion(entryPath) {
let self = this;
@@ -192,11 +192,13 @@ module.exports = {
parseMeta: true,
parseTree: false,
includeMarkdown: true,
includeParentInfo: false,
includeParentInfo: true,
cache: false
}).then((pageData) => {
return {
entryPath,
meta: pageData.meta,
parent: pageData.parent || {},
text: mark.removeMarkdown(pageData.markdown)
};
});