Upgrade notification command does not copy properly due to box borders #9239
Labels
bug
An error in the Docusaurus core causing instability or issues with its execution
domain: dx
Related to developer experience of working on Docusaurus sites
good first issue
If you are just getting started with Docusaurus, this issue should be a good place to begin.
status: accepting pr
This issue has been accepted, and we are looking for community contributors to implement this
Have you read the Contributing Guidelines on issues?
Prerequisites
Description
Summary
It appears that the text does not copy properly from this docusaurus warning message. The file which generates this message is
packages/docusaurus/bin/beforeCli.mjs
. This could be a non-docusaurus specific problem, but it does not appear to be a shell problem (I tried withzsh
andbash
).I recently got this upgrade note, and wanted to upgrade my docusaurus version. I copy and pasted the command into my terminal, but the following happened:
The
|
were quite weird as they didn't appear in the image I uploaded. I pasted the text elsewhere, and found that it pasted as:The terminal (a zsh shell) could not properly handle it. I asked GPT-4 to reformat it, and it gave me the following, which ran properly.
Reproducible demo
No response
Steps to reproduce
Your environment
npx version: 9.7.2
node version: v20.4.0
VSCode, a bash or zsh terminal
Self-service
The text was updated successfully, but these errors were encountered: