-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of #108757 - clubby789:askama-move, r=notriddle,jsha,Gui…
…llaumeGomez rustdoc: Migrate `document_item_info` to Askama https://rust-lang.zulipchat.com/#narrow/stream/266220-rustdoc/topic/rustdoc.20allocations.20are.20slow Hoping to piece-by-piece migrate things to template. Had a few failed attempts at more complex parts of the code, so this is just a start.
- Loading branch information
Showing
3 changed files
with
84 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{% if !items.is_empty() %} | ||
<span class="item-info"> {# #} | ||
{% for item in items %} | ||
{{item|safe}} {# #} | ||
{% endfor %} | ||
</span> | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{% match self %} | ||
{% when Self::Deprecation with { message } %} | ||
<div class="stab deprecated"> {# #} | ||
<span class="emoji">👎</span> {# #} | ||
<span>{{message}}</span> {# #} | ||
</div> {# #} | ||
{% when Self::Unstable with { feature, tracking } %} | ||
<div class="stab unstable"> {# #} | ||
<span class="emoji">🔬</span> {# #} | ||
<span> {# #} | ||
This is a nightly-only experimental API. ({# #} | ||
<code>{{feature}}</code> {# #} | ||
{% match tracking %} | ||
{% when Some with ((url, num)) %} | ||
<a href="{{url}}{{num}}">#{{num}}</a> {# #} | ||
{% when None %} | ||
{% endmatch %} | ||
) {# #} | ||
</span> {# #} | ||
</div> {# #} | ||
{% when Self::Portability with { message } %} | ||
<div class="stab portability">{{message|safe}}</div> {# #} | ||
{% endmatch %} |