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

Side by Side Diff: tools/dom/docs/bin/docs.dart

Issue 13116021: Fix docs.dart, which has been sad and neglected. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 months 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | tools/dom/docs/docs.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 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 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. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 /** 5 /**
6 * This program reads the HTML libraries from [LIB_PATH] and outputs their 6 * This program reads the HTML libraries from [LIB_PATH] and outputs their
7 * documentation to [JSON_PATH]. 7 * documentation to [JSON_PATH].
8 */ 8 */
9 9
10 import 'dart:io'; 10 import 'dart:io';
11 import 'dart:async'; 11 import 'dart:async';
12 12
13 import '../lib/docs.dart'; 13 import '../lib/docs.dart';
14 14
15 final Path json_path = scriptDir.append('../docs.json').canonicalize(); 15 final Path json_path = scriptDir.append('../docs.json').canonicalize();
16 final Path lib_path = scriptDir.append('../../../../sdk/').canonicalize(); 16 final Path lib_path = scriptDir.append('../../../../sdk/').canonicalize();
17 17
18 main() { 18 main() {
19 print('Converting HTML docs from $lib_path to $json_path.'); 19 print('Converting HTML docs from $lib_path to $json_path.');
20 20
21 var anyErrors = convert(lib_path, json_path); 21 convert(lib_path, json_path)
22 22 .then((bool anyErrors) {
23 print('Converted HTML docs ${anyErrors ? "with $anyErrors" : "without"}' 23 print('Converted HTML docs ${anyErrors ? "with $anyErrors" : "without"}'
Emily Fortuna 2013/03/27 21:21:47 if anyErrors is true, then wouldn't this print out
Andrei Mouravski 2013/03/27 21:47:26 Done.
24 ' errors.'); 24 ' errors.');
25 });
25 } 26 }
26 27
27 /** 28 /**
28 * Gets the full path to the directory containing the entrypoint of the current 29 * Gets the full path to the directory containing the entrypoint of the current
29 * script. 30 * script.
30 */ 31 */
31 Path get scriptDir => 32 Path get scriptDir =>
32 new Path(new Options().script).directoryPath; 33 new Path(new Options().script).directoryPath;
OLDNEW
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | tools/dom/docs/docs.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698