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

Unified Diff: utils/dartdoc/htmldoc

Issue 8771054: Add a script to generate HTML and DOM docs with cross-links to one another. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: More code review changes. Created 9 years 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/htmldoc
diff --git a/utils/dartdoc/htmldoc b/utils/dartdoc/htmldoc
new file mode 100755
index 0000000000000000000000000000000000000000..63570bdea6c96b6f0779174bda6a3ab83822f486
--- /dev/null
+++ b/utils/dartdoc/htmldoc
@@ -0,0 +1,33 @@
+#!/bin/bash
+
+# To generate docs for the HTML library, including annotations on the
+# mapping to and from the DOM library, run this script like:
+#
+# $ htmldoc
+
+# Run from dartdoc directory to get correct relative paths.
+pushd `dirname "$0"` >>/dev/null
+
+# Generate the client-side .js file from interact.dart if we haven't already or
+# if it's out of date.
+if [ "interact.dart" -nt "static/interact.js" ]
+ then
+ ../../frog/minfrog --libdir=../../frog/lib \
+ --out=static/interact.js --compile-only interact.dart
+ echo "Compiled interact.dart."
+fi
+
+# Clean the output directory.
+if [ -d "docs" ]; then
+ rm -r docs
+fi
+mkdir docs
+
+# Copy the static files over.
+cp static/* docs
+
+# Generate the user's docs.
+../../frog/minfrog --libdir=../../frog/lib \
+ ../../client/html/scripts/html_doc.dart
+
+popd >>/dev/null

Powered by Google App Engine
This is Rietveld 408576698