@@ -12,7 +12,7 @@ var conf = global.conf = { extension: ".html" };
12
12
Link . ext = conf . extension ;
13
13
var destination , template , symbols , encoding , VERSION , copyright ;
14
14
exports . publish = function publish ( symbolSet , options ) {
15
- destination = options . destination . join ( "jsdoc" ) ;
15
+ destination = options . destination ;
16
16
// TODO: fix link module properly
17
17
template = Link . template = options . template ;
18
18
encoding = options . encoding ;
@@ -102,24 +102,13 @@ exports.publish = function publish(symbolSet, options) {
102
102
global . conf . classesIndex = classesTemplate . process ( classes ) ;
103
103
104
104
// create the class index page
105
- try {
106
- var classesindexTemplate = new JsPlate ( template . join ( "index.tmpl" ) . read ( ) . toString ( ) , "index.tmpl" ) ;
107
- } catch ( e ) {
108
- console . error ( e . message ) ;
109
- OS . exit ( )
110
- }
111
-
105
+ var classesindexTemplate = new JsPlate ( template . join ( "index.tmpl" ) . read ( ) . toString ( ) , "index.tmpl" ) ;
112
106
var classesIndex = classesindexTemplate . process ( classes ) ;
113
107
destination . join ( "index" + conf . extension ) . write ( classesIndex ) ;
114
108
classesindexTemplate = classesIndex = classes = null ;
115
109
116
110
// create the file index page
117
- try {
118
- var fileindexTemplate = new JsPlate ( template . join ( "allfiles.tmpl" ) . read ( ) . toString ( ) , "allfiles.tmpl" ) ;
119
- } catch ( e ) {
120
- console . error ( e . message ) ;
121
- OS . exit ( )
122
- }
111
+ var fileindexTemplate = new JsPlate ( template . join ( "allfiles.tmpl" ) . read ( ) . toString ( ) , "allfiles.tmpl" ) ;
123
112
124
113
var documentedFiles = symbols . filter ( isaFile ) ; // files that have file-level docs
125
114
var allFiles = [ ] ; // not all files have file-level docs, but we need to list every one
0 commit comments