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

Unified Diff: utils/dartdoc/client-static.dart

Issue 9256002: Add a mode to dartdoc to generate the navigation on the client. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 11 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
Index: utils/dartdoc/client-static.dart
diff --git a/utils/dartdoc/client-static.dart b/utils/dartdoc/client-static.dart
new file mode 100644
index 0000000000000000000000000000000000000000..f6c4236cec6012eb2eb5f3374b6f078d952cccef
--- /dev/null
+++ b/utils/dartdoc/client-static.dart
@@ -0,0 +1,19 @@
+// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+/** Provides client-side behavior for generated docs using the static mode. */
+#library('client-static');
+
+#import('dart:html');
+#import('../../frog/lang.dart', prefix: 'frog');
+#import('classify.dart');
+#import('markdown.dart', prefix: 'md');
nweiz 2012/01/19 19:20:17 I don't think this is actually used.
Bob Nystrom 2012/01/19 20:11:07 Good catch!
+
+#source('client-shared.dart');
+
+main() {
+ window.on.contentLoaded.add((e) {
+ enableCodeBlocks();
+ });
+}

Powered by Google App Engine
This is Rietveld 408576698