DeepTutor icon indicating copy to clipboard operation
DeepTutor copied to clipboard

[Docs]: chore(web): drop --legacy-peer-deps from Dockerfile and docs after lockfile sync

Open panghufattiger996-maker opened this issue 1 month ago • 1 comments

Before filing

  • [x] I have searched the existing docs issues and this report is not already filed.
  • [x] This is about the docs at https://deeptutor.info — not a product bug.

Page URL

https://github.com/HKUDS/DeepTutor/blob/dev/Dockerfile#L33

What kind of issue?

Inaccurate or out-of-date content

What's wrong?

Follow-up for #2293, split out of #2295 to keep that PR focused on the lockfile.

Places that still teach the masked install command:

  • Dockerfile:33 - the web image build installs with --legacy-peer-deps
  • README.md:323 - quick start snippet
  • roughly 22 other mentions across docs

--legacy-peer-deps hides peer-resolution gaps, which is exactly how the highlight.js mismatch in #2293 went unnoticed; in the Docker image it also means prosemirror-highlight can resolve a different highlight.js major than CI/dev.

Scope

  1. Switch the Dockerfile web stage to bare npm ci (or leave a comment explaining why the flag must stay).
  2. Update the README quick start so contributors run npm ci.
  3. Re-check the CI jobs once the install gate flip in #2295 has a green run.

Acceptance

  • No --legacy-peer-deps remains in Dockerfile, README quick starts, or user-facing install docs (or an inline comment explains the exception).
  • Docker web build succeeds with bare npm ci.
  • npm ci still works for contributors on Node 22 without extra flags.

I'm happy to take this one as well once #2295 lands.

What did you expect?

No response

Environment (optional)

No response

panghufattiger996-maker avatar Nov 01 '26 09:11 panghufattiger996-maker

Scope update: #2295 is now a lockfile-only change, so the CI gate flip lands here too. Both web jobs in .github/workflows/tests.yml still install with --legacy-peer-deps after that revert.

Suggested order: land the lockfile sync first, then flip CI + Dockerfile + README to bare npm ci in one change, backed by a green run - which is the part that cannot be validated while the workflow is waiting on first-time-contributor approval.

panghufattiger996-maker avatar Nov 02 '26 05:11 panghufattiger996-maker