Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions plugins/processor/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import { categoryForReflection } from '../shared/categories.mjs';
*/
export function load(app) {
app.renderer.defineRouter('doc-kit', DocKitRouter);
app.options.addDeclaration({ name: 'base' });
Comment thread
avivkeller marked this conversation as resolved.

app.converter.on(Converter.EVENT_RESOLVE_BEGIN, context => {
// doc-kit has property metadata, not TypeDoc accessor metadata.
Expand Down Expand Up @@ -77,7 +76,10 @@ export function load(app) {
join(app.options.getValue('out'), 'site.json'),
JSON.stringify(
{
sidebar: sidebar(app.renderer.router, app.options.getValue('base')),
sidebar: sidebar(
app.renderer.router,
app.options.getValue('publicPath')
),
},
null,
2
Expand Down
4 changes: 3 additions & 1 deletion scripts/markdown/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ const generate = async packageDir => {
const app = await Application.bootstrapWithPlugins({
entryPoints: [join(packageDir, 'types.d.ts')],
out: join('pages', 'api', `v${major(version)}.x`),
base: `api/v${major(version)}.x`,
publicPath: `/api/v${major(version)}.x/`,

plugin: [
'typedoc-plugin-markdown',
'typedoc-plugin-missing-exports',
'./plugins/processor/index.mjs',
'./plugins/theme/index.mjs',
],
Expand All @@ -34,6 +35,7 @@ const generate = async packageDir => {
modulesFileName: 'index',
entryFileName: 'index',
tsconfig: 'tsconfig.json',
excludeExternals: true,
});

const project = await app.convert();
Expand Down