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

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

Issue 116043013: Add a snapshot for docgen and use it in the build (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Previous version could pass the default text as markdown instead of converting to html Created 6 years, 11 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: pkg/docgen/bin/docgen.dart
diff --git a/pkg/docgen/bin/docgen.dart b/pkg/docgen/bin/docgen.dart
index 7a19f6524fe014d220b915086be3967833346622..976ac39cf0cf498cd981149d2ed3f6565f827e90 100644
--- a/pkg/docgen/bin/docgen.dart
+++ b/pkg/docgen/bin/docgen.dart
@@ -22,9 +22,7 @@ void main(List<String> arguments) {
var includeSdk = results['parse-sdk'] || results['include-sdk'];
var scriptDir = path.dirname(Platform.script.toFilePath());
- var introFile =
- path.join(path.dirname(scriptDir), 'doc', 'sdk-introduction.md');
- var introduction = includeSdk ? introFile : results['introduction'];
+ var introduction = includeSdk ? '' : results['introduction'];
docgen(results.rest.map(path.normalize).toList(),
packageRoot: results['package-root'],
outputToYaml: !results['json'],
@@ -32,7 +30,7 @@ void main(List<String> arguments) {
includeSdk: includeSdk,
parseSdk: results['parse-sdk'],
append: results['append'] && new Directory(results['out']).existsSync(),
- introduction: introduction,
+ introFileName: introduction,
out: results['out'],
excludeLibraries: excludedLibraries,
includeDependentPackages: results['include-dependent-packages']);
@@ -77,7 +75,7 @@ ArgParser _initArgParser() {
defaultsTo: false, negatable: false);
parser.addOption('introduction',
help: 'Adds the provided markdown text file as the introduction'
- ' for the outputted documentation.', defaultsTo: '');
+ ' for the generated documentation.', defaultsTo: '');
parser.addOption('out',
help: 'The name of the output directory.',
defaultsTo: 'docs');
« no previous file with comments | « pkg/docgen/bin/dartdoc.py ('k') | pkg/docgen/doc/README.txt » ('j') | pkg/docgen/lib/docgen.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698