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

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: ready to review 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..e0179be52da8927e2691fc0aebcfd7d3fd939e1a 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:
@@ -167,13 +169,12 @@ class Apidoc extends doc.Dartdoc {
* content.
*/
String mdnUrl = null;
-
Apidoc(this.mdn, Path outputDir, int mode,
Andrei Mouravski 2013/02/08 23:36:31 Put the newline back in.
Jacob 2013/02/09 02:37:28 Done.
- 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;
« tools/list_version.py ('K') | « tools/list_version.py ('k') | utils/apidoc/apidoc.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698