docusaurus: Sidebar title and doc title don't change after updating it in file.
Is this a bug report?
Yes
Have you read the Contributing Guidelines on issues?
Yes
Environment
Docusaurus v1.3.0 NPM v6.1.0 Node v8.11.3 Macbook Pro with MacOs High Sierra
Steps to Reproduce
Tried to reproduce it in a fresh Docusaurus project, but can’t reproduce it there. What I can say about my own project is that it already has a lot of markdown files. I also have all of them in subdirectories inside the docs folder, so I also refer to them via their relative path in my sidebars.json file.
- Have the dev server running
- Have an existing docs file with its relative path in
sidebars.json - Change the title of the doc file
- Restart dev server
When building the project it also updates fine.
Expected Behavior
I expected the title to change to the new one in the sidebar and in the h1 header. This does not happen.
Actual Behavior
Title in sidebar doesn’t change and the h1 header doesn’t change, which used to work before, but sudddenly stopped working.
Sometimes I see this error in the console:
uhoh. Got error write EPIPE
But most of the time it doesn’t show up.
I also asked this in the Discord channel and got a workaround:
- Remove the i18n folder
- Run
npm run write-translations - Start dev server
- Everything updates like normal
Reproducible Demo
Could not reproduce it in a fresh docusaurus project and can’t share my own project here. If more details are needed I can provide them.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 25 (12 by maintainers)
No problem, I understand.
🤣 I got ahead of myself. I thought it went out last night. Should be today.
@KoenCa
Can you try to remove i18n folder -> npm run write-translations -> change some docs title -> npm run write-translations again and see if the title is changed in i18n/en.json
Do not run dev server
Since the workaround is related with deleting i18n I think it got to do with write translation