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

Unified Diff: lib/dartdoc/dartdoc.dart

Issue 9844031: add disqus comments (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: remove generated file Created 8 years, 9 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 | « lib/dartdoc/client-static.dart ('k') | utils/apidoc/README.txt » ('j') | no next file with comments »
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 fd8ecd12b666d9b1e20eef1cae122632d9b5d0e9..b590dd4df87d90c14e0e21e614bade1fb088efcd 100644
--- a/lib/dartdoc/dartdoc.dart
+++ b/lib/dartdoc/dartdoc.dart
@@ -56,7 +56,7 @@ void main() {
// Parse the dartdoc options.
bool includeSource;
- String mode;
+ int mode;
String outputDir;
for (int i = 0; i < args.length - 1; i++) {
@@ -182,12 +182,13 @@ void compileScript(String compilerPath, String libDir,
process.stdout.pipe(stdout, close: false);
process.onError = (error) {
- print('Failed to compile $dartPath. Error:');
+ print('Failed to compile $dartPath with $compilerPath. Error:');
print(error);
};
}
class Dartdoc {
+
/** Set to `false` to not include the source code in the generated docs. */
bool includeSource = true;
@@ -224,6 +225,9 @@ class Dartdoc {
/** Set this to add footer text to each generated page. */
String footerText = '';
+ /** Set this to add content before the footer */
+ String preFooterText = '';
+
/**
* 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
@@ -405,10 +409,9 @@ class Dartdoc {
<meta charset="utf-8">
<title>$title</title>
<link rel="stylesheet" type="text/css"
- href="${relativePath('styles.css')}" />
+ href="${relativePath('styles.css')}">
<link href="http://fonts.googleapis.com/css?family=Open+Sans:400,600,700,800" rel="stylesheet" type="text/css">
- <link rel="shortcut icon" href="${relativePath('favicon.ico')}" />
- <script src="${relativePath('$clientScript.js')}"></script>
+ <link rel="shortcut icon" href="${relativePath('favicon.ico')}">
''');
}
@@ -418,7 +421,9 @@ class Dartdoc {
</div>
<div class="clear"></div>
</div>
+ ${preFooterText}
<div class="footer">$footerText</div>
+ <script async src="${relativePath('$clientScript.js')}"></script>
</body></html>
''');
}
« no previous file with comments | « lib/dartdoc/client-static.dart ('k') | utils/apidoc/README.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698