Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 2 // for details. All rights reserved. Use of this source code is governed by a | |
| 3 // BSD-style license that can be found in the LICENSE file. | |
| 4 | |
| 5 /** | |
| 6 * TODO(amouravski): Document stuff here. | |
| 7 */ | |
| 8 | |
| 9 import 'dart:io'; | |
| 10 import 'dart:async'; | |
| 11 | |
| 12 import '../lib/docs.dart'; | |
| 13 | |
| 14 main() { | |
| 15 var jsonPath = scriptDir.append('../docs.json'); | |
| 16 var libPath = scriptDir.append('../../../../sdk/').canonicalize(); | |
| 17 | |
| 18 var anyErrors = convert(libPath, jsonPath); | |
| 19 | |
| 20 print('Converted HTML docs ${anyErrors ? "with $anyErrors" : "without"} errors .'); | |
|
blois
2013/01/24 02:28:24
line length
Andrei Mouravski
2013/01/24 19:28:51
Done.
| |
| 21 } | |
| 22 | |
| 23 /** | |
| 24 * Gets the full path to the directory containing the entrypoint of the current | |
| 25 * script. | |
| 26 */ | |
| 27 Path get scriptDir => | |
| 28 new Path(new Options().script).directoryPath; | |
| OLD | NEW |