Parse JS docs as HTML, not markdown

This commit is contained in:
Ed Rivas 2023-05-23 21:13:43 +00:00
parent af363b56da
commit ff936c46d8

View File

@ -1,9 +1,4 @@
const {
DefaultTheme,
DefaultThemeRenderContext,
JSX,
UrlMapping,
} = require('typedoc');
const { DefaultTheme, DefaultThemeRenderContext, JSX } = require('typedoc');
function bind(fn, first) {
return (...r) => fn(first, ...r);
@ -183,19 +178,6 @@ title: ${JSON.stringify(`${page.model.name} | JS API`)}
</div>
`;
}
getUrls(project) {
return super
.getUrls(project)
.map(
(mapping) =>
new UrlMapping(
`${mapping.url.replace(/\.html$/, '.md')}`,
mapping.model,
mapping.template,
),
);
}
}
// TODO: See if there's a graceful way to support "Heads up!" and Compatibility