| 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 * Generates the complete set of corelib reference documentation. | 6 * Generates the complete set of corelib reference documentation. |
| 7 */ | 7 */ |
| 8 #library('apidoc'); | 8 #library('apidoc'); |
| 9 | 9 |
| 10 #import('dart:json'); | 10 #import('dart:json'); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 | 28 |
| 29 print('Cross-referencing dart:dom and dart:html...'); | 29 print('Cross-referencing dart:dom and dart:html...'); |
| 30 HtmlDiff.initialize(); | 30 HtmlDiff.initialize(); |
| 31 _diff = new HtmlDiff(); | 31 _diff = new HtmlDiff(); |
| 32 _diff.run(); | 32 _diff.run(); |
| 33 world.reset(); | 33 world.reset(); |
| 34 | 34 |
| 35 // TODO(rnystrom): Cram in the the IO libraries. This is hackish right now. | 35 // TODO(rnystrom): Cram in the the IO libraries. This is hackish right now. |
| 36 // We should probably move corelib stuff completely out of dartdoc and have it | 36 // We should probably move corelib stuff completely out of dartdoc and have it |
| 37 // all here. | 37 // all here. |
| 38 world.getOrAddLibrary('io_libs.dart'); | 38 world.getOrAddLibrary('dart:io'); |
| 39 | 39 |
| 40 print('Generating docs...'); | 40 print('Generating docs...'); |
| 41 final apidoc = new Apidoc(mdn); | 41 final apidoc = new Apidoc(mdn); |
| 42 apidoc.document('html'); | 42 apidoc.document('html'); |
| 43 } | 43 } |
| 44 | 44 |
| 45 class Apidoc extends doc.Dartdoc { | 45 class Apidoc extends doc.Dartdoc { |
| 46 /** Big ball of JSON containing the scraped MDN documentation. */ | 46 /** Big ball of JSON containing the scraped MDN documentation. */ |
| 47 final Map mdn; | 47 final Map mdn; |
| 48 | 48 |
| (...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 383 return | 383 return |
| 384 ''' | 384 ''' |
| 385 <p class="correspond">This corresponds to $domTypesText in the | 385 <p class="correspond">This corresponds to $domTypesText in the |
| 386 ${a("dom.html", "dart:dom")} library.</p> | 386 ${a("dom.html", "dart:dom")} library.</p> |
| 387 '''; | 387 '''; |
| 388 } | 388 } |
| 389 | 389 |
| 390 return ''; | 390 return ''; |
| 391 } | 391 } |
| 392 } | 392 } |
| OLD | NEW |