Skip to content

Commit

Permalink
Merge pull request #4090 from bmac/fix-yuidoc-paths
Browse files Browse the repository at this point in the history
Make yui doc generate links from the project root instead of the file…
  • Loading branch information
bmac committed Jan 18, 2016
2 parents aa4a2f5 + 6166112 commit 90c1ed5
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 90c1ed5

Please sign in to comment.