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

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

Issue 22831008: Added an introduction option by passing in a file with markdown. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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
« no previous file with comments | « no previous file | pkg/docgen/bin/sdk-introduction.md » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/docgen/bin/docgen.dart
diff --git a/pkg/docgen/bin/docgen.dart b/pkg/docgen/bin/docgen.dart
index 48b9071d1dc97a943624be2a2e4390c824b679d1..2d75a446b61938d28a1246f96b8584472438a7e4 100644
--- a/pkg/docgen/bin/docgen.dart
+++ b/pkg/docgen/bin/docgen.dart
@@ -23,7 +23,9 @@ void main() {
includePrivate: results['include-private'],
includeSdk: results['parse-sdk'] || results['include-sdk'],
parseSdk: results['parse-sdk'],
- append: results['append'] && new Directory('docs').existsSync());
+ append: results['append'] && new Directory('docs').existsSync(),
+ introduction: results['parse-sdk'] ?
+ 'sdk-introduction.md' : results['introduction']);
}
/**
@@ -57,10 +59,13 @@ ArgParser _initArgParser() {
help: 'Parses the SDK libraries only.',
defaultsTo: false, negatable: false);
parser.addOption('package-root',
- help: "Sets the package root of the library being analyzed.");
+ help: 'Sets the package root of the library being analyzed.');
parser.addFlag('append',
help: 'Append to the docs folder, library_list.txt and index.txt',
defaultsTo: false, negatable: false);
+ parser.addOption('introduction',
+ help: 'Adds the provided markdown text file as the introduction'
+ 'for the outputted documentation.', defaultsTo: '');
return parser;
}
« no previous file with comments | « no previous file | pkg/docgen/bin/sdk-introduction.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698