Skip to content

feat(plugin-typedoc): Upgrade to TypeDoc v0.28 with new API#2790

Merged
SoonIter merged 2 commits intoweb-infra-dev:mainfrom
Karibash:feature/typedoc
Dec 3, 2025
Merged

feat(plugin-typedoc): Upgrade to TypeDoc v0.28 with new API#2790
SoonIter merged 2 commits intoweb-infra-dev:mainfrom
Karibash:feature/typedoc

Conversation

@Karibash
Copy link
Copy Markdown
Contributor

Summary

I updated the versions of TypeDoc and typedoc-plugin-markdown.
There were several changes to the default settings, but I’ve made adjustments so that the output is rendered as similarly as possible to the previous version.

Related Issue

close #2479

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Copilot AI review requested due to automatic review settings November 20, 2025 01:43
@netlify
Copy link
Copy Markdown

netlify Bot commented Nov 20, 2025

Deploy Preview for rspress-v2 ready!

Name Link
🔨 Latest commit 1a77243
🔍 Latest deploy log https://app.netlify.com/projects/rspress-v2/deploys/692eec6be5a0b00008067bbb
😎 Deploy Preview https://deploy-preview-2790--rspress-v2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR upgrades the TypeDoc plugin to use TypeDoc v0.28.14 and typedoc-plugin-markdown v4.9.0, migrating from the previous v0.24.8 and v3.17.1 versions respectively. The upgrade necessitates API changes to align with TypeDoc's new architecture, while maintaining similar output rendering.

  • Updated TypeDoc and typedoc-plugin-markdown to their latest major versions
  • Migrated to new TypeDoc v0.28 API including Application.bootstrapWithPlugins() and app.outputs.writeOutput()
  • Adjusted configuration options to match new defaults and maintain output consistency

Reviewed Changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
pnpm-lock.yaml Updated dependency versions and added new transitive dependencies required by TypeDoc v0.28
packages/plugin-typedoc/package.json Bumped typedoc to 0.28.14 and typedoc-plugin-markdown to 4.9.0
packages/plugin-typedoc/src/index.ts Migrated to new TypeDoc v0.28 API with bootstrapWithPlugins and outputs.writeOutput methods, added new configuration options
packages/plugin-typedoc/src/patch.ts Removed README.md to index.md rename (now handled by entryFileName config)
packages/plugin-typedoc/src/utils.ts Removed unused transformModuleName function
e2e/fixtures/plugin-typedoc/index.test.ts Updated test expectations to match new TypeDoc output format (function names now include parentheses, module naming changed from underscores to hyphens)
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread packages/plugin-typedoc/src/utils.ts Outdated
Comment thread packages/plugin-typedoc/src/patch.ts
Comment thread packages/plugin-typedoc/src/index.ts
Comment thread packages/plugin-typedoc/src/index.ts
Comment thread packages/plugin-typedoc/src/index.ts
Comment thread packages/plugin-typedoc/src/index.ts
Comment thread packages/plugin-typedoc/src/index.ts
Comment thread packages/plugin-typedoc/src/index.ts
@Karibash
Copy link
Copy Markdown
Contributor Author

I don’t have a Windows machine, so I can’t figure out why it’s failing on Windows in the end-to-end tests 😢
https://github.com/web-infra-dev/rspress/actions/runs/19522482867/job/55888575917?pr=2790

@SoonIter
Copy link
Copy Markdown
Member

SoonIter commented Nov 20, 2025

I don’t have a Windows machine, so I can’t figure out why it’s failing on Windows in the end-to-end tests 😢 web-infra-dev/rspress/actions/runs/19522482867/job/55888575917?pr=2790

I currently do not have a Windows machine too. I will do some troubleshooting when I have a Windows machine today or tomorrow.

@Karibash
Copy link
Copy Markdown
Contributor Author

@SoonIter
I figured out the cause and pushed a fix!

It turned out that the issue was introduced by the following commit, where TypeDoc stopped supporting Windows-style path separators:
TypeStrong/typedoc@ab7eab6

Based on the discussion in this comment, I updated how we pass the entryPoint to TypeDoc:
TypeStrong/typedoc#2918 (comment)

@SoonIter
Copy link
Copy Markdown
Member

SoonIter commented Dec 3, 2025

Thanks a ton for your contribution!

This entrypoints is a breaking change for the current docs.

Maybe we can manually pre-process the paths so that the previous usage on docs remains valid. I'll make some changes once this PR is merged.

@SoonIter SoonIter merged commit 48f9c45 into web-infra-dev:main Dec 3, 2025
9 checks passed
@Karibash Karibash deleted the feature/typedoc branch December 3, 2025 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Update "typedoc" to the latest version

3 participants