wingedfox / dgeni-alive

Live docs on top of dgeni documentation generator
MIT License
26 stars 14 forks source link

Fix/Improve Live Examples #29

Closed nhorvath closed 7 years ago

nhorvath commented 7 years ago
wingedfox commented 7 years ago

Hi Thank you for the PR. I still have no time to update dgeni and dgeni-packages and fix tests, I'd appreciate your help on this. I'll review other changes next weekend.

nhorvath commented 7 years ago

I started looking into the unit tests and I'm not sure how to fix them. Something has changed between 0.4.2 and 0.4.9 that breaks them, unfortunately in that span of time they switched dgeni to typescript so just looking at diffs is not helpful. I sent an email to the maintainer of dgeni in hopes he could point us in the right direction. It's strange that everything seems to work fine despite the failing tests.

petebacondarwin commented 7 years ago

@nhorvath - the reason for the failing tests is that the website package relies upon the navigation and search packages, which in turn depend upon processors that are defined in the dgeni-packages/jsdoc and dgeni-packages/base packages.

I don't know why this passes with earlier versions of dgeni.

In any case the fix is simple enough. Just add jsdoc-ext as a dependency of the search and navigation packages. For example:

var Package = require('dgeni').Package;
var path = require('path');

/**
 * @dgPackage search
 * @description Package maintaining search index processing
 */
module.exports = new Package('search', [require('../jsdoc-ext')])

// Add in the real processors for this package
.processor(require('./processors/search-index'))
;
coveralls commented 7 years ago

Coverage Status

Coverage increased (+0.6%) to 58.091% when pulling 93866934f7f8ba7943f553c95c9ea46f7c405c7f on nhorvath:master into b5f17ac39a67d349a1a59addd65dc63c73759ac0 on wingedfox:master.

coveralls commented 7 years ago

Coverage Status

Coverage increased (+0.6%) to 58.091% when pulling 93866934f7f8ba7943f553c95c9ea46f7c405c7f on nhorvath:master into b5f17ac39a67d349a1a59addd65dc63c73759ac0 on wingedfox:master.

nhorvath commented 7 years ago

@petebacondarwin Thank you for the help (and fast!). And thanks again for dgeni!

@wingedfox build is passing now, hopefully you'll get a chance to review the changes soon.

coveralls commented 7 years ago

Coverage Status

Coverage increased (+0.6%) to 58.091% when pulling ff75fbf108cbfee218117a385a019fb03a0325bc on nhorvath:master into b5f17ac39a67d349a1a59addd65dc63c73759ac0 on wingedfox:master.

coveralls commented 7 years ago

Coverage Status

Coverage increased (+0.6%) to 58.091% when pulling ff75fbf108cbfee218117a385a019fb03a0325bc on nhorvath:master into b5f17ac39a67d349a1a59addd65dc63c73759ac0 on wingedfox:master.

coveralls commented 7 years ago

Coverage Status

Coverage increased (+0.6%) to 58.091% when pulling cece56187d358318d0bc5fcf41e5cd9536a4480b on nhorvath:master into b5f17ac39a67d349a1a59addd65dc63c73759ac0 on wingedfox:master.