Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added scaffold action, bump version (0.0.5)

  • Loading branch information...
commit bda2a8ddc3815e0107ab161021ca3716633a41ec 1 parent 5bcd5e9
@DamonOehlman authored
View
2  assets/config/conf.py
@@ -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 = {}
View
4 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:
View
32 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);
+ }
+ });
+};
View
2  package.json
@@ -7,7 +7,7 @@
"docs",
"sphinx"
],
- "version": "0.0.4",
+ "version": "0.0.5",
"main": "index.js",
"bin": {
"docstar": "./bin/docstar"
Please sign in to comment.
Something went wrong with that request. Please try again.