hdoc-tools 0.9.48 → 0.9.50

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
@@ -9,34 +9,34 @@
9
9
  // Configure prompt module preferences
10
10
  prompt.message = false;
11
11
  const promptProps = [{
12
- name: 'id',
13
- description: 'Document ID',
14
- validator: /^[a-z][a-z0-9-]+[a-z0-9]$/,
15
- warning: 'Document ID must only contain lower case letters, decimal digits and dashes.',
16
- required: true
17
- },
18
- {
19
- name: 'title',
20
- description: 'Title',
21
- required: true
22
- },
23
- {
24
- name: 'description',
25
- description: 'Description',
26
- required: true
27
- },
28
- {
29
- name: 'version',
30
- description: 'Initial Version',
31
- validator: /^[0-9]{1,3}[.][0-9]{1,3}[.][0-9]{1,3}$/,
32
- warning: 'Version must formatted using semantic versioning - major.minor.patch, eg: 0.1.2',
33
- required: true
34
- },
35
- {
36
- name: 'author',
37
- description: 'Package Author',
38
- required: true
39
- }
12
+ name: 'id',
13
+ description: 'Document ID',
14
+ validator: /^[a-z][a-z0-9-]+[a-z0-9]$/,
15
+ warning: 'Document ID must only contain lower case letters, decimal digits and dashes.',
16
+ required: true
17
+ },
18
+ {
19
+ name: 'title',
20
+ description: 'Title',
21
+ required: true
22
+ },
23
+ {
24
+ name: 'description',
25
+ description: 'Description',
26
+ required: true
27
+ },
28
+ {
29
+ name: 'version',
30
+ description: 'Initial Version',
31
+ validator: /^[0-9]{1,3}[.][0-9]{1,3}[.][0-9]{1,3}$/,
32
+ warning: 'Version must formatted using semantic versioning - major.minor.patch, eg: 0.1.2',
33
+ required: true
34
+ },
35
+ {
36
+ name: 'author',
37
+ description: 'Package Author',
38
+ required: true
39
+ }
40
40
  ];
41
41
 
42
42
  const createBook = function (server_path, source_path, docProps) {
@@ -108,6 +108,11 @@
108
108
  console.log('Updated:', packageFilePath);
109
109
  });
110
110
 
111
+ // Rename gitignore to .gitignore
112
+ const gitignorePath = path.join(source_path, 'gitignore');
113
+ const newGitignorePath = path.join(source_path, '.gitignore');
114
+ fs.renameSync(gitignorePath, newGitignorePath);
115
+
111
116
  } else {
112
117
  console.error('Template path does not exist:', templatePath);
113
118
  process.exit(1);
@@ -123,8 +128,8 @@
123
128
  // those files into place, with a few variable replacements.
124
129
 
125
130
  console.log('Hornbill HDocBook Init', '\r\n');
126
-
127
- const curr_dirs = source_path.split(path.sep);
131
+
132
+ const curr_dirs = source_path.split(path.sep);
128
133
  let doc_id = curr_dirs[curr_dirs.length - 1];
129
134
 
130
135
  prompt.start();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hdoc-tools",
3
- "version": "0.9.48",
3
+ "version": "0.9.50",
4
4
  "description": "Hornbill HDocBook Development Support Tool",
5
5
  "main": "hdoc.js",
6
6
  "bin": {
@@ -23,7 +23,7 @@
23
23
  "ui",
24
24
  "custom_modules",
25
25
  "templates",
26
- "templates/init/.gitignore"
26
+ "templates/init/.npmignore"
27
27
  ],
28
28
  "scripts": {
29
29
  "preinstall": "node validateNodeVer",
@@ -208,6 +208,7 @@
208
208
 
209
209
  /* theme switcher */
210
210
  .theme-switch {
211
+ margin-top:60%;
211
212
  position:relative;
212
213
  display: inline-block;
213
214
  width: 30px;
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2022 Hornbill Docs
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
File without changes