With a narrow window the full Read the Docs window displays content but when the window is widened a Table of Contents appears as a sidebar and the content is less than half the window width. How can the setting be changed so the window must be wider before the TOC is displayed?
I expect this framework with a stylesheet, conf.py reference and custom layout would work with the appropriate css in the source/_static
stylesheet. Changing:
.wy-nav-content {
max-width: 1200px !important;
}
I assume this involves testing if screen width less than a certain value then set display_toc
to false. Something like:
/* Set to display toc */
body {
display_toc: true;
}
/* On narrow screens, set don't display toc */
@media screen and (max-width: 959px) {
body {
display_toc: false;
}
}