Skip to content

Commit 85ea0ef

Browse files
committed
Improve metadata section
1 parent 4f4ae83 commit 85ea0ef

File tree

2 files changed

+13
-10
lines changed

2 files changed

+13
-10
lines changed

templates/about.hbs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -106,16 +106,16 @@
106106
<p>An example metadata:</p>
107107

108108
<pre><code>[package]
109-
name = "test"
110-
111-
[package.metadata.docs.rs]
112-
features = [ "feature1", "feature2" ]
113-
all-features = true
114-
no-default-features = true
115-
default-target = "x86_64-unknown-linux-gnu"
116-
rustc-args = [ "--example-rustc-arg" ]
117-
rustdoc-args = [ "--example-rustdoc-arg" ]
118-
dependencies = [ "example-system-dependency" ]</pre></code>
109+
name = "test"
110+
111+
[package.metadata.docs.rs]
112+
features = [ "feature1", "feature2" ]
113+
all-features = true
114+
no-default-features = true
115+
default-target = "x86_64-unknown-linux-gnu"
116+
rustc-args = [ "--example-rustc-arg" ]
117+
rustdoc-args = [ "--example-rustdoc-arg" ]
118+
dependencies = [ "example-system-dependency" ]</pre></code>
119119

120120
<h4>Version</h4>
121121
<p>Currently running Docs.rs version is: <strong>{{cratesfyi_version}}</strong>

templates/style.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -717,4 +717,7 @@ footer {
717717
strong {
718718
font-weight: bold;
719719
}
720+
pre code {
721+
background-color: inherit;
722+
}
720723
}

0 commit comments

Comments
 (0)