code: function () { // eslint-disable-line object-shorthand
  			const self = this;
  			const outputPath = helper.getOutput();
  
  			// Render template.
  			const rawContent = helper.renderTemp({summary: helper.summary});
  
  			// Create output dir.
  			mkdirp.sync(path.parse(outputPath).dir);
  
  			// Compile rendered main file
  			return helper.pandocCompile(rawContent)
  				.then((compiledContent) => {
  					// Write file to output dir.
  					fs.writeFileSync(outputPath, compiledContent);
  
  					// Log action.
  					self.log.info.ln('plugin-build(output):', helper.config.output);
  				});
  		}
docs: Gitbook hook on finishing.
  @memberOf module:index~hooks
  @returns {Promise}