Skip to content

Commit 8f05fdb

Browse files
Add new rebuild section in about pages
1 parent c1135d1 commit 8f05fdb

File tree

4 files changed

+17
-6
lines changed

4 files changed

+17
-6
lines changed

static/trigger-rebuild.png

78.2 KB
Loading

templates/about-base.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ <h1 id="crate-title" class="no-description">Docs.rs documentation</h1>
1919
{% set text = "{} <span class='title'>Badges</span>"|format(text) %}
2020
{% call macros::active_link(expected="badges", href="/about/badges", text=text) %}
2121

22+
{% set text = crate::icons::IconRotateRight.render_solid(false, false, "") %}
23+
{% set text = "{} <span class='title'>Rebuild documentation</span>"|format(text) %}
24+
{% call macros::active_link(expected="rebuild", href="/about/rebuild", text=text) %}
25+
2226
{% set text = crate::icons::IconGears.render_solid(false, false, "") %}
2327
{% set text = "{} <span class='title'>Builds</span>"|format(text) %}
2428
{% call macros::active_link(expected="builds", href="/about/builds", text=text) %}

templates/core/about/builds.html

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -106,13 +106,15 @@ <h4 id="hitting-resource-limits"> <a href="#hitting-resource-limits">Hitting res
106106
</ul>
107107
</p>
108108

109-
<h4 id="failures-and-rebuilds"> <a href="#failures-and-rebuilds">Other failures and requesting rebuilds</a> </h4>
110-
<p>
111-
If your crate fails to build for a reason not listed here, please <a href="{{ docsrs_repo|safe }}/issues">file an issue</a>.
112-
Some build failures can be fixed by Docs.rs, e.g., by issuing a rebuild after a bug in Docs.rs has been fixed.
113-
</p>
109+
<h4 id="failures-and-rebuilds"><a href="#failures-and-rebuilds">Other failures and requesting rebuilds</a></h4>
110+
111+
<p>If your crate fails to build for a reason not listed here, you can rebuild it from <a href="https://crates.io">crates.io</a> website as you can see below:</p>
112+
113+
<img src="/-/static/trigger-rebuild.png" alt="crates.io dropdown menu showing two items: yank and rebuild docs">
114+
115+
<p>Or you can <a href="{{ docsrs_repo|safe }}/issues">file an issue</a> if you think it's a <b>docs.rs</b> issue.</p>
114116

115117
</div>
116-
<br />
118+
<br/>
117119
</div>
118120
{%- endblock body %}

templates/style/style.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,11 @@ pre {
208208
div.container {
209209
max-width: 1160px;
210210
text-align: left;
211+
212+
img {
213+
max-width: 100%;
214+
margin: 5px 0;
215+
}
211216
}
212217

213218
body.centered div.container {

0 commit comments

Comments
 (0)