Skip to content

Commit b9d484f

Browse files
committed
Error index style tweaks.
1 parent 1174114 commit b9d484f

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

mk/docs.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ ERR_IDX_GEN = $(RPATH_VAR2_T_$(CFG_BUILD)_H_$(CFG_BUILD)) $(ERR_IDX_GEN_EXE)
7777

7878
D := $(S)src/doc
7979

80-
DOC_TARGETS := trpl style
80+
DOC_TARGETS := trpl style error-index
8181
COMPILER_DOC_TARGETS :=
8282
DOC_L10N_TARGETS :=
8383

src/error-index-generator/main.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,15 @@ r##"<!DOCTYPE html>
5757
<html>
5858
<head>
5959
<title>Rust Compiler Error Index</title>
60+
<meta charset="utf-8">
61+
<!-- Include rust.css after main.css so its rules take priority. -->
62+
<link rel="stylesheet" type="text/css" href="main.css"/>
6063
<link rel="stylesheet" type="text/css" href="rust.css"/>
64+
<style>
65+
.error-undescribed {{
66+
display: none;
67+
}}
68+
</style>
6169
</head>
6270
<body>
6371
"##
@@ -79,7 +87,7 @@ r##"<!DOCTYPE html>
7987

8088
// Error title (with self-link).
8189
try!(write!(&mut output_file,
82-
"<h2 id=\"{0}\"><a href=\"#{0}\">{0}</a></h2>\n",
90+
"<h2 id=\"{0}\" class=\"section-header\"><a href=\"#{0}\">{0}</a></h2>\n",
8391
err_code
8492
));
8593

0 commit comments

Comments
 (0)