-
-
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
There is an error in opening the mobile page of the onlyCover parameter #1173
Comments
can we keep the burgur icon and fix the sidebar so that when it is clicked, it slides as it suppose to be ? else we can remove it 👍 |
What it does is load only the cover page when you visit the home page. I'm not sure if I should remove the burgur icon when it exists. |
https://simps.io/ For my site, I think it should be deleted. |
But the sidebar style of the |
ok cool , I didnt notice the
go ahead 👍 |
Makes sense to not show the menu in that case. I added the |
This seems like a quick CSS fix. I can work on this. From my understanding, all that needs to be done is remove the burger icon (sidebar-toggle) from the cover when viewed on a mobile device. @sy-records |
@mohammedsahl It may be necessary to judge configuration items: When but it does not affect the icon on the body. |
Done with fixing the bug. Writing up an integration test right now. I should have a PR out pretty soon |
The integration test, as it turns out, needs a bit of fiddling around with cypress. While I can push a fix to this issue I don't wanna do so until an integration test is also included, as implied from #1217. What I'm currently working on is setting up the test suit so that multiple configs can be tested, which in-turn, can help others and myself add new tests as required. I suppose it is going to be the same for issue #1233. Easy fix, but no integration test. I wanted to know if I should push my changes regardless and shift focus to writing up a suite to test multiple config files right after. The problem is that I cannot really triage the work required since this is the first time I'll be cypress. But I know for sure that issues #1173 and #1233 are simple enough fixes. I simply want to include a cypress test as this is the ideal practice. Doing that will take some time. |
I'm am very in favor of waiting to merge any current and new PRs until they have unit and integration tests in place. It is well-worth the wait IMO.
Do you mean merge the PR? Or push new changes to the PR? I am fine with reviewing integration test improvements in the same PR just to test that change. It's really great to get the tests working better! 👍 No rush. Better to have it take the time it takes to get tests in place for the changes, so that we don't forget about it if we were to merge now without tests.
I just thought about this, and it occurred to me that maybe it would be a breaking change actually. Maybe we should only not show the content below the cover, but we should keep the menu. Any thoughts @jhildenbiddle? Should we put this in 4.x or 5.x? |
Are we sure this is a bug? The docs state the following: onlyCover
Only coverpage is loaded when visiting the home page. The docs don't mention what the behavior of the menu toggle should be, and I can see an argument both for and against the toggle being displayed when Is there a consensus on how we want this feature to behave? |
For a better user experience, it should be removed, When clicking on the sidebar, it is blank, which is not friendly. |
Ahh. Now I see, @sy-records. I must have reviewed your site by resizing the browser to mobile size without refreshing, so the issue didn't present itself. When I opened the menu, I saw a fully-rendered sidebar. Near term, I think we would just restore the previous behavior of hiding the menu toggle when
|
I didn't modify it, but I tested #1243, It's normal. I enabled this option because I only want to show the home page and then redirect to the corresponding language document by clicking to jump to another link. This option should be retained in v5 as well. |
If there was something changed, let's make it work like before. I'm not familiar with this feature from before. Was the menu icon always hidden before? But I agree with @jhildenbiddle's sentiment that it is more valuable to show a menu. The reason is: repeat visitors may know where they want to navigate to and would appreciate getting there quickly. If they only have a "get started" button, it means they have to click that first, then click the menu on the next page to get where they want, which is extra steps compared to just opening the menu an navigating. |
onlyCover
Only coverpage is loaded when visiting the home page. This icon is only removed when the option is true, it does not affect other functions. |
The project maintainers decide which features to provide, how they function, and what changes (if any) are made from one version to the next. That's what we're discussing.
This text doesn't appear on the website, nor does any other mention about how the
Got it. So your intention is to limit user choice in hopes of driving them towards the "Get Started" button where you will redirect them based on some logic (geo-location/IP) to matching site translation? What if your logic doesn't work (for example, I wasn't redirected to |
Yes, we should discuss the development of If can't get a match, of course there will be a default way to handle it, which is not something we should be concerned about. It's just that the home page doesn't show up, and the sidebar is still displayed after the jump. when |
I deployed #1243 and you can experience it. |
Continued in #1249, with an idea for an option to have menu with onlyCover. |
Bug Report
Steps to reproduce
What is current behaviour
Should be removed, Otherwise, when you click it, the problem of Figure 2 will appear.
What is the expected behaviour
Other relevant information
Bug does still occur when all/other plugins are disabled?
Your OS: mac
Node.js version:
npm/yarn version:
Browser version:
Docsify version: 4.11.3
Docsify plugins:
Please create a reproducible sandbox
Mention the docsify version in which this bug was not present (if any)
The text was updated successfully, but these errors were encountered: