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

Unified Diff: utils/apidoc/apidoc.dart

Issue 11358024: Changes outside pkg/ and lib/ for directory refactoring (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: utils/apidoc/apidoc.dart
===================================================================
--- utils/apidoc/apidoc.dart (revision 14364)
+++ utils/apidoc/apidoc.dart (working copy)
@@ -12,17 +12,16 @@
*
* $ dart apidoc.dart [--out=<output directory>]
*/
+library apidoc;
-#library('apidoc');
-
-#import('dart:io');
-#import('dart:json');
-#import('html_diff.dart');
+import 'dart:io';
+import 'dart:json';
+import 'html_diff.dart';
// TODO(rnystrom): Use "package:" URL (#4968).
-#import('../../pkg/dartdoc/lib/mirrors.dart');
-#import('../../pkg/dartdoc/lib/mirrors_util.dart');
-#import('../../pkg/dartdoc/lib/dartdoc.dart', prefix: 'doc');
-#import('../../lib/_internal/libraries.dart');
+import '../../sdk/lib/_internal/dartdoc/lib/mirrors.dart';
+import '../../sdk/lib/_internal/dartdoc/lib/mirrors_util.dart';
+import '../../sdk/lib/_internal/dartdoc/lib/dartdoc.dart' as doc;
+import '../../sdk/lib/_internal/libraries.dart';
HtmlDiff _diff;
@@ -65,14 +64,14 @@
}
}
- final libPath = doc.scriptDir.append('../../');
+ final libPath = doc.scriptDir.append('../../sdk/lib');
final pkgPath = doc.scriptDir.append('../../pkg/');
doc.cleanOutputDirectory(outputDir);
// The basic dartdoc-provided static content.
final copiedStatic = doc.copyDirectory(
- doc.scriptDir.append('../../pkg/dartdoc/static'),
+ doc.scriptDir.append('../../sdk/lib/_internal/dartdoc/static'),
outputDir);
// The apidoc-specific static content.
@@ -94,7 +93,7 @@
final htmldoc = new Htmldoc();
htmldoc.includeApi = true;
htmldoc.documentLibraries(
- <Path>[doc.scriptDir.append('../../lib/html/doc/html.dartdoc')],
+ <Path>[doc.scriptDir.append('../../sdk/lib/html/doc/html.dartdoc')],
libPath, pkgPath);
// Process libraries.
@@ -136,7 +135,8 @@
print('Generating docs...');
final apidoc = new Apidoc(mdn, htmldoc, outputDir, mode, generateAppCache,
excludedLibraries);
- apidoc.dartdocPath = doc.scriptDir.append('../../pkg/dartdoc/');
+ apidoc.dartdocPath =
+ doc.scriptDir.append('../../sdk/lib/_internal/dartdoc/');
// Select the libraries to include in the produced documentation:
apidoc.includeApi = true;
apidoc.includedLibraries = includedLibraries;
« tools/create_sdk.py ('K') | « tools/create_sdk.py ('k') | utils/apidoc/apidoc.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698