Sha256: d3c15f429433659e2ae00b334823d90eddcc27d9422cc30b7551df2b6f9871ca

Contents?: true

Size: 514 Bytes

Versions: 7

Compression:

Stored size: 514 Bytes

Contents

#!/usr/bin/env node
require('../global');

echo('Appending docs to README.md');

cd(__dirname + '/..');

// Extract docs from shell.js
var docs = grep('//@', 'shell.js');

docs = docs.replace(/\/\/\@include (.+)/g, function(match, path) {
  var file = path.match('.js$') ? path : path+'.js';
  return grep('//@', file);
});

// Remove '//@'
docs = docs.replace(/\/\/\@ ?/g, '');
// Append docs to README
sed('-i', /## Command reference(.|\n)*/, '## Command reference\n\n' + docs, 'README.md');

echo('All done.');

Version data entries

7 entries across 7 versions & 4 rubygems

Version Path
xcodebuild-helper-1.2.5 externals/ios-sim-master/node_modules/shelljs/scripts/generate-docs.js
xcodebuild-helper-1.2.3 externals/ios-sim-master/node_modules/shelljs/scripts/generate-docs.js
exercism-analysis-0.1.1 vendor/javascript/node_modules/jshint/node_modules/shelljs/scripts/generate-docs.js
eslint_node_modules-1.6.0.1 vendor/node_modules/eslint/node_modules/shelljs/scripts/generate-docs.js
eslint_node_modules-1.6.0 vendor/node_modules/eslint/node_modules/shelljs/scripts/generate-docs.js
trans-0.5.10 template/node_modules/shelljs/scripts/generate-docs.js
trans-0.5.9 template/node_modules/shelljs/scripts/generate-docs.js