[libc-commits] [PATCH] D131369: [libc] Website fixes (sidebar and mobile)

Jeff Bailey via Phabricator via libc-commits libc-commits at lists.llvm.org
Sun Aug 7 14:00:22 PDT 2022


jeffbailey created this revision.
Herald added subscribers: libc-commits, ecnelises, tschuett, arphaman.
Herald added projects: libc-project, All.
jeffbailey requested review of this revision.

Add "using" and "status" sections to the sidebar to make getting these
easier.

Fixed mobile formatting not overflow left and right.

Tested:
Chrome on Desktop, using mobile restrictions in devtools.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D131369

Files:
  libc/docs/_static/custom.css
  libc/docs/index.rst


Index: libc/docs/index.rst
===================================================================
--- libc/docs/index.rst
+++ 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:
Index: libc/docs/_static/custom.css
===================================================================
--- libc/docs/_static/custom.css
+++ 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;
 }
+
+ at media screen and (min-width: 875px) {
+div.body {
+  max-width: 90%;
+}
+}
+
+ at media screen and (max-width: 875px) {
+div.sphinxsidebar {
+  margin-left: 0px;
+  margin-right: 0px;
+}
+
+div.body {
+  min-width: auto;
+  max-width: auto;
+}
+}


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D131369.450669.patch
Type: text/x-patch
Size: 1253 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20220807/e15d4aec/attachment.bin>


More information about the libc-commits mailing list