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

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

Issue 9705037: Add new core ("dart:") libraries to frog so that apidoc can find them. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 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 | « utils/apidoc/apidoc ('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 * 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
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
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 }
OLDNEW
« no previous file with comments | « utils/apidoc/apidoc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698