diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2021-11-22 23:30:29 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-22 23:30:29 +0100 |
| commit | cb7776758c4ce20e7b20526cc753cf33a9ba6bdf (patch) | |
| tree | 1edf962825a808486de00ef5a609a726d609ec56 /src/tools | |
| parent | 936f2600b6c903b04387f74ed5cbce88bb06d243 (diff) | |
| parent | a56559df1346c44aa058f3a82785f20230a0468f (diff) | |
Rollup merge of #91102 - jsha:theme-anchor, r=GuillaumeGomez
Set color for <a> in a more straightforward way. Previously, we set the default color for <a> tags to black, and then had an override with a bunch of not() clauses to set anchors in docblocks to blue. Instead, we should set the default color for <a> to blue (or equivalent in other themes), and override it for places like the sidebar or search results, where we don't want them to be styled as links. Demo at https://rustdoc.crud.net/jsha/theme-anchor/std/string/struct.String.html. This should result in no visible changes. r? `@GuillaumeGomez`
Diffstat (limited to 'src/tools')
| -rw-r--r-- | src/tools/rustdoc-gui/tester.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tools/rustdoc-gui/tester.js b/src/tools/rustdoc-gui/tester.js index b598c63f52a..0d6a2605d4f 100644 --- a/src/tools/rustdoc-gui/tester.js +++ b/src/tools/rustdoc-gui/tester.js @@ -194,7 +194,7 @@ async function main(argv) { .then(out => { const [output, nb_failures] = out; results[nb_failures === 0 ? "successful" : "failed"].push({ - file_name: file_name, + file_name: testPath, output: output, }); if (nb_failures > 0) { @@ -206,7 +206,7 @@ async function main(argv) { }) .catch(err => { results.errored.push({ - file_name: file_name, + file_name: testPath + file_name, output: err, }); status_bar.erroneous(); @@ -239,7 +239,7 @@ async function main(argv) { console.log(""); results.failed.sort(by_filename); results.failed.forEach(r => { - console.log(r.output); + console.log(r.file_name, r.output); }); } if (results.errored.length > 0) { @@ -247,7 +247,7 @@ async function main(argv) { // print run errors on the bottom so developers see them better results.errored.sort(by_filename); results.errored.forEach(r => { - console.error(r.output); + console.error(r.file_name, r.output); }); } |
