Chromium Code Reviews| 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; |