CB-9782 Implements PlatformApi contract for Android platform.

This closes #226
This commit is contained in:
Vladimir Kotikov
2015-10-20 10:30:31 +03:00
parent 789c505a88
commit 400282282f
131 changed files with 9482 additions and 3048 deletions
+21
View File
@@ -0,0 +1,21 @@
#!/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.');