Consolidate multiple push actions into one
@@ -3,24 +3,26 @@ const stdout = process.stdout;
let lines = [];
function writeHeader() {
- lines.push(`+++`);
- lines.push(`title = "Service Template Data"`);
- lines.push(`date = ` + new Date().toISOString());
- lines.push(`draft = false`);
- lines.push(``);
- lines.push(`[menu]`);
- lines.push(` [menu.habitat]`);
- lines.push(` title = "Service Template Data"`);
- lines.push(` identifier = "habitat/reference/service_templates Service Template Data"`);
- lines.push(` parent = "habitat/reference"`);
- lines.push(`+++`);
- lines.push(``);
- lines.push(`<!-- This is a generated file, do not edit it directly. See https://github.com/habitat-sh/habitat/blob/master/.expeditor/scripts/finish_release/generate-template-reference.js -->`)
- lines.push('');
- lines.push(`The following settings can be used during a Chef Habitat service's lifecycle. This means that you can use these settings in any of the plan hooks, such as \`init\`, or \`run\`, and also in any templatized configuration file for your application or service.`)
- lines.push('');
- lines.push(`These configuration settings are referenced using the [Handlebars.js](https://github.com/wycats/handlebars.js/) version of [Mustache-style](https://mustache.github.io/mustache.5.html) tags.`)
- lines.push('');
+ lines.push(`+++
+title = "Service Template Data"
+
+date = ${new Date().toISOString()}
+draft = false
+
+[menu]
+ [menu.habitat]
+ title = "Service Template Data"
+ identifier = "habitat/reference/service_templates Service Template Data"
+ parent = "habitat/reference"
++++
+
+<!-- This is a generated file, do not edit it directly. See https://github.com/habitat-sh/habitat/blob/master/.expeditor/scripts/finish_release/generate-template-reference.js -->
+
+The following settings can be used during a Chef Habitat service's lifecycle. This means that you can use these settings in any of the plan hooks, such as \`init\`, or \`run\`, and also in any templatized configuration file for your application or service.
+
+These configuration settings are referenced using the [Handlebars.js](https://github.com/wycats/handlebars.js/) version of [Mustache-style](https://mustache.github.io/mustache.5.html) tags.
+
+`);
}
function writeDefinitions() {
