Skip to content

Commit 8f80d86

Browse files
committed
Small scrape-example fixes
1 parent 24a71cb commit 8f80d86

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/doc/rustdoc/src/unstable-features.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ This option, combined with `--scrape-examples-target-crate` and `--scrape-exampl
462462

463463
```bash
464464
$ rustdoc examples/ex.rs -Z unstable-options \
465-
--extern foobar=target/deps/libfoobar.rmeta
465+
--extern foobar=target/deps/libfoobar.rmeta \
466466
--scrape-examples-target-crate foobar \
467467
--scrape-examples-output-path output.calls
468468
$ rustdoc src/lib.rs -Z unstable-options --with-examples output.calls

src/librustdoc/html/static/css/rustdoc.css

+6-1
Original file line numberDiff line numberDiff line change
@@ -453,11 +453,16 @@ nav.sub {
453453
text-decoration: underline;
454454
}
455455

456-
.rustdoc:not(.source) .example-wrap > pre:not(.line-numbers) {
456+
.rustdoc:not(.source) .example-wrap > pre:not(.line-number) {
457457
width: 100%;
458458
overflow-x: auto;
459459
}
460460

461+
.rustdoc:not(.source) .example-wrap > pre.line-numbers {
462+
width: auto;
463+
overflow-x: visible;
464+
}
465+
461466
.rustdoc .example-wrap > pre {
462467
margin: 0;
463468
}

0 commit comments

Comments
 (0)