Skip to content

Commit

Permalink
Moving packages to own route, redirecting by default to index
Browse files Browse the repository at this point in the history
  • Loading branch information
MaXFeeD committed Dec 7, 2024
1 parent 69d4ffc commit 581c8d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/docusaurus-plugin/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ export default function typedocApiPlugin(
// Only write out the ApiIndex only when we have multiple packages
// otherwise we will have 2 top-level entries in the route entries
routes.push({
path: indexPermalink,
path: normalizeUrl([loadedVersion.versionPath, 'packages']),
exact: true,
component: path.join(__dirname, `./components/ApiIndex.${process.env.TYPEDOC_WATCH ? 'tsx' : 'js'}`),
modules: {
Expand Down
2 changes: 1 addition & 1 deletion docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ export default {
{
position: 'left',
// href: `${configUrl}/api/index.html`,
to: 'api',
to: 'api/packages',
label: 'API'
},
{
Expand Down

0 comments on commit 581c8d2

Please sign in to comment.