Skip to content

Commit

Permalink
embed all reflections under modules
Browse files Browse the repository at this point in the history
  • Loading branch information
balazsorban44 committed Dec 19, 2022
1 parent 047561e commit 2ccc633
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 2 deletions.
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@
"pnpm": {
"overrides": {
"undici": "5.11.0"
},
"patchedDependencies": {
"typedoc-plugin-markdown@3.14.0": "patches/typedoc-plugin-markdown@3.14.0.patch"
}
}
}
57 changes: 57 additions & 0 deletions patches/typedoc-plugin-markdown@3.14.0.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
diff --git a/dist/theme.js b/dist/theme.js
index 1483a4b4ec69583aa3086eac83b2b31ae8bb6777..6b90b17261e14b8a49e52d0885038dbff4b6b503 100644
--- a/dist/theme.js
+++ b/dist/theme.js
@@ -209,52 +209,6 @@ class MarkdownTheme extends typedoc_1.Theme {
directory: 'modules',
template: this.getReflectionTemplate(),
},
- {
- kind: [typedoc_1.ReflectionKind.Namespace],
- isLeaf: false,
- directory: 'modules',
- template: this.getReflectionTemplate(),
- },
- {
- kind: [typedoc_1.ReflectionKind.Enum],
- isLeaf: false,
- directory: 'enums',
- template: this.getReflectionTemplate(),
- },
- {
- kind: [typedoc_1.ReflectionKind.Class],
- isLeaf: false,
- directory: 'classes',
- template: this.getReflectionTemplate(),
- },
- {
- kind: [typedoc_1.ReflectionKind.Interface],
- isLeaf: false,
- directory: 'interfaces',
- template: this.getReflectionTemplate(),
- },
- ...(this.allReflectionsHaveOwnDocument
- ? [
- {
- kind: [typedoc_1.ReflectionKind.TypeAlias],
- isLeaf: true,
- directory: 'types',
- template: this.getReflectionMemberTemplate(),
- },
- {
- kind: [typedoc_1.ReflectionKind.Variable],
- isLeaf: true,
- directory: 'variables',
- template: this.getReflectionMemberTemplate(),
- },
- {
- kind: [typedoc_1.ReflectionKind.Function],
- isLeaf: true,
- directory: 'functions',
- template: this.getReflectionMemberTemplate(),
- },
- ]
- : []),
];
}
onBeginRenderer(event) {
11 changes: 9 additions & 2 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2ccc633

Please sign in to comment.