Skip to content

Commit

Permalink
fix(typedoc): Disable flattenOutputFiles
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlancollins committed Jul 27, 2024
1 parent 10895d6 commit 26713a5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
1 change: 0 additions & 1 deletion packages/config/src/typedoc/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ const settings = {
],
hideGenerator: true,
readme: 'none',
flattenOutputFiles: true,
entryFileName: 'index',
hideBreadcrumbs: true,
hidePageHeader: true,
Expand Down
10 changes: 3 additions & 7 deletions packages/config/src/typedoc/typedoc-custom-settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,9 @@ export function load(app) {
* @param {import("typedoc-plugin-markdown").MarkdownRendererEvent} renderer
*/ (renderer) => {
renderer.urls = renderer.urls?.map((urlMapping) => {
const name = urlMapping.url.split('.')
if (name[0] !== 'index') {
name.splice(0, 1)
}
const newBasename = name.join('.')
urlMapping.url = newBasename
urlMapping.model.url = newBasename
const name = urlMapping.url.toLowerCase()
urlMapping.url = name
urlMapping.model.url = name
return urlMapping
})
},
Expand Down

0 comments on commit 26713a5

Please sign in to comment.