[Lldb-commits] [PATCH] D61913: [WIP] Get back the navigation sidebar on the LLDB website

Adrian Prantl via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Tue May 14 12:48:28 PDT 2019


aprantl created this revision.
aprantl added a reviewer: JDevlieghere.
Herald added subscribers: lldb-commits, arphaman.
Herald added a project: LLDB.

This is a little experiment to get back the navigation sidebar on the LLDB website like it used to be: https://web.archive.org/web/20170204135403/http://lldb.llvm.org/


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D61913

Files:
  lldb/docs/_static/lldb.css
  lldb/docs/conf.py
  lldb/docs/index.rst


Index: lldb/docs/index.rst
===================================================================
--- lldb/docs/index.rst
+++ lldb/docs/index.rst
@@ -22,6 +22,7 @@
 
 .. toctree::
    :maxdepth: 1
+   :caption: Goals & Status
 
    status/about
    status/goals
@@ -34,6 +35,7 @@
 
 .. toctree::
    :maxdepth: 1
+   :caption: Use & Extension
 
    use/tutorial
    use/map
@@ -52,6 +54,7 @@
 
 .. toctree::
    :maxdepth: 1
+   :caption: Resources
 
    resources/download
    resources/source
@@ -63,6 +66,10 @@
 API Documentation
 =================
 
+.. toctree::
+   :maxdepth: 1
+   :caption: API Documentation
+
 * `Public Python API Reference <https://lldb.llvm.org/python_reference/index.html>`_
 * `Public C++ API Reference <https://lldb.llvm.org/cpp_reference/namespacelldb.html>`_
 * `Private C++ Reference <https://lldb.llvm.org/cpp_reference/index.html>`_
@@ -70,6 +77,10 @@
 External Links
 ==============
 
+.. toctree::
+   :maxdepth: 1
+   :caption: External Links
+
 * `Source Code <http://llvm.org/viewvc/llvm-project/lldb/trunk/>`_
 * `Code Reviews <https://reviews.llvm.org>`_
 * `Bug Reports <https://bugs.llvm.org/>`_
Index: lldb/docs/conf.py
===================================================================
--- lldb/docs/conf.py
+++ lldb/docs/conf.py
@@ -92,12 +92,14 @@
 
 # The theme to use for HTML and HTML Help pages.  See the documentation for
 # a list of builtin themes.
-html_theme = 'haiku'
+html_theme = 'alabaster'
 
 # Theme options are theme-specific and customize the look and feel of a theme
 # further.  For a list of options available for each theme, see the
 # documentation.
-#html_theme_options = {}
+html_theme_options = {
+    'font_size': '12pt'
+}
 
 # Add any paths that contain custom themes here, relative to this directory.
 #html_theme_path = []
Index: lldb/docs/_static/lldb.css
===================================================================
--- lldb/docs/_static/lldb.css
+++ lldb/docs/_static/lldb.css
@@ -24,3 +24,24 @@
   padding-bottom: 15px;
 }
 
+div.sphinxsidebar h3, div.sphinxsidebar h4,
+div.sphinxsidebar p, div.sphinxsidebar p a {
+font: bold 13px Verdana;
+color: white;
+background: #606060; 
+margin-bottom: 0; /*bottom spacing between header and rest of content*/
+text-transform: uppercase;
+padding: 7px 0 7px 7px;
+}
+
+div.sphinxsidebar ul,
+div.sphinxsidebar ul a {
+font: normal 12px Arial;
+color: black;
+background: #E9E9E9;
+display: block;
+padding: 5px 0;
+line-height: 17px;
+padding-left: 14px;
+text-decoration: none;
+}


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D61913.199495.patch
Type: text/x-patch
Size: 2514 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20190514/5cede5ee/attachment.bin>


More information about the lldb-commits mailing list