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
|
|
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