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

Unified Diff: utils/apidoc/apidoc.dart

Issue 12217077: Generate separate json files for each library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: PTAL Created 7 years, 10 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
diff --git a/utils/apidoc/apidoc.dart b/utils/apidoc/apidoc.dart
index 36ef96bdbe7d493c7c108919a49cea1d21ead90b..7cd8b7f92c300965378e97b112d324acbc2ce352 100644
--- a/utils/apidoc/apidoc.dart
+++ b/utils/apidoc/apidoc.dart
@@ -36,7 +36,7 @@ void main() {
List<String> excludedLibraries = <String>[];
List<String> includedLibraries = <String>[];
var pkgPath;
-
+ String version;
// Parse the command-line arguments.
for (int i = 0; i < args.length; i++) {
@@ -63,7 +63,9 @@ void main() {
} else if (arg.startsWith('--out=')) {
outputDir = new Path(arg.substring('--out='.length));
} else if (arg.startsWith('--pkg=')) {
- pkgPath = new Path(arg.substring('--pkg='.length));
+ pkgPath = arg.substring('--pkg='.length);
+ } else if (arg.startsWith('--version=')) {
+ version = arg.substring('--version='.length);
} else {
print('Unknown option: $arg');
return;
@@ -131,7 +133,7 @@ void main() {
lister.onDone = (success) {
print('Generating docs...');
final apidoc = new Apidoc(mdn, outputDir, mode, generateAppCache,
- excludedLibraries);
+ excludedLibraries, version);
apidoc.dartdocPath =
doc.scriptDir.append('../../sdk/lib/_internal/dartdoc/');
// Select the libraries to include in the produced documentation:
@@ -169,11 +171,11 @@ class Apidoc extends doc.Dartdoc {
String mdnUrl = null;
Apidoc(this.mdn, Path outputDir, int mode,
- bool generateAppCache, [excludedLibraries]) {
+ bool generateAppCache, [excludedLibraries, String version]) {
if (?excludedLibraries) {
this.excludedLibraries = excludedLibraries;
}
-
+ this.version = version;
this.outputDir = outputDir;
this.mode = mode;
this.generateAppCache = generateAppCache;

Powered by Google App Engine
This is Rietveld 408576698