Skip to content

Commit

Permalink
Make yui doc generate links from the project root instead of the file…
Browse files Browse the repository at this point in the history
…system root

(cherry picked from commit 6166112)
  • Loading branch information
bmac committed Jan 18, 2016
1 parent 595e69d commit b40a079
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions lib/yuidoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@ var calculateVersion = require('./calculate-version');
var path = require('path');

module.exports = function yui() {
var emberData = path.join(__dirname, '..', 'addon');
var emberInflector = path.join(path.dirname(require.resolve('ember-inflector'), 'addon'));

return new YUIDoc([emberData, emberInflector], {
srcDir: '/',
return new YUIDoc(['addon', 'node_modules/ember-inflector/addon'], {
destDir: 'docs',
yuidoc: {
"name": "The ember-data API",
Expand All @@ -16,10 +12,6 @@ module.exports = function yui() {
"logo": "http://f.cl.ly/items/1A1L432s022u1O1q1V3p/ember%20logo.png",
"url": "https://github.com/emberjs/data",
"options": {
"paths": [
"ember-data/lib",
"ember-inflector/addon"
],
"exclude": "vendor",
"outdir": "docs/build"
}
Expand Down

0 comments on commit b40a079

Please sign in to comment.