diff --git a/libc/docs/_static/custom.css b/libc/docs/_static/custom.css --- a/libc/docs/_static/custom.css +++ b/libc/docs/_static/custom.css @@ -6,10 +6,6 @@ width: 90%; } -div.body { - max-width: 90%; -} - div.note { padding: 20px 20px 10px 20px; } @@ -98,3 +94,21 @@ /* Hide Navigation. */ display: none; } + +@media screen and (min-width: 875px) { +div.body { + max-width: 90%; +} +} + +@media screen and (max-width: 875px) { +div.sphinxsidebar { + margin-left: 0px; + margin-right: 0px; +} + +div.body { + min-width: auto; + max-width: auto; +} +} diff --git a/libc/docs/index.rst b/libc/docs/index.rst --- a/libc/docs/index.rst +++ b/libc/docs/index.rst @@ -47,7 +47,23 @@ .. toctree:: :hidden: :maxdepth: 1 - :caption: Documentation + :caption: Using + + runtimes_build + +.. toctree:: + :hidden: + :maxdepth: 1 + :caption: Status + + strings + stdio + math + +.. toctree:: + :hidden: + :maxdepth: 1 + :caption: Development build_system clang_tidy_checks @@ -61,10 +77,6 @@ mechanics_of_public_api redirectors source_layout - strings - runtimes_build - stdio - math .. toctree:: :hidden: @@ -72,4 +84,4 @@ :caption: External Links Source Code - Bug Reports + Bug Reports