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

Side by Side Diff: utils/apidoc/apidoc.dart

Issue 10388050: turn off app cache, print generation date at bottom (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 7 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 | « lib/dartdoc/dartdoc.dart ('k') | no next file » | 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 * This generates the reference documentation for the core libraries that come 6 * This generates the reference documentation for the core libraries that come
7 * with dart. It is built on top of dartdoc, which is a general-purpose library 7 * with dart. It is built on top of dartdoc, which is a general-purpose library
8 * for generating docs from any Dart code. This library extends that to include 8 * for generating docs from any Dart code. This library extends that to include
9 * additional information and styling specific to our standard library. 9 * additional information and styling specific to our standard library.
10 * 10 *
(...skipping 16 matching lines...) Expand all
27 HtmlDiff _diff; 27 HtmlDiff _diff;
28 28
29 final GET_PREFIX = 'get:'; 29 final GET_PREFIX = 'get:';
30 30
31 void main() { 31 void main() {
32 final args = new Options().arguments; 32 final args = new Options().arguments;
33 33
34 int mode = doc.MODE_STATIC; 34 int mode = doc.MODE_STATIC;
35 String outputDir = 'docs'; 35 String outputDir = 'docs';
36 String compilerPath; 36 String compilerPath;
37 bool generateAppCache = true; 37 bool generateAppCache = false;
38 38
39 // Parse the command-line arguments. 39 // Parse the command-line arguments.
40 for (int i = 0; i < args.length; i++) { 40 for (int i = 0; i < args.length; i++) {
41 final arg = args[i]; 41 final arg = args[i];
42 42
43 switch (arg) { 43 switch (arg) {
44 case '--mode=static': 44 case '--mode=static':
45 mode = doc.MODE_STATIC; 45 mode = doc.MODE_STATIC;
46 break; 46 break;
47 47
48 case '--mode=live-nav': 48 case '--mode=live-nav':
49 mode = doc.MODE_LIVE_NAV; 49 mode = doc.MODE_LIVE_NAV;
50 break; 50 break;
51 51
52 case '--generate-app-cache=false': 52 case '--generate-app-cache=true':
53 generateAppCache = false; 53 generateAppCache = true;
54 break; 54 break;
55 55
56 default: 56 default:
57 if (arg.startsWith('--out=')) { 57 if (arg.startsWith('--out=')) {
58 outputDir = arg.substring('--out='.length); 58 outputDir = arg.substring('--out='.length);
59 } else if (arg.startsWith('--compiler=')) { 59 } else if (arg.startsWith('--compiler=')) {
60 compilerPath = arg.substring('--compiler='.length); 60 compilerPath = arg.substring('--compiler='.length);
61 } else { 61 } else {
62 print('Unknown option: $arg'); 62 print('Unknown option: $arg');
63 return; 63 return;
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after
506 ''' 506 '''
507 <p class="correspond">This corresponds to $domTypesText in the 507 <p class="correspond">This corresponds to $domTypesText in the
508 ${a("dom.html", "dart:dom")} library.</p> 508 ${a("dom.html", "dart:dom")} library.</p>
509 '''; 509 ''';
510 } 510 }
511 511
512 return ''; 512 return '';
513 } 513 }
514 514
515 } 515 }
OLDNEW
« no previous file with comments | « lib/dartdoc/dartdoc.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698