hdoc-tools 0.6.7 → 0.6.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/hdoc-init.js CHANGED
@@ -97,12 +97,18 @@
97
97
  hdocbookFile.title = docProps.title;
98
98
  hdocbookFile.description = docProps.description;
99
99
  hdocbookFile.version = docProps.version;
100
+ hdocbookFile.navigation.items[0].items = [
101
+ {
102
+ "text": "Welcome",
103
+ "link": path.join(docProps.id, 'index')
104
+ }
105
+ ];
100
106
  fs.writeFile(hdocBookFilePath, JSON.stringify(hdocbookFile, null, 2), function writeJSON(err) {
101
107
  if (err) return console.log('Error updating:',hdocBookFilePath, '\r\n', err);
102
108
  console.log('Updated:', hdocBookFilePath);
103
109
  });
104
110
 
105
- // Update hdocbook-project.json
111
+ // Update package.json
106
112
  const packageFilePath = path.join(bookPath, 'package.json');
107
113
  const packageFile = require(packageFilePath);
108
114
  packageFile.name = docProps.id;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hdoc-tools",
3
- "version": "0.6.7",
3
+ "version": "0.6.8",
4
4
  "description": "Hornbill HDocBook Development Support Tool",
5
5
  "main": "hdoc.js",
6
6
  "bin": {
@@ -7,7 +7,7 @@
7
7
  "navigation": {
8
8
  "items": [
9
9
  {
10
- "text": "Welcome",
10
+ "text": "Introduction",
11
11
  "expand": true
12
12
  }
13
13
  ]