OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 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 | 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. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 /** | 5 /** |
6 * To generate docs for a library, run this script with the path to an | 6 * To generate docs for a library, run this script with the path to an |
7 * entrypoint .dart file, like: | 7 * entrypoint .dart file, like: |
8 * | 8 * |
9 * $ dart dartdoc.dart foo.dart | 9 * $ dart dartdoc.dart foo.dart |
10 * | 10 * |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 | 148 |
149 /** | 149 /** |
150 * Generates the App Cache manifest file, enabling offline doc viewing. | 150 * Generates the App Cache manifest file, enabling offline doc viewing. |
151 */ | 151 */ |
152 bool generateAppCache = false; | 152 bool generateAppCache = false; |
153 | 153 |
154 /** Path to the dartdoc directory. */ | 154 /** Path to the dartdoc directory. */ |
155 Path dartdocPath; | 155 Path dartdocPath; |
156 | 156 |
157 /** Path to generate HTML files into. */ | 157 /** Path to generate HTML files into. */ |
158 Path outputDir = const Path('docs'); | 158 Path outputDir = new Path('docs'); |
159 | 159 |
160 /** | 160 /** |
161 * The title used for the overall generated output. Set this to change it. | 161 * The title used for the overall generated output. Set this to change it. |
162 */ | 162 */ |
163 String mainTitle = 'Dart Documentation'; | 163 String mainTitle = 'Dart Documentation'; |
164 | 164 |
165 /** | 165 /** |
166 * The URL that the Dart logo links to. Defaults "index.html", the main | 166 * The URL that the Dart logo links to. Defaults "index.html", the main |
167 * page for the generated docs, but can be anything. | 167 * page for the generated docs, but can be anything. |
168 */ | 168 */ |
(...skipping 1398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1567 | 1567 |
1568 /** | 1568 /** |
1569 * Used to report an unexpected error in the DartDoc tool or the | 1569 * Used to report an unexpected error in the DartDoc tool or the |
1570 * underlying data | 1570 * underlying data |
1571 */ | 1571 */ |
1572 class InternalError { | 1572 class InternalError { |
1573 final String message; | 1573 final String message; |
1574 const InternalError(this.message); | 1574 const InternalError(this.message); |
1575 String toString() => "InternalError: '$message'"; | 1575 String toString() => "InternalError: '$message'"; |
1576 } | 1576 } |
OLD | NEW |