Permalink
Browse files

Updated deps, bump version (0.0.4)

  • Loading branch information...
DamonOehlman committed Jan 10, 2012
1 parent 6fdbf18 commit 5bcd5e9c2aee2feb1d8551efcc096503f849510b
Showing with 7 additions and 11 deletions.
  1. +6 −10 lib/actions/theme.js
  2. +1 −1 package.json
View
@@ -8,31 +8,27 @@ function ThemeHelper() {
};
-ThemeHelper.prototype.install = function(docstar, scaffolder, extraArgs) {
+ThemeHelper.prototype.use = function(docstar, scaffolder, extraArgs) {
var theme = extraArgs[0],
helper = this;
if (! theme) {
scaffolder.error('No theme specified, could not install');
}
+ debug('copying theme to : ' + path.join(docstar.path, '_theme/' + theme))
scaffolder.copyAssets(
'themes/' + theme,
function() {
- // now call the update method
- helper.use(docstar, scaffolder, extraArgs);
+ // now tweak the config
+ docstar.tweakConfig({
+ theme: theme
+ });
},
path.join(docstar.path, '_theme/' + theme)
);
};
-ThemeHelper.prototype.use = function(docstar, scaffolder, extraArgs) {
- docstar.tweakConfig({
- // TODO: check the theme exists
- theme: extraArgs[0] || 'default'
- });
-};
-
module.exports = function(opts, extraArgs, callback) {
var scaffolder = this;
View
@@ -7,7 +7,7 @@
"docs",
"sphinx"
],
- "version": "0.0.3",
+ "version": "0.0.4",
"main": "index.js",
"bin": {
"docstar": "./bin/docstar"

0 comments on commit 5bcd5e9

Please sign in to comment.