@@ -4,7 +4,8 @@ var reader = require('reader.js'),
4
4
ngdoc = require ( 'ngdoc.js' ) ,
5
5
writer = require ( 'writer.js' ) ,
6
6
callback = require ( 'callback.js' ) ,
7
- SiteMap = require ( 'SiteMap.js' ) . SiteMap ;
7
+ SiteMap = require ( 'SiteMap.js' ) . SiteMap ,
8
+ appCache = require ( 'appCache.js' ) ;
8
9
9
10
var docs = [ ] ;
10
11
var start ;
@@ -31,9 +32,9 @@ var writes = callback.chain(function(){
31
32
writer . copy ( 'docs/src/templates/index.html' , 'build/docs/index-jq.html' , writes . waitFor ( ) ,
32
33
'<-- jquery place holder -->' , '<script src=\"jquery.min.js\"><\/script>' ) ;
33
34
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());
37
38
writer . merge ( [ 'docs.js' ,
38
39
'doc_widgets.js' ] ,
39
40
'docs-combined.js' ,
@@ -56,6 +57,7 @@ var writes = callback.chain(function(){
56
57
'syntaxhighlighter/syntaxhighlighter-combined.css' ,
57
58
writes . waitFor ( ) ) ;
58
59
writer . copyTpl ( 'jquery.min.js' , writes . waitFor ( ) ) ;
60
+ writer . output ( 'app-cache.manifest' , appCache ( 'build/docs/' ) , writes . waitFor ( ) ) ;
59
61
} ) ;
60
62
writes . onDone ( function ( ) {
61
63
console . log ( 'DONE. Generated ' + docs . length + ' pages in ' +
@@ -80,8 +82,6 @@ function appCacheTemplate() {
80
82
"docs-keywords.js" ,
81
83
"docs-combined.css" ,
82
84
"syntaxhighlighter/syntaxhighlighter-combined.css" ,
83
- "img/texture_1.png" ,
84
- "img/yellow_bkgnd.jpg" ,
85
85
"" ,
86
86
"FALLBACK:" ,
87
87
"/ offline.html" ,
0 commit comments