From bb19588676564a418aef9ba435ac5c09a981310f Mon Sep 17 00:00:00 2001 From: Jay Traband Date: Fri, 2 Oct 2015 09:57:15 -0700 Subject: [PATCH] insure that the api docs appear under both public/docs/JS/latest and public/docs/TS/latest --- .gitignore | 1 + gulpfile.js | 5 ++++- public/docs/ts/latest/_util-fns.jade | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 public/docs/ts/latest/_util-fns.jade diff --git a/.gitignore b/.gitignore index d9ac58cf5a..c7f1ae756b 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,7 @@ typings .DS_Store .idea **/js/latest/api +**/ts/latest/api **/docs/_fragments public/docs/xref-*.* diff --git a/gulpfile.js b/gulpfile.js index 1e6b6e24ad..19204b08f5 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -236,7 +236,10 @@ function apiSourceWatch(postShredAction) { function buildApiDocs() { try { var dgeni = new Dgeni([require('./public/api-builder/angular.io-package')]); - return dgeni.generate(); + return dgeni.generate().then(function() { + return gulp.src('./public/docs/js/latest/api/**/*.*') + .pipe(gulp.dest('./public/docs/ts/latest/api')); + }) } catch(err) { console.log(err); console.log(err.stack); diff --git a/public/docs/ts/latest/_util-fns.jade b/public/docs/ts/latest/_util-fns.jade new file mode 100644 index 0000000000..63d13cdd4d --- /dev/null +++ b/public/docs/ts/latest/_util-fns.jade @@ -0,0 +1 @@ +include ../../../_includes/_util-fns \ No newline at end of file