You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is the same across all bootstrap / bootswatch theme. I had this issue with mdwiki also so I know it is not specific to mkdocs. It is requires a change to the bootstrap/bootswathc theme.
For example, add this to a new line of the amelia css file linked below and see.
I don't see it happening at least with the readthedocs theme. The navigation items are in a scrollable list. The readthedocs theme is more suitable if there are many articles in the navigation than the mkdocs theme, which uses (non-scrollable) menu dropdowns at the top.
I've tried adding the following CSS to bs-sidebar (in site's custom.css) as referenced on stackoverflow and it seems to work, at least on the flatly theme that I used.
Really impressed with mkdocs as a whole, a really cool project, with really nice documentation! 😃
In #696, I just wanted to add that perhaps using the viewport height to size the bh-sidebar would be better. 90% of the page is different to 90% of the viewport height!
@jamesadevine Interesting. I wasn't aware of vh units. It looks like IE and Edge only partially support this which is a concern and I don't have access to either to test it out. Happy to accept a pull request if you are able to test on IE and provide screenshots before/after.
Activity
ngzhian commentedon Nov 8, 2014
may i know what theme this is? it can probably be fixed via css, by setting the overflow attribute
randomessence commentedon Nov 10, 2014
This is the same across all bootstrap / bootswatch theme. I had this issue with mdwiki also so I know it is not specific to mkdocs. It is requires a change to the bootstrap/bootswathc theme.
For example, add this to a new line of the
ameliacss file linked below and see.Add this on a new line, save.
Refresh page.
prantlf commentedon Apr 8, 2015
I don't see it happening at least with the readthedocs theme. The navigation items are in a scrollable list. The readthedocs theme is more suitable if there are many articles in the navigation than the mkdocs theme, which uses (non-scrollable) menu dropdowns at the top.
d0ugal commentedon Apr 9, 2015
(To be clear, this is a problem with the table of contents, not the drop down menus. There is an issue for the navbar here: #210)
This happens on every theme except readthedocs. I tried to set
overflow: scrollbut either it isn't that simple or I tried the wrong elements.Here is an example, it is easy to reproduce if you just copy and paste a section a ton of times to make the TOC really long.
d0ugal commentedon Jun 24, 2015
This will now be handled in the theme repos. mkdocs/mkdocs-bootswatch#2 and mkdocs/mkdocs-bootstrap#3
lovelydinosaur commentedon Jul 3, 2015
Presumably we have the issue for the built-in
mkdocstheme still tho?d0ugal commentedon Jul 3, 2015
I think somebody fixed it for MkDocs. But I am not 100% sure.
d0ugal commentedon Jul 7, 2015
Confirmed. This is still an issue on the mkdocs theme.
shichao-an commentedon Jul 10, 2015
I've tried adding the following CSS to
bs-sidebar(in site'scustom.css) as referenced on stackoverflow and it seems to work, at least on the flatly theme that I used.You can view my result here: https://notes.shichao.io/apue/ch8/
Scroll the TOC when it becomes too long.
jamesadevine commentedon Mar 3, 2016
@d0ugal Hey!
Really impressed with mkdocs as a whole, a really cool project, with really nice documentation! 😃
In #696, I just wanted to add that perhaps using the viewport height to size the
bh-sidebarwould be better. 90% of the page is different to 90% of the viewport height!This results in a pretty nicely sized sidebar that grows proportionally with the window.
d0ugal commentedon Mar 3, 2016
@jamesadevine Interesting. I wasn't aware of vh units. It looks like IE and Edge only partially support this which is a concern and I don't have access to either to test it out. Happy to accept a pull request if you are able to test on IE and provide screenshots before/after.
d0ugal commentedon Mar 3, 2016
Although, it looks like they they both support
vh- so a pull request would be the way to go here.jamesadevine commentedon Mar 3, 2016
@d0ugal happy to oblige, I will make a pull request when I have a sec 😃
I will also provide screenshots of before and after for verification.