Skip to content

Commit eea8874

Browse files
committed
[lldb/infra] Revamp lldb.llvm.org
This patch brings a fresh coat of paint to the LLDB website. This uses the `furo` theme from the suggested theme list, adds some changes to the css to make it use the full browser window width and removes the table of contents since the theme generates it automatically. This patch also rewrites the tables for "GDB to LLDB command map" to convert them from raw HTML to native inlined code blocks. To generate the website, make sure you install the theme first with `pip install furo`, enable sphinx in the cmake invocation` then run `ninja docs-lldb-html` Discourse: https://discourse.llvm.org/t/rfc-revamping-lldbs-website Differential Revision: https://reviews.llvm.org/D158323 Signed-off-by: Med Ismail Bennani <[email protected]>
1 parent f4c886b commit eea8874

20 files changed

+1326
-1966
lines changed

lldb/docs/_static/lldb.css

Lines changed: 0 additions & 100 deletions
This file was deleted.

lldb/docs/conf.py

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,16 @@
5757
)
5858
extensions.append("sphinx_automodapi.automodapi")
5959

60+
try:
61+
import furo
62+
except ModuleNotFoundError:
63+
print(
64+
f"install sphinx furo theme with {sys.executable} -m pip install furo"
65+
)
66+
# The theme to use for HTML and HTML Help pages. See the documentation for
67+
# a list of builtin themes.
68+
html_theme = "furo"
69+
6070
# Add any paths that contain templates here, relative to this directory.
6171
templates_path = ["_templates"]
6272

@@ -131,23 +141,19 @@
131141

132142
# The theme to use for HTML and HTML Help pages. See the documentation for
133143
# a list of builtin themes.
134-
html_theme = "alabaster"
144+
html_theme = "furo"
135145

136146
# Theme options are theme-specific and customize the look and feel of a theme
137147
# further. For a list of options available for each theme, see the
138148
# documentation.
139-
html_theme_options = {
140-
"font_size": "11pt",
141-
# Don't generate any links to GitHub.
142-
"github_button": "false",
143-
}
149+
html_theme_options = {}
144150

145151
# Add any paths that contain custom themes here, relative to this directory.
146152
# html_theme_path = []
147153

148154
# The name for this set of Sphinx documents. If None, it defaults to
149155
# "<project> v<release> documentation".
150-
html_title = "The LLDB Debugger"
156+
html_title = "🐛 LLDB"
151157

152158
# A shorter title for the navigation bar. Default is the same as html_title.
153159
# html_short_title = None
@@ -166,10 +172,6 @@
166172
# so a file named "default.css" will overwrite the builtin "default.css".
167173
html_static_path = ["_static"]
168174

169-
html_context = {
170-
"css_files": ["_static/lldb.css"],
171-
}
172-
173175
html_extra_path = [".htaccess"]
174176

175177
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,

lldb/docs/resources/build.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
Building
22
========
33

4-
.. contents::
5-
:local:
6-
74
Getting the Sources
85
-------------------
96

lldb/docs/resources/caveats.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
Caveats
22
=======
33

4-
.. contents::
5-
:local:
6-
74
.. _python_caveat:
85

96
Python

lldb/docs/resources/overview.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ general architecture.
77

88
LLDB has many code groupings that makeup the source base:
99

10-
.. contents::
11-
:local:
12-
1310
API
1411
---
1512

lldb/docs/resources/projects.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ Open Projects
44
The following is a mostly unordered set of the ideas for improvements to the
55
LLDB debugger. Some are fairly deep, some would require less effort.
66

7-
.. contents::
8-
:local:
9-
107
Speed up type realization in lldb
118
---------------------------------
129

lldb/docs/resources/test.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
Testing
22
=======
33

4-
.. contents::
5-
:local:
6-
74
Test Suite Structure
85
--------------------
96

lldb/docs/use/formatting.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
Frame and Thread Format
22
=======================
33

4-
.. contents::
5-
:local:
6-
74
LLDB has a facility to allow users to define the format of the information that
85
generates the descriptions for threads and stack frames. Typically when your
96
program stops at a breakpoint you will get two lines that describes why your

lldb/docs/use/intel_pt.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
Tracing with Intel Processor Trace
22
==================================
33

4-
.. contents::
5-
:local:
6-
74
Intel PT is a technology available in modern Intel CPUs that allows efficient
85
tracing of all the instructions executed by a process.
96
LLDB can collect traces and dump them using its symbolication stack.

0 commit comments

Comments
 (0)