Files
jose/patches/typedoc-plugin-markdown+3.16.0.patch

161 lines
4.4 KiB
Diff

diff --git a/node_modules/typedoc-plugin-markdown/dist/resources/helpers/toc.js b/node_modules/typedoc-plugin-markdown/dist/resources/helpers/toc.js
index e332374..7139637 100644
--- a/node_modules/typedoc-plugin-markdown/dist/resources/helpers/toc.js
+++ b/node_modules/typedoc-plugin-markdown/dist/resources/helpers/toc.js
@@ -25,6 +25,14 @@ var __importStar = (this && this.__importStar) || function (mod) {
Object.defineProperty(exports, "__esModule", { value: true });
const Handlebars = __importStar(require("handlebars"));
const utils_1 = require("../../utils");
+function functionsOrConstructorsFirst(ary) {
+ const idx = ary.findIndex((group) => group.title === 'Functions' || group.title === 'Constructors')
+ if (idx) {
+ const [functions] = ary.splice(idx, 1)
+ ary.unshift(functions)
+ }
+ return ary
+}
function default_1(theme) {
Handlebars.registerHelper('toc', function () {
var _a, _b;
@@ -40,7 +48,7 @@ function default_1(theme) {
md.push(`## Table of contents\n\n`);
}
const headingLevel = hideInPageTOC ? `##` : `###`;
- (_b = this.groups) === null || _b === void 0 ? void 0 : _b.forEach((group) => {
+ (_b = this.groups) === null || _b === void 0 ? void 0 : functionsOrConstructorsFirst(_b).forEach((group) => {
const groupTitle = group.title;
if (group.categories) {
group.categories.forEach((category) => {
diff --git a/node_modules/typedoc-plugin-markdown/dist/resources/partials/member.declaration.hbs b/node_modules/typedoc-plugin-markdown/dist/resources/partials/member.declaration.hbs
index 1ca0b74..464180b 100755
--- a/node_modules/typedoc-plugin-markdown/dist/resources/partials/member.declaration.hbs
+++ b/node_modules/typedoc-plugin-markdown/dist/resources/partials/member.declaration.hbs
@@ -16,20 +16,6 @@
{{#if type.declaration}}
-{{#if type.declaration.indexSignature}}
-
-{{#with type.declaration.indexSignature}}
-
-#### Index signature
-
-{{{indexSignatureTitle}}}
-
-{{> comment}}
-
-{{/with}}
-
-{{/if}}
-
{{#if type.declaration.signatures}}
{{#if type.declaration.children}}
diff --git a/node_modules/typedoc-plugin-markdown/dist/resources/partials/member.sources.hbs b/node_modules/typedoc-plugin-markdown/dist/resources/partials/member.sources.hbs
index a999ee8..d740a30 100755
--- a/node_modules/typedoc-plugin-markdown/dist/resources/partials/member.sources.hbs
+++ b/node_modules/typedoc-plugin-markdown/dist/resources/partials/member.sources.hbs
@@ -1,39 +1,3 @@
-{{#if implementationOf}}
-
-#### Implementation of
-
-{{#with implementationOf}}
-
-{{typeAndParent}}
-
-{{/with}}
-
-{{/if}}
-
-{{#if inheritedFrom}}
-
-#### Inherited from
-
-{{#with inheritedFrom}}
-
-{{{typeAndParent}}}
-
-{{/with}}
-
-{{/if}}
-
-{{#if overwrites}}
-
-#### Overrides
-
-{{#with overwrites}}
-
-{{typeAndParent}}
-
-{{/with}}
-
-{{/if}}
-
{{#if sources}}
#### Defined in
diff --git a/node_modules/typedoc-plugin-markdown/dist/resources/partials/title.hbs b/node_modules/typedoc-plugin-markdown/dist/resources/partials/title.hbs
index ba8e5be..1e56015 100644
--- a/node_modules/typedoc-plugin-markdown/dist/resources/partials/title.hbs
+++ b/node_modules/typedoc-plugin-markdown/dist/resources/partials/title.hbs
@@ -4,4 +4,8 @@
{{/ifShowPageTitle}}
-{{{reflectionPath}}}
\ No newline at end of file
+## [💗 Help the project](https://github.com/sponsors/panva)
+
+Support from the community to continue maintaining and improving this module is welcome. If you find the module useful, please consider supporting the project by [becoming a sponsor](https://github.com/sponsors/panva).
+
+---
diff --git a/node_modules/typedoc-plugin-markdown/dist/resources/templates/reflection.hbs b/node_modules/typedoc-plugin-markdown/dist/resources/templates/reflection.hbs
index ce29bc5..5485fb2 100755
--- a/node_modules/typedoc-plugin-markdown/dist/resources/templates/reflection.hbs
+++ b/node_modules/typedoc-plugin-markdown/dist/resources/templates/reflection.hbs
@@ -24,18 +24,6 @@
{{/if}}
-{{#ifShowTypeHierarchy}}
-
-## Hierarchy
-
-{{#with model.typeHierarchy}}
-
-{{{hierarchy 0}}}
-
-{{/with}}
-
-{{/ifShowTypeHierarchy}}
-
{{#if model.implementedTypes}}
## Implements
@@ -74,24 +62,6 @@
{{/if}}
-{{#if model.indexSignature}}
-
-## Indexable
-
-{{#with model}}
-
-{{#with indexSignature}}
-
-{{{indexSignatureTitle}}}
-
-{{> comment}}
-
-{{/with}}
-
-{{/with}}
-
-{{/if}}
-
{{#with model}}
{{> main}}