diff --git a/public/doc-shredder/doc-shredder.js b/public/doc-shredder/doc-shredder.js index 2eb1d5abe2..9934641cad 100644 --- a/public/doc-shredder/doc-shredder.js +++ b/public/doc-shredder/doc-shredder.js @@ -75,7 +75,7 @@ function createShredPackage(shredOptions) { readFilesProcessor.basePath = "/"; // Specify collections of source files that should contain the documentation to extract - var extns = ['*.js', '*.html', '*.ts', '*.css', '*.json' ]; + var extns = ['*.js', '*.html', '*.ts', '*.css', '*.json', '*.dart', '*.yaml' ]; var includeFiles = extns.map(function(extn) { if (options.includeSubdirs) { return path.join(options.examplesDir, '**', extn); diff --git a/public/doc-shredder/fileShredder.js b/public/doc-shredder/fileShredder.js index b0d5b65072..a32429c051 100644 --- a/public/doc-shredder/fileShredder.js +++ b/public/doc-shredder/fileShredder.js @@ -11,6 +11,7 @@ module.exports = function fileShredder(log, regionExtractor) { switch (fileInfo.extension) { case 'ts': case 'js': + case 'dart': commentMarkers = ['//']; break; case 'html': @@ -21,6 +22,9 @@ module.exports = function fileShredder(log, regionExtractor) { break; case 'json': break; + case 'yaml': + commentMarkers = ['#']; + break; default: return []; } diff --git a/public/docs/_examples/styleguide/foo.dart b/public/docs/_examples/styleguide/foo.dart new file mode 100644 index 0000000000..aeea7eb657 --- /dev/null +++ b/public/docs/_examples/styleguide/foo.dart @@ -0,0 +1,17 @@ +library angular2.src.core.application_static; + +// #docregion import +import 'dart:async'; +import 'application_common.dart'; +import 'package:angular2/src/core/linker/dynamic_component_loader.dart' show ComponentRef; +// #enddocregion import +/// Starts an application from a root component. +/// +/// See [commonBootstrap] for detailed documentation. +Future bootstrapStatic(Type appComponentType, + [List componentInjectableBindings, void initReflector()]) { + if (initReflector != null) { + initReflector(); + } + return commonBootstrap(appComponentType, componentInjectableBindings); +} diff --git a/public/docs/_examples/styleguide/foo.yaml b/public/docs/_examples/styleguide/foo.yaml new file mode 100644 index 0000000000..37f8b7ab22 --- /dev/null +++ b/public/docs/_examples/styleguide/foo.yaml @@ -0,0 +1,21 @@ +name: benchpress +version: <%= packageJson.version %> +authors: +<%= Object.keys(packageJson.contributors).map(function(name) { + return '- '+name+' <'+packageJson.contributors[name]+'>'; +}).join('\n') %> +description: Benchpress - a framework for e2e performance tests +homepage: <%= packageJson.homepage %> +environment: + sdk: '>=1.10.0 <2.0.0' +# #docregion dependencies +dependencies: + angular2: '^<%= packageJson.version %>' + stack_trace: '^1.1.1' + webdriver: '^0.9.0' +dev_dependencies: + guinness: '^0.1.17' +dependency_overrides: + angular2: + path: ../angular2 +# #enddocregion