Skip to content

Commit b903fcb

Browse files
GuillaumeGomezsyphar
authored andcommitted
Add information on how to retrigger documentation build on failed build pages
1 parent 62538f6 commit b903fcb

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

templates/crate/build_details.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@
2525
<strong>Build #{{ build_details.id }} {%- if let Some(build_time) = build_details.build_time %} {{ build_time.format("%F %T") }}{% endif %}</strong>
2626
</div>
2727

28+
{%- if build_details.build_status == "failure" -%}
29+
<p class="build-info">{{ crate::icons::IconTriangleExclamation.render_solid(false, false, "") }} Build failed. If you want to re-trigger a documentation build, you can do it on <a href="https://crates.io/crates/{{metadata.name}}/versions">crates.io</a>. You can find more information on <b>docs.rs</b> builds documentation on the <a href="/about/builds">builds page</a>.</p>
30+
{%- endif -%}
31+
2832
<ul>
2933
{%- for filename in all_log_filenames -%}
3034
<li>

templates/style/style.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,10 @@ div.recent-releases-container {
305305
}
306306
}
307307

308+
.build-info {
309+
margin: 1em;
310+
}
311+
308312
.release:hover,
309313
a.release:focus,
310314
.build-in-progress:hover {

0 commit comments

Comments
 (0)