Replace rinja custom syntax with default syntax
Since all angular code was removed, there is no conflict anymore before angular and jinja2 syntaxes so we can just use plain jinja2 syntax.
This commit is contained in:
parent
d52b9aa564
commit
8a3d4e1a70
@ -1,8 +1,2 @@
|
||||
[general]
|
||||
dirs = ["util/gh-pages/"]
|
||||
default_syntax = "mixed"
|
||||
|
||||
[[syntax]]
|
||||
name = "mixed"
|
||||
expr_start = "{("
|
||||
expr_end = ")}"
|
||||
|
@ -143,21 +143,21 @@ Otherwise, have a great day =^.^=
|
||||
</div>
|
||||
</div>
|
||||
{% for lint in lints %}
|
||||
<article class="panel panel-default collapsed" id="{(lint.id)}">
|
||||
<header class="panel-heading" onclick="expandLint('{(lint.id)}')">
|
||||
<article class="panel panel-default collapsed" id="{{lint.id}}">
|
||||
<header class="panel-heading" onclick="expandLint('{{lint.id}}')">
|
||||
<h2 class="panel-title">
|
||||
<div class="panel-title-name" id="lint-{(lint.id)}">
|
||||
<span>{(lint.id)}</span>
|
||||
<a href="#{(lint.id)}" class="anchor label label-default" onclick="openLint(event)">¶</a>
|
||||
<div class="panel-title-name" id="lint-{{lint.id}}">
|
||||
<span>{{lint.id}}</span>
|
||||
<a href="#{{lint.id}}" class="anchor label label-default" onclick="openLint(event)">¶</a>
|
||||
<a href="" class="anchor label label-default" onclick="copyToClipboard(event)">
|
||||
📋
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="panel-title-addons">
|
||||
<span class="label label-lint-group label-default label-group-{(lint.group)}">{(lint.group)}</span>
|
||||
<span class="label label-lint-group label-default label-group-{{lint.group}}">{{lint.group}}</span>
|
||||
|
||||
<span class="label label-lint-level label-lint-level-{(lint.level)}">{(lint.level)}</span>
|
||||
<span class="label label-lint-level label-lint-level-{{lint.level}}">{{lint.level}}</span>
|
||||
|
||||
<span class="label label-doc-folding">+</span>
|
||||
</div>
|
||||
@ -165,28 +165,28 @@ Otherwise, have a great day =^.^=
|
||||
</header>
|
||||
|
||||
<div class="list-group lint-docs">
|
||||
<div class="list-group-item lint-doc-md">{(Self::markdown(lint.docs))}</div>
|
||||
<div class="list-group-item lint-doc-md">{{Self::markdown(lint.docs)}}</div>
|
||||
<div class="lint-additional-info-container">
|
||||
{# Applicability #}
|
||||
<div class="lint-additional-info-item">
|
||||
<span> Applicability: </span>
|
||||
<span class="label label-default label-applicability">{( lint.applicability_str() )}</span>
|
||||
<span class="label label-default label-applicability">{{ lint.applicability_str() }}</span>
|
||||
<a href="https://doc.rust-lang.org/nightly/nightly-rustc/rustc_lint_defs/enum.Applicability.html#variants">(?)</a>
|
||||
</div>
|
||||
{# Clippy version #}
|
||||
<div class="lint-additional-info-item">
|
||||
<span>{% if lint.group == "deprecated" %}Deprecated{% else %} Added{% endif %} in: </span>
|
||||
<span class="label label-default label-version">{(lint.version)}</span>
|
||||
<span class="label label-default label-version">{{lint.version}}</span>
|
||||
</div>
|
||||
{# Open related issues #}
|
||||
<div class="lint-additional-info-item">
|
||||
<a href="https://github.com/rust-lang/rust-clippy/issues?q=is%3Aissue+{(lint.id)}">Related Issues</a>
|
||||
<a href="https://github.com/rust-lang/rust-clippy/issues?q=is%3Aissue+{{lint.id}}">Related Issues</a>
|
||||
</div>
|
||||
|
||||
{# Jump to source #}
|
||||
{% if let Some(id_location) = lint.id_location %}
|
||||
<div class="lint-additional-info-item">
|
||||
<a href="https://github.com/rust-lang/rust-clippy/blob/master/clippy_lints/{(id_location)}">View Source</a>
|
||||
<a href="https://github.com/rust-lang/rust-clippy/blob/master/clippy_lints/{{id_location}}">View Source</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user