OLD | NEW |
(Empty) | |
| 1 #!/bin/bash |
| 2 |
| 3 # To generate docs for the HTML library, including annotations on the |
| 4 # mapping to and from the DOM library, run this script like: |
| 5 # |
| 6 # $ htmldoc |
| 7 |
| 8 # Run from dartdoc directory to get correct relative paths. |
| 9 pushd `dirname "$0"` >>/dev/null |
| 10 |
| 11 # Generate the client-side .js file from interact.dart if we haven't already or |
| 12 # if it's out of date. |
| 13 if [ "interact.dart" -nt "static/interact.js" ] |
| 14 then |
| 15 ../../frog/minfrog --libdir=../../frog/lib \ |
| 16 --out=static/interact.js --compile-only interact.dart |
| 17 echo "Compiled interact.dart." |
| 18 fi |
| 19 |
| 20 # Clean the output directory. |
| 21 if [ -d "docs" ]; then |
| 22 rm -r docs |
| 23 fi |
| 24 mkdir docs |
| 25 |
| 26 # Copy the static files over. |
| 27 cp static/* docs |
| 28 |
| 29 # Generate the user's docs. |
| 30 ../../frog/minfrog --libdir=../../frog/lib \ |
| 31 ../../client/html/scripts/html_doc.dart |
| 32 |
| 33 popd >>/dev/null |
OLD | NEW |