OLD | NEW |
1 #!/bin/bash | 1 #!/bin/bash |
2 | 2 |
3 # To generate docs for a library, run this script with the path to an entrypoint | 3 # To generate docs for a library, run this script with the path to an entrypoint |
4 # .dart file, like: | 4 # .dart file, like: |
5 # | 5 # |
6 # $ dartdoc foo.dart | 6 # $ dartdoc foo.dart |
7 # | 7 # |
8 # You can also pass in a couple of "special" entrypoints for generating | 8 # You can also pass in a couple of "special" entrypoints for generating |
9 # docs for dart's built in libraries. The special entrypoints are: | 9 # docs for dart's built in libraries. The special entrypoints are: |
10 # | 10 # |
(...skipping 22 matching lines...) Expand all Loading... |
33 echo "Compiled interact.dart." | 33 echo "Compiled interact.dart." |
34 fi | 34 fi |
35 | 35 |
36 # Clean the output directory. | 36 # Clean the output directory. |
37 if [ -d "docs" ]; then | 37 if [ -d "docs" ]; then |
38 rm -r docs | 38 rm -r docs |
39 fi | 39 fi |
40 mkdir docs | 40 mkdir docs |
41 | 41 |
42 # Copy the static files over. | 42 # Copy the static files over. |
43 cp -R static/ docs | 43 cp -R static/* docs |
44 | 44 |
45 # Ditch the first arg so we can pass any extra arguments to dartdoc. | 45 # Ditch the first arg so we can pass any extra arguments to dartdoc. |
46 shift | 46 shift |
47 | 47 |
48 # Generate the user's docs. | 48 # Generate the user's docs. |
49 ../../frog/minfrog --libdir=../../frog/lib dartdoc.dart "$entrypoint" $@ | 49 ../../frog/minfrog --libdir=../../frog/lib dartdoc.dart "$entrypoint" $@ |
50 | 50 |
51 popd >>/dev/null | 51 popd >>/dev/null |
OLD | NEW |