New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

typedoc-gitlab-wiki-theme

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

typedoc-gitlab-wiki-theme - npm Package Compare versions

Comparing version 2.0.0-next.4 to 2.0.0-next.5

dist/options/option-types.d.ts

21

dist/index.js

@@ -75,9 +75,8 @@ "use strict";

navigationItems.forEach((navigationItem) => {
var _a, _b;
if (navigationItem.url) {
md.push(`- [${navigationItem.title}](${navigationItem.url})`);
}
if ((_a = navigationItem.children) === null || _a === void 0 ? void 0 : _a.length) {
if (navigationItem.children?.length) {
md.push(`## ${navigationItem.title} \n`);
(_b = navigationItem.children) === null || _b === void 0 ? void 0 : _b.forEach((navItem) => {
navigationItem.children?.forEach((navItem) => {
md.push(`- [${navItem.title}](${navItem.url})`);

@@ -94,9 +93,10 @@ });

const md = [];
const isGlobals = navigationItems === null || navigationItems === void 0 ? void 0 : navigationItems.every((child) => !Boolean(child.url));
const isGlobals = navigationItems?.every((child) => !Boolean(child.url));
if (isGlobals) {
navigationItems.forEach((navigationItem) => {
var _a;
md.push(`### ${navigationItem.title}`);
if (navigationItem.children) {
const childList = (_a = navigationItem.children) === null || _a === void 0 ? void 0 : _a.map((child) => `- [${child.title}](${parseUrl(child.url || '')})`).join('\n');
const childList = navigationItem.children
?.map((child) => `- [${child.title}](${parseUrl(child.url || '')})`)
.join('\n');
md.push(childList);

@@ -112,6 +112,7 @@ }

navigationItem.children.forEach((child) => {
var _a;
md.push(`#### ${child.title}`);
if (child.children) {
const childList = (_a = child.children) === null || _a === void 0 ? void 0 : _a.map((innerChild) => `- [${innerChild.title}](${innerChild.url ? parseUrl(innerChild.url) : ''})`).join('\n');
const childList = child.children
?.map((innerChild) => `- [${innerChild.title}](${innerChild.url ? parseUrl(innerChild.url) : ''})`)
.join('\n');
md.push(childList);

@@ -124,3 +125,5 @@ }

else {
const childList = navigationItems === null || navigationItems === void 0 ? void 0 : navigationItems.map((navItem) => `- [${navItem.title}](${navItem.url ? parseUrl(navItem.url) : ''})`).join('\n');
const childList = navigationItems
?.map((navItem) => `- [${navItem.title}](${navItem.url ? parseUrl(navItem.url) : ''})`)
.join('\n');
md.push(childList);

@@ -127,0 +130,0 @@ }

declare const _default: {
entryFileName: string;
hidePageHeader: boolean;
githubPages: boolean;
};
export default _default;

@@ -6,3 +6,2 @@ "use strict";

hidePageHeader: true,
githubPages: false,
};

@@ -12,6 +12,9 @@ "use strict";

class ThemeRenderContext extends typedoc_plugin_markdown_1.MarkdownThemeRenderContext {
parseUrl(url) {
const relativeUrl = url === null || url === void 0 ? void 0 : url.replace(/(.*).md/, '$1').replace(/ /g, '-');
return encodeURI((relativeUrl === null || relativeUrl === void 0 ? void 0 : relativeUrl.startsWith('..')) ? relativeUrl : './' + relativeUrl);
constructor() {
super(...arguments);
this.parseUrl = (url) => {
const relativeUrl = url?.replace(/(.*).md/, '$1').replace(/ /g, '-');
return encodeURI(relativeUrl?.startsWith('..') ? relativeUrl : './' + relativeUrl);
};
}
}
{
"name": "typedoc-gitlab-wiki-theme",
"version": "2.0.0-next.4",
"version": "2.0.0-next.5",
"description": "A TypeDoc ( + typedoc-plugin-markdown ) theme that generates docs compatible with Gitlab Wiki.",

@@ -30,3 +30,3 @@ "main": "dist/index.js",

"peerDependencies": {
"typedoc-plugin-markdown": ">=4.0.0-next.41"
"typedoc-plugin-markdown": ">=4.0.0-next.44"
},

@@ -33,0 +33,0 @@ "keywords": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc