-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Title customization for root element. #745
Labels
Comments
@Edgar-Spiir Its working as expected for me. Even docsify docs are working fine. Can you please confirm whether its coming for PS: marking as |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Not sure if I'm misunderstanding something or perhaps there's actual issue with this.
Default behavior for title generation as noticed is this -
{.md's first headline} - {title defined in index.html}
Scenario: I don't use a cover page, my home page is
README.md
at root of served directory. In my index.html I define a title with valueDocumentation
.Home's README.md:
My Sidebar:
Docsify config:
Expected behavior: When I navigate to root (e.g. localhost:3000/#/ ), I should see a title
Home - Documentation
Actual behavior: When I navigate to root, I see title
- Documentation
What's even worse is that even when tried making a workaround with defining a script in home page's markdown to change a title when document finished loading it didn't work on initial load. It works when i navigate somewhere else and when navigate to home through sidebar, but if I refresh home, when the title is once again
- Documentation
From this I can see 2 possible future fixes:
- Documentation
, it wouldDocumentation
at least.I will probably try to solve this within docsify and make PR if I succeed, but to be fully honest, I'm not much of a JS developer.
The text was updated successfully, but these errors were encountered: