Index: utils/apidoc/apidoc |
diff --git a/utils/apidoc/apidoc b/utils/apidoc/apidoc |
index c2730b0106049cbfdba5191b01c207580bcd6c23..e09d3e8ed63c0a2c2917dc658da73f6739f726ad 100755 |
--- a/utils/apidoc/apidoc |
+++ b/utils/apidoc/apidoc |
@@ -38,6 +38,12 @@ if [ -d "docs" ]; then |
fi |
mkdir docs |
+# Bundle up the IO libraries so dartdoc can find them. |
+# TODO(rnystrom): Having to do this is gross. Ideally apidoc should walk the |
+# sources under runtime/bin/ directly instead of relying on this. |
+grep "'*.dart'" ../../runtime/bin/io_sources.gypi | sed s/\',//g | \ |
+ sed s,\',../../runtime/bin/,g | xargs cat > io_libs.dart |
+ |
# Copy the static files over. |
cp ../dartdoc/static/* docs |
# Overlay any apidoc-specific ones. |