typedoc-plugin-markdown
Advanced tools
Comparing version 2.0.7 to 2.0.8
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const plugin_1 = require("../../plugin"); | ||
const theme_docusaurus_1 = require("../theme.docusaurus"); | ||
const theme_gitbook_1 = require("../theme.gitbook"); | ||
@@ -14,5 +13,3 @@ const theme_vuepress_1 = require("../theme.vuepress"); | ||
const hasGlobalsFile = plugin_1.MarkdownPlugin.theme.hasGlobalsFile; | ||
const md = mode === undefined || mode === 1 || hasGlobalsFile | ||
? [`[Globals](${relative_url_1.relativeUrl(this.project.url)}) /`] | ||
: []; | ||
const md = mode === undefined || mode === 1 || hasGlobalsFile ? [`[Globals](${relative_url_1.relativeUrl(this.project.url)}) /`] : []; | ||
return breadcrumb(this.model, md); | ||
@@ -31,5 +28,3 @@ } | ||
function isVisible() { | ||
if (plugin_1.MarkdownPlugin.theme instanceof theme_docusaurus_1.DocusaurusTheme || | ||
plugin_1.MarkdownPlugin.theme instanceof theme_gitbook_1.GitbookTheme || | ||
plugin_1.MarkdownPlugin.theme instanceof theme_vuepress_1.VuePressTheme) { | ||
if (plugin_1.MarkdownPlugin.theme instanceof theme_gitbook_1.GitbookTheme || plugin_1.MarkdownPlugin.theme instanceof theme_vuepress_1.VuePressTheme) { | ||
return false; | ||
@@ -36,0 +31,0 @@ } |
@@ -16,3 +16,3 @@ "use strict"; | ||
function isVisible(page) { | ||
if (page.url === plugin_1.MarkdownPlugin.theme.indexName) { | ||
if (plugin_1.MarkdownPlugin.theme instanceof theme_docusaurus_1.DocusaurusTheme || page.url === plugin_1.MarkdownPlugin.theme.indexName) { | ||
return false; | ||
@@ -23,5 +23,2 @@ } | ||
function prefix() { | ||
if (plugin_1.MarkdownPlugin.theme instanceof theme_docusaurus_1.DocusaurusTheme) { | ||
return `> ${heading_1.heading(3)}`; | ||
} | ||
if (plugin_1.MarkdownPlugin.theme instanceof theme_gitbook_1.GitbookTheme) { | ||
@@ -28,0 +25,0 @@ return `> ${heading_1.heading(1)}`; |
@@ -6,2 +6,3 @@ "use strict"; | ||
const theme_vuepress_1 = require("../theme.vuepress"); | ||
const reflection_title_1 = require("./reflection-title"); | ||
function metadata() { | ||
@@ -12,6 +13,6 @@ if (!isVisible()) { | ||
const md = `--- | ||
id: ${getId(this)} | ||
title: ${getTitle(this)} | ||
sidebar_label: ${getLabel(this)} | ||
---\n`; | ||
id: ${getId(this)} | ||
title: ${getReflectionTitle(this)} | ||
sidebar_label: ${getLabel(this)} | ||
---\n`; | ||
return md; | ||
@@ -33,2 +34,5 @@ } | ||
} | ||
function getReflectionTitle(page) { | ||
return reflection_title_1.reflectionTitle.call(page).replace(/\*/g, ''); | ||
} | ||
function getTitle(page) { | ||
@@ -35,0 +39,0 @@ if (page.url === plugin_1.MarkdownPlugin.theme.indexName) { |
@@ -33,3 +33,3 @@ "use strict"; | ||
} | ||
paramsmd.push(`\`: *${type_1.type.call(param.type)}*`); | ||
paramsmd.push(`\`: ${type_1.type.call(param.type)}`); | ||
return paramsmd.join(''); | ||
@@ -36,0 +36,0 @@ }) |
{ | ||
"name": "typedoc-plugin-markdown", | ||
"version": "2.0.7", | ||
"version": "2.0.8", | ||
"description": "A plugin for TypeDoc that enables TypeScript API documentation to be generated in Markdown.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
58823
1240