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

Side by Side Diff: pkg/docgen/lib/src/generator.dart

Issue 401003004: Make links to libraries from the main page work (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Use ./ instead of hard-coding the full URL Created 6 years, 5 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 | 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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 library docgen.generator; 5 library docgen.generator;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:collection'; 8 import 'dart:collection';
9 import 'dart:convert'; 9 import 'dart:convert';
10 import 'dart:io'; 10 import 'dart:io';
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 void generateLibrary(dart2js_mirrors.Dart2JsLibraryMirror library) { 416 void generateLibrary(dart2js_mirrors.Dart2JsLibraryMirror library) {
417 var result = new Library(library); 417 var result = new Library(library);
418 result.updateLibraryPackage(library); 418 result.updateLibraryPackage(library);
419 logger.fine('Generated library for ${result.name}'); 419 logger.fine('Generated library for ${result.name}');
420 } 420 }
421 421
422 /// If we can't find the SDK introduction text, which will happen if running 422 /// If we can't find the SDK introduction text, which will happen if running
423 /// from a snapshot and using --parse-sdk or --include-sdk, then use this 423 /// from a snapshot and using --parse-sdk or --include-sdk, then use this
424 /// hard-coded version. This should be updated to be consistent with the text 424 /// hard-coded version. This should be updated to be consistent with the text
425 /// in docgen/doc/sdk-introduction.md 425 /// in docgen/doc/sdk-introduction.md
426 const _DEFAULT_SDK_INTRODUCTION = 426 const _DEFAULT_SDK_INTRODUCTION =
Emily Fortuna 2014/07/21 17:21:54 If this is what we're going to do, can we add a TO
Alan Knight 2014/07/21 17:28:26 Done.
427 """ 427 """
428 Welcome to the Dart API reference documentation, 428 Welcome to the Dart API reference documentation,
429 covering the official Dart API libraries. 429 covering the official Dart API libraries.
430 Some of the most fundamental Dart libraries include: 430 Some of the most fundamental Dart libraries include:
431 431
432 * [dart:core](#dart:core): 432 * [dart:core](./dart:core):
433 Core functionality such as strings, numbers, collections, errors, 433 Core functionality such as strings, numbers, collections, errors,
434 dates, and URIs. 434 dates, and URIs.
435 * [dart:html](#dart:html): 435 * [dart:html](./dart:html):
436 DOM manipulation for web apps. 436 DOM manipulation for web apps.
437 * [dart:io](#dart:io): 437 * [dart:io](./dart:io):
438 I/O for command-line apps. 438 I/O for command-line apps.
439 439
440 Except for dart:core, you must import a library before you can use it. 440 Except for dart:core, you must import a library before you can use it.
441 Here's an example of importing dart:html, dart:math, and a 441 Here's an example of importing dart:html, dart:math, and a
442 third popular library called 442 third popular library called
443 [polymer.dart](http://www.dartlang.org/polymer-dart/): 443 [polymer.dart](http://www.dartlang.org/polymer-dart/):
444 444
445 import 'dart:html'; 445 import 'dart:html';
446 import 'dart:math'; 446 import 'dart:math';
447 import 'package:polymer/polymer.dart'; 447 import 'package:polymer/polymer.dart';
(...skipping 15 matching lines...) Expand all
463 * [Samples](http://www.dartlang.org/samples/) 463 * [Samples](http://www.dartlang.org/samples/)
464 * [A Tour of the Dart Libraries](http://www.dartlang.org/docs/dart-up-and-runn ing/contents/ch03.html) 464 * [A Tour of the Dart Libraries](http://www.dartlang.org/docs/dart-up-and-runn ing/contents/ch03.html)
465 465
466 This API reference is automatically generated from the source code in the 466 This API reference is automatically generated from the source code in the
467 [Dart project](https://code.google.com/p/dart/). 467 [Dart project](https://code.google.com/p/dart/).
468 If you'd like to contribute to this documentation, see 468 If you'd like to contribute to this documentation, see
469 [Contributing](https://code.google.com/p/dart/wiki/Contributing) 469 [Contributing](https://code.google.com/p/dart/wiki/Contributing)
470 and 470 and
471 [Writing API Documentation](https://code.google.com/p/dart/wiki/WritingApiDocume ntation). 471 [Writing API Documentation](https://code.google.com/p/dart/wiki/WritingApiDocume ntation).
472 """; 472 """;
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698