Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sidebar title and doc title don't change after updating it in file (2) #965

Closed
testeratrsa opened this issue Sep 17, 2018 · 3 comments
Closed

Comments

@testeratrsa
Copy link

testeratrsa commented Sep 17, 2018

🐛 Bug Report

yes

(A clear and concise description of what the bug is)
Sidebar title and doc title don't change after updating it in file

Have you read the Contributing Guidelines on issues?

yes

To Reproduce

We guys tried to update the title of a markdown file but we can't do it. For the previously(before 05 Sep 2018) created markdown files title are working fine but for newly(on 15 Sep 2018) created markdown file it has some issue with displaying the title.
our markdown file is presented folder inside a folder which for our understanding and convenience.

  1. Syntax was given as markdown which has correct title structure
  2. Saved the markdown file and necessary changes were made in sidebar.json
  3. Restarted the server
  4. title and sidebar appear as api/login

Expected behaviour

Sidebar title and page title should be displayed as:-
image

Actual Behaviour

image

the syntax which was given is:-

---
id: login
title: Login
sidebar_label: Login
---

Tried deleting the en.json file inside i18n and made the necessary changes in package.json as suggested in
#813

Still, the issue remains the same.

Reproducible Demo

https://github.com/testeratrsa/rsadocusaurus/tree/master

@endiliey
Copy link
Contributor

endiliey commented Sep 17, 2018

Should be fixed by #917
Please upgrade your Docusaurus version since you mentioned in Discord that you're still at v1.3.2 😃

@testeratrsa
Copy link
Author

testeratrsa commented Sep 20, 2018

I tried installing the newer version of Docusaurus (1.4.0) but still, I faced the same issue.
So I copied the title syntax from other markdown files which is working fine. And pasted it in issue throwing markdown file (done it in both the versions 1.4.0 and 1.3.2)
Boom, Issue was solved. The syntax we have used have no differences. Why it did not work for the first time? and why it is worked for the second time? I don't get it.

@endiliey
Copy link
Contributor

Could be caching issue. Hard to tell without any reproducible repo. I'm closing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants