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

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

Issue 12035057: First half of the new HTML json docs. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Added documentation in the right places. Created 7 years, 11 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
OLDNEW
(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 * This program reads the HTML libraries from [LIB_PATH] and outputs their
7 * documentation to [JSON_PATH].
8 */
9
10 import 'dart:io';
11 import 'dart:async';
12
13 import '../lib/docs.dart';
14
15 final Path JSON_PATH = scriptDir.append('../docs.json').canonicalize();
blois 2013/01/24 02:28:24 This seems odd- these are masquerading as consts,
Andrei Mouravski 2013/01/24 19:28:51 Done.
16 final Path LIB_PATH = scriptDir.append('../../../../sdk/').canonicalize();
17
18 main() {
19 print('Converting HTML docs from $LIB_PATH to $JSON_PATH.');
20
21 var anyErrors = convert(LIB_PATH, JSON_PATH);
22
23 print('Converted HTML docs ${anyErrors ? "with $anyErrors" : "without"} errors .');
Johnni Winther 2013/01/24 09:10:09 Long line.
Andrei Mouravski 2013/01/24 19:28:51 Done.
24 }
25
26 /**
27 * Gets the full path to the directory containing the entrypoint of the current
28 * script.
29 */
30 Path get scriptDir =>
31 new Path(new Options().script).directoryPath;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698