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

Side by Side Diff: pkg/dartdoc/bin/dartdoc.dart

Issue 10914267: Fix dartdoc editor integration. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 /** 5 /**
6 * To generate docs for a library, run this script with the path to an 6 * To generate docs for a library, run this script with the path to an
7 * entrypoint .dart file, like: 7 * entrypoint .dart file, like:
8 * 8 *
9 * $ dart dartdoc.dart foo.dart 9 * $ dart dartdoc.dart foo.dart
10 * 10 *
(...skipping 22 matching lines...) Expand all
33 ? scriptDir.append('../../../lib/dart2js/') 33 ? scriptDir.append('../../../lib/dart2js/')
34 : scriptDir.append('../../../'); 34 : scriptDir.append('../../../');
35 35
36 /** 36 /**
37 * Run this from the `pkg/dartdoc` directory. 37 * Run this from the `pkg/dartdoc` directory.
38 */ 38 */
39 main() { 39 main() {
40 final args = new Options().arguments; 40 final args = new Options().arguments;
41 41
42 final dartdoc = new Dartdoc(); 42 final dartdoc = new Dartdoc();
43 dartdoc.dartdocPath = libPath.append('pkg/dartdoc');
43 44
44 if (args.isEmpty()) { 45 if (args.isEmpty()) {
45 print('No arguments provided.'); 46 print('No arguments provided.');
46 printUsage(); 47 printUsage();
47 return; 48 return;
48 } 49 }
49 50
50 final entrypoints = <Path>[]; 51 final entrypoints = <Path>[];
51 52
52 var i = 0; 53 var i = 0;
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 names. 180 names.
180 181
181 --exclude-lib=<libs> Use this option to explicitly specify which 182 --exclude-lib=<libs> Use this option to explicitly specify which
182 libraries to exclude from the documentation. If 183 libraries to exclude from the documentation. If
183 omitted, no libraries are excluded. <libs> is 184 omitted, no libraries are excluded. <libs> is
184 comma-separated list of library names. 185 comma-separated list of library names.
185 186
186 --verbose Print verbose information during generation. 187 --verbose Print verbose information during generation.
187 '''); 188 ''');
188 } 189 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698