Skip to content
This repository has been archived by the owner on Jan 29, 2023. It is now read-only.

Commit

Permalink
Fix documentation build
Browse files Browse the repository at this point in the history
  • Loading branch information
zbentley committed Sep 25, 2016
1 parent 8bc86b1 commit b1a68c3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
'use strict';

require('pkginfo')(module)

function versionIndexTemplate(path) {
return {
options: {
Expand All @@ -14,9 +16,9 @@ function versionIndexTemplate(path) {
}

function branchDocumentationTasks(target) {
const version = '<%= pkg.version %>',
name = '<%= pkg.name %>';
target = target || version;
const version = exports.version,
name = exports.name
target = target || version
const path = `doc/generated/versions/${target}`;
return {
jsdoc: {
Expand All @@ -33,7 +35,7 @@ function branchDocumentationTasks(target) {
}
},
copy: {
cwd: `${path}/${name}/${version}`,
cwd: `${path}/${name}/${target}`,
expand: true,
src: '**',
dest: path,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"dependencies": {
"classeur-api-client": "^0.3.1",
"lodash": "^3.4.0 || ^4.0.0",
"pkginfo": "^0.4.0",
"tree-manipulator": "^0.1.1"
},
"description": "Script to download files and folders from http://classeur.io/",
Expand All @@ -32,6 +31,7 @@
},
"preferGlobal": true,
"devDependencies": {
"pkginfo": "^0.4.0",
"eyes": "^0.1.8",
"grunt": "^1.0.1",
"grunt-contrib-clean": "^1.0.0",
Expand Down

0 comments on commit b1a68c3

Please sign in to comment.