Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1013)

Unified Diff: dart/pkg/docgen/bin/docgen.dart

Issue 163133002: Version 1.2.0-dev.5.2 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: dart/pkg/docgen/bin/docgen.dart
===================================================================
--- dart/pkg/docgen/bin/docgen.dart (revision 32643)
+++ dart/pkg/docgen/bin/docgen.dart (working copy)
@@ -35,6 +35,12 @@
var scriptDir = path.dirname(Platform.script.toFilePath());
var introduction = includeSdk ? '' : options['introduction'];
+ var pubScript = options['sdk'] != null ?
+ path.join(options['sdk'], 'bin', 'pub') : 'pub';
+
+ var dartBinary = options['sdk'] != null ?
+ path.join(options['sdk'], 'bin', 'dart') : 'dart';
+
docgen(_files,
packageRoot: options['package-root'],
outputToYaml: !options['json'],
@@ -46,7 +52,10 @@
out: options['out'],
excludeLibraries: excludedLibraries,
includeDependentPackages: options['include-dependent-packages'],
+ compile: options['compile'],
serve: options['serve'],
+ dartBinary: dartBinary,
+ pubScript: pubScript,
noDocs: options['no-docs'],
startPage: startPage);
}
@@ -116,9 +125,13 @@
parser.addFlag('append',
help: 'Append to the docs folder, library_list.json and index.txt',
defaultsTo: false, negatable: false);
+ parser.addFlag('compile', help: 'Clone the documentation viewer repo locally '
+ '(if not already present) and compile with dart2js', defaultsTo: false,
+ negatable: false);
parser.addFlag('serve', help: 'Clone the documentation viewer repo locally '
- '(if not already present) and start a simple server', defaultsTo: false,
- negatable: false);
+ '(if not already present), compile with dart2js, '
+ 'and start a simple server',
+ defaultsTo: false, negatable: false);
parser.addFlag('no-docs', help: 'Do not generate any new documentation',
defaultsTo: false, negatable: false);
parser.addOption('introduction',
@@ -136,6 +149,9 @@
'in the directory with its pubspec. Includes documentation for all '
'of its dependent packages.',
defaultsTo: true, negatable: true);
+ parser.addOption('sdk',
+ help: 'SDK directory',
+ defaultsTo: null);
parser.addOption('start-page',
help: 'By default the viewer will start at the SDK introduction page.'
'To start at some other page, e.g. for a package, provide the name '

Powered by Google App Engine
This is Rietveld 408576698