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

Side by Side Diff: lib/dartdoc/dartdoc.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 | « no previous file | utils/apidoc/apidoc.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 *
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 '''); 454 ''');
455 } 455 }
456 456
457 void writeFooter() { 457 void writeFooter() {
458 writeln( 458 writeln(
459 ''' 459 '''
460 </div> 460 </div>
461 <div class="clear"></div> 461 <div class="clear"></div>
462 </div> 462 </div>
463 ${preFooterText} 463 ${preFooterText}
464 <div class="footer">$footerText</div> 464 <div class="footer">
465 <p>This page generated at ${new Date.now()}</p>
466 <div>$footerText</div>
467 </div>
465 <script async src="${relativePath('$clientScript.js')}"></script> 468 <script async src="${relativePath('$clientScript.js')}"></script>
466 </body></html> 469 </body></html>
467 '''); 470 ''');
468 } 471 }
469 472
470 void docIndex() { 473 void docIndex() {
471 startFile('index.html'); 474 startFile('index.html');
472 475
473 writeHeader(mainTitle, []); 476 writeHeader(mainTitle, []);
474 477
(...skipping 866 matching lines...) Expand 10 before | Expand all | Expand 10 after
1341 if (filename.endsWith('appcache.manifest')) { 1344 if (filename.endsWith('appcache.manifest')) {
1342 return; 1345 return;
1343 } 1346 }
1344 var relativePath = filename.substring(pathPrefixLength + 1); 1347 var relativePath = filename.substring(pathPrefixLength + 1);
1345 write("$relativePath\n"); 1348 write("$relativePath\n");
1346 }; 1349 };
1347 toCache.onDone = (done) => endFile(); 1350 toCache.onDone = (done) => endFile();
1348 toCache.list(recursive: true); 1351 toCache.list(recursive: true);
1349 } 1352 }
1350 } 1353 }
OLDNEW
« no previous file with comments | « no previous file | utils/apidoc/apidoc.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698