@qubit-ltd/jsdoc-theme 1.3.3 → 1.3.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/helpers/i18n.js CHANGED
@@ -32,7 +32,6 @@ function loadTranslations(language) {
32
32
  error.message
33
33
  );
34
34
  }
35
-
36
35
  return false;
37
36
  }
38
37
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qubit-ltd/jsdoc-theme",
3
- "version": "1.3.3",
3
+ "version": "1.3.5",
4
4
  "description": "A customized JSDoc theme based on clean-jsdoc-theme, enhanced with properties table and constructor detection features for Qubit projects.",
5
5
  "main": "publish.js",
6
6
  "author": "Haixing Hu (starfish.hu@gmail.com)",
package/publish.js CHANGED
@@ -1,5 +1,3 @@
1
- console.log("🔥🔥🔥 PUBLISH.JS IS BEING CALLED! 🔥🔥🔥");
2
-
3
1
  const _ = require("lodash");
4
2
  const env = require("jsdoc/env");
5
3
  const fs = require("fs-extra");
@@ -333,12 +331,6 @@ async function generate(title, docs, filename, resolveLinks, packageInfo) {
333
331
  };
334
332
 
335
333
  outpath = path.join(outdir, filename);
336
- console.log("🚀🚀🚀 ABOUT TO RENDER CONTAINER.TMPL for:", filename, "🚀🚀🚀");
337
- console.log(
338
- "🔍 docData.docs[0].kind:",
339
- docData.docs && docData.docs[0] ? docData.docs[0].kind : "NO DOCS"
340
- );
341
- console.log("🔍 packageInfo:", JSON.stringify(docData.packageInfo));
342
334
  html = view.render("container.tmpl", docData);
343
335
 
344
336
  if (resolveLinks !== false) {
@@ -770,9 +762,9 @@ exports.publish = async function (taffyData, opts, tutorials) {
770
762
 
771
763
  // update outdir if necessary, then create outdir
772
764
  packageInfo = (find({ kind: "package" }) || [])[0];
773
- if (packageInfo && packageInfo.name) {
774
- outdir = path.join(outdir, packageInfo.name, packageInfo.version || "");
775
- }
765
+ // if (packageInfo && packageInfo.name) {
766
+ // outdir = path.join(outdir, packageInfo.name, packageInfo.version || "");
767
+ // }
776
768
  mkdirSync(outdir);
777
769
 
778
770
  // copy external static folders
@@ -945,12 +937,6 @@ exports.publish = async function (taffyData, opts, tutorials) {
945
937
  const homepageTitle = themeOpts.homepageTitle || "Home";
946
938
  const includeFilesListInHomepage =
947
939
  themeOpts.includeFilesListInHomepage || false;
948
-
949
- console.log("🏠🏠🏠 GENERATING INDEX PAGE 🏠🏠🏠");
950
- console.log("🏠 indexUrl:", indexUrl);
951
- console.log("🏠 packages:", packages.length);
952
- console.log("🏠 packageInfo for index:", JSON.stringify(packageInfo));
953
-
954
940
  await generate(
955
941
  homepageTitle,
956
942
  packages
@@ -625,7 +625,6 @@ function highlightActiveLinkInSidebar() {
625
625
  );
626
626
  } catch (e) {
627
627
  console.error(e);
628
-
629
628
  return;
630
629
  }
631
630
  }
@@ -187,7 +187,6 @@ async function search(event) {
187
187
 
188
188
  if (!resultBox) {
189
189
  console.error("Search result container not found");
190
-
191
190
  return;
192
191
  }
193
192
 
@@ -206,7 +205,6 @@ async function search(event) {
206
205
  } catch (e) {
207
206
  console.log(e);
208
207
  showResultText("Failed to load result.");
209
-
210
208
  return;
211
209
  }
212
210
  }
@@ -10,11 +10,6 @@
10
10
  isGlobalPage = (doc.kind === 'globalobj');
11
11
  }
12
12
  ?>
13
- <div style="background: yellow; padding: 10px; margin: 10px; border: 1px solid red;">
14
- DEBUG: doc.kind = <?js= doc.kind ?><br>
15
- DEBUG: packageInfo = <?js= JSON.stringify(packageInfo) ?><br>
16
- DEBUG: typeof packageInfo = <?js= typeof packageInfo ?>
17
- </div>
18
13
  <?js if (doc.kind === 'mainpage' || (doc.kind === 'package')) { ?>
19
14
  <?js if (packageInfo && packageInfo.version) { ?>
20
15
  <div class="package-version-info">