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

Jeff Bailey via Phabricator via libc-commits libc-commits at lists.llvm.org
Mon Aug 8 11:38:09 PDT 2022


This revision was automatically updated to reflect the committed changes.
Closed by commit rG7889c41938d2: [libc] Website fixes (sidebar and mobile) (authored by jeffbailey).

Changed prior to commit:
  https://reviews.llvm.org/D131369?vs=450669&id=450892#toc

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D131369/new/

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:
@@ -72,4 +84,4 @@
    :caption: External Links
 
    Source Code <https://github.com/llvm/llvm-project/tree/main/libc>
-   Bug Reports <https://github.com/llvm/llvm-project/issues/labels/libc/>
+   Bug Reports <https://github.com/llvm/llvm-project/labels/libc>
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.450892.patch
Type: text/x-patch
Size: 1514 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20220808/3c716134/attachment-0001.bin>


More information about the libc-commits mailing list