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

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

Issue 139083003: Fix "inherited from" comments for Interceptor (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Removed the snapshotting to sdk, just leave the docgen edits 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
« no previous file with comments | « no previous file | pkg/docgen/doc/README.txt » ('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 7be77b94cdf9edb586d0f0017c063cd832b6606c..2a116de5b1bec5557663576bbb3959b1757c1734 100644
--- a/pkg/docgen/bin/docgen.dart
+++ b/pkg/docgen/bin/docgen.dart
@@ -21,9 +21,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'],
@@ -31,7 +29,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']);
@@ -76,7 +74,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 | « no previous file | pkg/docgen/doc/README.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698