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

Unified Diff: lib/dartdoc/dartdoc.dart

Issue 10201012: add appcache generation to apidocs (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: enable doc generation again Created 8 years, 8 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 | utils/apidoc/apidoc.dart » ('j') | utils/apidoc/apidoc.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/dartdoc/dartdoc.dart
diff --git a/lib/dartdoc/dartdoc.dart b/lib/dartdoc/dartdoc.dart
index 57191283f9718f3c214726e17a676fc2e7f09cf6..c636ac0b6a63d161bb630d28bd0b9c5c9680a209 100644
--- a/lib/dartdoc/dartdoc.dart
+++ b/lib/dartdoc/dartdoc.dart
@@ -229,6 +229,9 @@ class Dartdoc {
/** Set this to add content before the footer */
String preFooterText = '';
+ /** Set this to add any attributes to the HTML element */
+ String htmlAttributes = '';
+
/**
* From exposes the set of libraries in `world.libraries`. That maps library
* *keys* to [Library] objects. The keys are *not* exactly the same as their
@@ -343,7 +346,7 @@ class Dartdoc {
write(
'''
<!DOCTYPE html>
- <html>
+ <html${htmlAttributes.trim() == '' ? '' : ' $htmlAttributes'}>
<head>
''');
writeHeadContents(title);
« no previous file with comments | « no previous file | utils/apidoc/apidoc.dart » ('j') | utils/apidoc/apidoc.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698