Skip to content

Commit

Permalink
Updated theme and scaffold assets
Browse files Browse the repository at this point in the history
  • Loading branch information
Damon Oehlman committed Aug 9, 2012
1 parent ee9b941 commit 0122b57
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
1 change: 1 addition & 0 deletions assets/docs/_static/README.md
@@ -0,0 +1 @@
static files for your documentation should be placed here...
7 changes: 2 additions & 5 deletions assets/docs/index.rst
@@ -1,19 +1,16 @@
Your Project
============

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

Contents:
Some words about your project which might be a `Node.js`_ library. Maybe even include your README file here.

.. toctree::
:maxdepth: 2



Indices and tables
==================

* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`

.. include:: links.txt
1 change: 1 addition & 0 deletions assets/docs/links.txt
@@ -0,0 +1 @@
.. _Node.js: http://nodejs.org
2 changes: 1 addition & 1 deletion assets/themes/mocha/layout.html
@@ -1,7 +1,7 @@
{% extends "basic/layout.html" %}
{% block footer %}
{% if github_url %}
<a href="{{ github_url }}"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://a248.e.akamai.net/assets.github.com/img/30f550e0d38ceb6ef5b81500c64d970b7fb0f028/687474703a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6f72616e67655f6666373630302e706e67" alt="Fork me on GitHub"></a>
<a href="{{ github_url }}"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_orange_ff7600.png" alt="Fork me on GitHub"></a>
{% endif %}

{{ super() }}
Expand Down
2 changes: 1 addition & 1 deletion docs/work-smarter.rst
Expand Up @@ -13,7 +13,7 @@ Certain information in your Sphinx generated documentation comes from placeholde

Simply run the following command within your Node.js project directory::

docstar sync
docstar config sync
This will update particular pieces of information in configuration file. At this stage the following information is taken from your ``package.json`` file and placed in your ``conf.py`` file:

Expand Down
5 changes: 3 additions & 2 deletions lib/commands/scaffold.js
Expand Up @@ -8,14 +8,15 @@ exports.args = {

// export runner
exports.run = function(opts, callback) {
var scaffolder = this;
var scaffolder = this,
done = callback; // scaffolder.chain('config create', opts, callback);

require('../docstar').init(function(err, docstar) {
if (err) {
scaffolder.out('!{red}{0}', err);
}
else {
scaffolder.copy(path.join('assets', 'docs'), docstar.path, callback);
scaffolder.copy(path.join('assets', 'docs'), docstar.path, done);
}
});
};

0 comments on commit 0122b57

Please sign in to comment.