Skip to content

Commit

Permalink
Added scaffold action, bump version (0.0.5)
Browse files Browse the repository at this point in the history
  • Loading branch information
Damon Oehlman committed Jan 13, 2012
1 parent 5bcd5e9 commit bda2a8d
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 5 deletions.
2 changes: 1 addition & 1 deletion assets/config/conf.py
Expand Up @@ -149,4 +149,4 @@
#htmlhelp_basename = 'htmlhelp_base'

# Example configuration for intersphinx: refer to the Python standard library.
intersphinx_mapping = {'http://docs.python.org/': None}
intersphinx_mapping = {}
4 changes: 1 addition & 3 deletions assets/docs/index.rst
@@ -1,9 +1,7 @@
Your Project
============

Some words about your project. Maybe even include your README file here

.. include:: ../README.rst
Some words about your project. Maybe even include your README file here.

Contents:

Expand Down
32 changes: 32 additions & 0 deletions lib/actions/scaffold.js
@@ -0,0 +1,32 @@
var docstar = require('../docstar'),
events = require('events'),
debug = require('debug')('docstar'),
path = require('path'),
util = require('util');

function _sync(docstar, scaffolder, callback) {
scaffolder.loadPackageData(function(err, data) {
if (! err) {
docstar.tweakConfig({
copyright: (new Date().getFullYear()) + ', ' + data.author,
project: data.name,
version: data.version
});
}

callback(err, data);
});
};

module.exports = function(opts, extraArgs, callback) {
var scaffolder = this;

docstar.init(opts, function(err, instance) {
if (err) {
scaffolder.out(err);
}
else {
scaffolder.copyAssets('docs', callback, instance.path);
}
});
};
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -7,7 +7,7 @@
"docs",
"sphinx"
],
"version": "0.0.4",
"version": "0.0.5",
"main": "index.js",
"bin": {
"docstar": "./bin/docstar"
Expand Down

0 comments on commit bda2a8d

Please sign in to comment.