@@ -4,7 +4,8 @@ var reader = require('reader.js'),
44 ngdoc = require ( 'ngdoc.js' ) ,
55 writer = require ( 'writer.js' ) ,
66 callback = require ( 'callback.js' ) ,
7- SiteMap = require ( 'SiteMap.js' ) . SiteMap ;
7+ SiteMap = require ( 'SiteMap.js' ) . SiteMap ,
8+ appCache = require ( 'appCache.js' ) ;
89
910var docs = [ ] ;
1011var start ;
@@ -31,9 +32,9 @@ var writes = callback.chain(function(){
3132 writer . copy ( 'docs/src/templates/index.html' , 'build/docs/index-jq.html' , writes . waitFor ( ) ,
3233 '<-- jquery place holder -->' , '<script src=\"jquery.min.js\"><\/script>' ) ;
3334 writer . copyTpl ( 'offline.html' , writes . waitFor ( ) ) ;
34- writer . output ( 'app-cache.manifest' ,
35- appCacheTemplate ( ) . replace ( / % T I M E S T A M P % / , ( new Date ( ) ) . toISOString ( ) ) ,
36- writes . waitFor ( ) ) ;
35+ // writer.output('app-cache.manifest',
36+ // appCacheTemplate().replace(/%TIMESTAMP%/, (new Date()).toISOString()),
37+ // writes.waitFor());
3738 writer . merge ( [ 'docs.js' ,
3839 'doc_widgets.js' ] ,
3940 'docs-combined.js' ,
@@ -56,6 +57,7 @@ var writes = callback.chain(function(){
5657 'syntaxhighlighter/syntaxhighlighter-combined.css' ,
5758 writes . waitFor ( ) ) ;
5859 writer . copyTpl ( 'jquery.min.js' , writes . waitFor ( ) ) ;
60+ writer . output ( 'app-cache.manifest' , appCache ( 'build/docs/' ) , writes . waitFor ( ) ) ;
5961} ) ;
6062writes . onDone ( function ( ) {
6163 console . log ( 'DONE. Generated ' + docs . length + ' pages in ' +
@@ -80,8 +82,6 @@ function appCacheTemplate() {
8082 "docs-keywords.js" ,
8183 "docs-combined.css" ,
8284 "syntaxhighlighter/syntaxhighlighter-combined.css" ,
83- "img/texture_1.png" ,
84- "img/yellow_bkgnd.jpg" ,
8585 "" ,
8686 "FALLBACK:" ,
8787 "/ offline.html" ,
0 commit comments