@qubit-ltd/jsdoc-theme 1.3.3 → 1.3.4
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 +0 -1
- package/package.json +1 -1
- package/publish.js +3 -17
- package/static/scripts/core.js +0 -1
- package/static/scripts/search.js +0 -2
package/helpers/i18n.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qubit-ltd/jsdoc-theme",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.4",
|
|
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
|
-
|
|
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
|
package/static/scripts/core.js
CHANGED
package/static/scripts/search.js
CHANGED
|
@@ -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
|
}
|