From 912f548343bc5d68ab96b1714f5c2274fd6f53f1 Mon Sep 17 00:00:00 2001 From: Jeff Williams Date: Sun, 4 Aug 2013 23:46:21 -0700 Subject: [PATCH] make the default template generate pretty-printed source files by default (#454) --- templates/default/publish.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/default/publish.js b/templates/default/publish.js index 7f1a6d2b..092514f4 100644 --- a/templates/default/publish.js +++ b/templates/default/publish.js @@ -483,9 +483,9 @@ exports.publish = function(taffyData, opts, tutorials) { attachModuleSymbols( find({ kind: ['class', 'function'], longname: {left: 'module:'} }), members.modules ); - // only output pretty-printed source files if requested; do this before generating any other - // pages, so the other pages can link to the source files - if (conf['default'].outputSourceFiles) { + // output pretty-printed source files by default; do this before generating any other pages, so + // that the other pages can link to the source files + if (!conf['default'] || conf['default'].outputSourceFiles !== false) { generateSourceFiles(sourceFiles); }