vuepress-plugin-typedoc
Advanced tools
Comparing version 0.8.0 to 0.8.1
@@ -62,3 +62,3 @@ "use strict"; | ||
const sidebarJson = JSON.stringify({ | ||
[`/${options.out}/`]: sidebar_1.getSidebarJson(navigation, options), | ||
[`/${path.relative(process.cwd(), options.out)}/`]: sidebar_1.getSidebarJson(navigation, options), | ||
}); | ||
@@ -65,0 +65,0 @@ return { |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getSidebarJson = void 0; | ||
const path = __importStar(require("path")); | ||
const getSidebarJson = (navigation, options) => { | ||
@@ -24,6 +44,7 @@ var _a, _b; | ||
else { | ||
const outDir = path.relative(process.cwd(), options.out); | ||
navJson.push([ | ||
getUrlKey(navigationItem.url) === 'README' | ||
? `/${options.out}/` | ||
: `/${options.out}/modules`, | ||
? `/${outDir}/` | ||
: `/${outDir}/modules`, | ||
navigationItem.title, | ||
@@ -30,0 +51,0 @@ ]); |
{ | ||
"name": "vuepress-plugin-typedoc", | ||
"version": "0.8.0", | ||
"version": "0.8.1", | ||
"description": "A VuePress plugin to build api documentation with TypeDoc.", | ||
@@ -42,3 +42,3 @@ "main": "dist/index.js", | ||
], | ||
"gitHead": "ca0c3288ea64fdcf5725048d4b90f3b27419dad8" | ||
"gitHead": "00def4d305d64b7878d90dd08ccae056d7dd91bf" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
407
21565
19