Index: utils/apidoc/apidoc.dart |
diff --git a/utils/apidoc/apidoc.dart b/utils/apidoc/apidoc.dart |
index 1c340fc3a5c8576b847b9cf22905a3d41f4be12c..ae9e061eba2b0bee5122bd37236f480e67e9dfe7 100644 |
--- a/utils/apidoc/apidoc.dart |
+++ b/utils/apidoc/apidoc.dart |
@@ -30,6 +30,11 @@ void main() { |
_diff.run(); |
world.reset(); |
+ // TODO(rnystrom): Cram in the the IO libraries. This is hackish right now. |
+ // We should probably move corelib stuff completely out of dartdoc and have it |
+ // all here. |
+ world.getOrAddLibrary('io_libs.dart'); |
+ |
print('Generating docs...'); |
final apidoc = new Apidoc(mdn); |
apidoc.document('html'); |
@@ -65,6 +70,9 @@ class Apidoc extends doc.Dartdoc { |
<p><a href="$tos">Terms of Service</a> | |
<a href="$privacy">Privacy Policy</a></p> |
'''; |
+ |
+ searchEngineId = '011220921317074318178:i4mscbaxtru'; |
+ searchResultsUrl = 'http://www.dartlang.org/search.html'; |
} |
void writeHeadContents(String title) { |
@@ -99,6 +107,27 @@ class Apidoc extends doc.Dartdoc { |
'''); |
} |
+ void docIndexLibrary(Library library) { |
+ // TODO(rnystrom): Hackish. The IO libraries reference this but we don't |
+ // want it in the docs. |
+ if (library.name == 'dart:nativewrappers') return; |
+ super.docIndexLibrary(library); |
+ } |
+ |
+ void docLibraryNavigationJson(Library library, Map libraries) { |
+ // TODO(rnystrom): Hackish. The IO libraries reference this but we don't |
+ // want it in the docs. |
+ if (library.name == 'dart:nativewrappers') return; |
+ super.docLibraryNavigationJson(library, libraries); |
+ } |
+ |
+ void docLibrary(Library library) { |
+ // TODO(rnystrom): Hackish. The IO libraries reference this but we don't |
+ // want it in the docs. |
+ if (library.name == 'dart:nativewrappers') return; |
+ super.docLibrary(library); |
+ } |
+ |
String getTypeComment(Type type) { |
return _mergeDocs( |
includeMdnTypeComment(type), |