hdoc-tools 0.19.2 → 0.19.5

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-build.js CHANGED
@@ -39,6 +39,7 @@
39
39
  "pdf-header-non-git.html"
40
40
  ),
41
41
  pdf_template_path = path.join(__dirname, "templates", "pdf"),
42
+ ui_css_path = path.join(__dirname, "ui", "css"),
42
43
  pdf_template_file_path = path.join(pdf_template_path, "template.html"),
43
44
  regex_version = /^[0-9]{1,3}[.][0-9]{1,3}[.][0-9]{1,6}$/,
44
45
  h1_pattern = /(<h1.*?>)\s*.*\s*(.*<\/h1>)/,
@@ -1192,6 +1193,7 @@
1192
1193
  path.join(pdf_template_path, "css", "custom-block.css"),
1193
1194
  path.join(pdf_template_path, "css", "hdocs-pdf.css"),
1194
1195
  path.join(pdf_template_path, "css", "vars.css"),
1196
+ path.join(ui_css_path, 'theme-default', 'styles', 'components', 'api-doc.css')
1195
1197
  ];
1196
1198
  for (let i = 0; i < css_files.length; i++) {
1197
1199
  try {
package/hdoc-db.js CHANGED
@@ -66,13 +66,13 @@
66
66
  sections: []
67
67
  };
68
68
 
69
- const divs = hdoc.getIDDivs(html_txt);
69
+ //const divs = hdoc.getIDDivs(html_txt);
70
70
 
71
71
  // Get frontmatter properties
72
72
  const fm_headers = hdoc.getHTMLFrontmatterHeader(html_txt);
73
73
  response.fm_props = fm_headers.fm_properties;
74
74
 
75
- if (divs.length > 0) {
75
+ /*if (divs.length > 0) {
76
76
  divs.forEach(div => {
77
77
  // Convert HTML into plain text
78
78
  let text = response.text = html2text.convert(div.html, {
@@ -96,7 +96,7 @@
96
96
  preview: preview
97
97
  })
98
98
  });
99
- } else {
99
+ } else { */
100
100
  // Convert HTML into plain text
101
101
  let text = response.text = html2text.convert(html_txt, {
102
102
  ignoreHref: true,
@@ -117,7 +117,7 @@
117
117
  text: text,
118
118
  preview: preview
119
119
  })
120
- }
120
+ //}
121
121
  return response;
122
122
  };
123
123
 
package/hdoc-serve.js CHANGED
@@ -131,6 +131,7 @@
131
131
  linkify: true,
132
132
  typographer: true
133
133
  });
134
+
134
135
  md.linkify.set({
135
136
  fuzzyEmail: false,
136
137
  fuzzyLink: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hdoc-tools",
3
- "version": "0.19.2",
3
+ "version": "0.19.5",
4
4
  "description": "Hornbill HDocBook Development Support Tool",
5
5
  "main": "hdoc.js",
6
6
  "bin": {