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

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

Issue 11233061: Revert "Parts must start with 'part of'" and "Attempt to fix VM build" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 2 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
« no previous file with comments | « dart/pkg/args/test/args_test.dart ('k') | dart/pkg/dartdoc/lib/classify.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 *
11 * This will create a "docs" directory with the docs for your libraries. To 11 * This will create a "docs" directory with the docs for your libraries. To
12 * create these beautiful docs, dartdoc parses your library and every library 12 * create these beautiful docs, dartdoc parses your library and every library
13 * it imports (recursively). From each library, it parses all classes and 13 * it imports (recursively). From each library, it parses all classes and
14 * members, finds the associated doc comments and builds crosslinked docs from 14 * members, finds the associated doc comments and builds crosslinked docs from
15 * them. 15 * them.
16 */ 16 */
17 library dartdoc; 17 #library('dartdoc');
18 18
19 import 'dart:io'; 19 #import('dart:io');
20 20
21 // TODO(rnystrom): Use "package:" URL (#4968). 21 // TODO(rnystrom): Use "package:" URL (#4968).
22 import '../lib/dartdoc.dart'; 22 #import('../lib/dartdoc.dart');
23 import '../../args/lib/args.dart'; 23 #import('../../args/lib/args.dart');
24 24
25 /** 25 /**
26 * Run this from the `pkg/dartdoc` directory. 26 * Run this from the `pkg/dartdoc` directory.
27 */ 27 */
28 main() { 28 main() {
29 // Need this because ArgParser.getUsage doesn't show command invocation. 29 // Need this because ArgParser.getUsage doesn't show command invocation.
30 final USAGE = 'Usage dartdoc [options] <entrypoint(s)>\n[options] include:'; 30 final USAGE = 'Usage dartdoc [options] <entrypoint(s)>\n[options] include:';
31 31
32 final args = new Options().arguments; 32 final args = new Options().arguments;
33 33
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 Future compiled = compileScript(dartdoc.mode, dartdoc.outputDir, libPath); 201 Future compiled = compileScript(dartdoc.mode, dartdoc.outputDir, libPath);
202 Future filesCopied = copyDirectory(scriptDir.append('../static'), 202 Future filesCopied = copyDirectory(scriptDir.append('../static'),
203 dartdoc.outputDir); 203 dartdoc.outputDir);
204 204
205 Futures.wait([compiled, filesCopied]).then((_) { 205 Futures.wait([compiled, filesCopied]).then((_) {
206 dartdoc.cleanup(); 206 dartdoc.cleanup();
207 print('Documented ${dartdoc.totalLibraries} libraries, ' 207 print('Documented ${dartdoc.totalLibraries} libraries, '
208 '${dartdoc.totalTypes} types, and ${dartdoc.totalMembers} members.'); 208 '${dartdoc.totalTypes} types, and ${dartdoc.totalMembers} members.');
209 }); 209 });
210 } 210 }
OLDNEW
« no previous file with comments | « dart/pkg/args/test/args_test.dart ('k') | dart/pkg/dartdoc/lib/classify.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698