| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |