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

Unified 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: Add a TODO for resolving names from the README better 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/docgen/lib/src/generator.dart
diff --git a/pkg/docgen/lib/src/generator.dart b/pkg/docgen/lib/src/generator.dart
index 42c2e3bf19025f68be3e3cdcd81cb550bde6ca1c..1258d20b1ce12dc5ad08fbc01d1ce6a4aa423f65 100644
--- a/pkg/docgen/lib/src/generator.dart
+++ b/pkg/docgen/lib/src/generator.dart
@@ -423,18 +423,20 @@ void generateLibrary(dart2js_mirrors.Dart2JsLibraryMirror library) {
/// from a snapshot and using --parse-sdk or --include-sdk, then use this
/// hard-coded version. This should be updated to be consistent with the text
/// in docgen/doc/sdk-introduction.md
+// TODO(alanknight): It would be better if we could resolve the references to
+// dart:core etc. at load-time in the viewer. dartbug.com/20112
const _DEFAULT_SDK_INTRODUCTION =
"""
Welcome to the Dart API reference documentation,
covering the official Dart API libraries.
Some of the most fundamental Dart libraries include:
-* [dart:core](#dart:core):
+* [dart:core](./dart:core):
Core functionality such as strings, numbers, collections, errors,
dates, and URIs.
-* [dart:html](#dart:html):
+* [dart:html](./dart:html):
DOM manipulation for web apps.
-* [dart:io](#dart:io):
+* [dart:io](./dart:io):
I/O for command-line apps.
Except for dart:core, you must import a library before you can use it.
« 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