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

Home page with docs-only mode does not show sidebar #2985

Closed
tuler opened this issue Jun 23, 2020 · 3 comments
Closed

Home page with docs-only mode does not show sidebar #2985

tuler opened this issue Jun 23, 2020 · 3 comments
Labels
bug An error in the Docusaurus core causing instability or issues with its execution status: needs triage This issue has not been triaged by maintainers

Comments

@tuler
Copy link

tuler commented Jun 23, 2020

🐛 Bug Report

The home page does not show the sidebar when we follow the documentation instructions.

Have you read the Contributing Guidelines on issues?

Yes

To Reproduce

  1. npx @docusaurus/init@next init docusaurus-docs-only classic
  2. Modify docusaurus.config.js according to instructions as I did here
  3. yarn start

Expected behavior

Home page should also show sidebar.

Actual Behavior

Sidebar doesn't show up.

Screen Shot 2020-06-23 at 11 48 08 AM

Your Environment

  • Docusaurus version used: 2.0.0-alpha.58
  • Environment name and version: Node.js v14.4.0
  • Operating system and version (desktop or mobile): macOS 10.15.5

Reproducible Demo

https://github.com/tuler/docusaurus-docs-only

@tuler tuler added bug An error in the Docusaurus core causing instability or issues with its execution status: needs triage This issue has not been triaged by maintainers labels Jun 23, 2020
@slorber
Copy link
Collaborator

slorber commented Jun 23, 2020

Thanks @tuler

Actually found the problem, the quickfix is simply to delete the src/pages/index.js file.

it's an annoying internal issue we have where when 2 pages are created for the same url ("/" in this case), the props of the pages are somehow "merged" silently, and we end up in a weird state. Related to #2917

Until I have a proper fix for this problem, will add a warning and document docs only mode better

@slorber slorber closed this as completed Jun 23, 2020
@charlax
Copy link

charlax commented Oct 8, 2020

I have the same issue with a similar setup (docs-only mode). What did you do to find the fix? Not sure how to debug, and I have deleted the src/pages/index.js

@slorber
Copy link
Collaborator

slorber commented Oct 8, 2020

@charlax newest versions shouldn't have this problem anymore

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An error in the Docusaurus core causing instability or issues with its execution status: needs triage This issue has not been triaged by maintainers
Projects
None yet
Development

No branches or pull requests

3 participants