I am looking to integrate offline sails.js documentation into my system.
You can find the official documentation for sails.js maintained at this Sails.js Documentation.
According to their documentation, they use doc-templater for building the documentation. I attempted to run the code below in the node REPL.
require('doc-templater')().build({
remote: '<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="d5b2bca195b2bca1bda0b7fbb6bab8">[email protected]</a>:balderdashy/sails.git',
remoteSubPath: '',
cachePath: '/code/sandbox/doctemplatertest/foo/bar/cache/',
htmlDirPath: '/code/sandbox/doctemplatertest/foo/bar/html',
jsMenuPath: '/code/sandbox/doctemplatertest/foo/bar.jsmenu'
}, function (e,r) {
if (e) {console.log('ERROR:\n',require('util').inspect(e, false, null));}
else console.log('RESULT:\n',require('util').inspect(r, false, null));
});`
However, the code is not functioning as expected and the result I'm receiving is:
RESULT:
[]
undefined
If anyone could provide guidance on how to make it work correctly, that would be greatly appreciated.