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 * 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 world.reset(); | 108 world.reset(); |
109 | 109 |
110 // Add all of the core libraries. | 110 // Add all of the core libraries. |
111 world.getOrAddLibrary('dart:core'); | 111 world.getOrAddLibrary('dart:core'); |
112 world.getOrAddLibrary('dart:coreimpl'); | 112 world.getOrAddLibrary('dart:coreimpl'); |
113 world.getOrAddLibrary('dart:crypto'); | 113 world.getOrAddLibrary('dart:crypto'); |
114 world.getOrAddLibrary('dart:html'); | 114 world.getOrAddLibrary('dart:html'); |
115 world.getOrAddLibrary('dart:io'); | 115 world.getOrAddLibrary('dart:io'); |
116 world.getOrAddLibrary('dart:isolate'); | 116 world.getOrAddLibrary('dart:isolate'); |
117 world.getOrAddLibrary('dart:json'); | 117 world.getOrAddLibrary('dart:json'); |
| 118 world.getOrAddLibrary('lib/unittest/unittest.dart'); |
118 world.getOrAddLibrary('dart:uri'); | 119 world.getOrAddLibrary('dart:uri'); |
119 world.getOrAddLibrary('dart:utf'); | 120 world.getOrAddLibrary('dart:utf'); |
120 world.process(); | 121 world.process(); |
121 | 122 |
122 print('Generating docs...'); | 123 print('Generating docs...'); |
123 final apidoc = new Apidoc(mdn, outputDir, mode, generateAppCache); | 124 final apidoc = new Apidoc(mdn, outputDir, mode, generateAppCache); |
124 | 125 |
125 Futures.wait([scriptCompiled, copiedStatic, copiedApiDocStatic]).then((_) { | 126 Futures.wait([scriptCompiled, copiedStatic, copiedApiDocStatic]).then((_) { |
126 apidoc.document(); | 127 apidoc.document(); |
127 }); | 128 }); |
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
508 ''' | 509 ''' |
509 <p class="correspond">This corresponds to $domTypesText in the | 510 <p class="correspond">This corresponds to $domTypesText in the |
510 ${a("dom.html", "dart:dom_deprecated")} library.</p> | 511 ${a("dom.html", "dart:dom_deprecated")} library.</p> |
511 '''; | 512 '''; |
512 } | 513 } |
513 | 514 |
514 return ''; | 515 return ''; |
515 } | 516 } |
516 | 517 |
517 } | 518 } |
OLD | NEW |