Skip to content

Commit

Permalink
Replace rinja custom syntax with default syntax
Browse files Browse the repository at this point in the history
Since all angular code was removed, there is no conflict anymore before angular and jinja2 syntaxes so we can just use plain jinja2 syntax.
  • Loading branch information
GuillaumeGomez committed Oct 3, 2024
1 parent d52b9aa commit 8a3d4e1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 18 deletions.
6 changes: 0 additions & 6 deletions rinja.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,2 @@
[general]
dirs = ["util/gh-pages/"]
default_syntax = "mixed"

[[syntax]]
name = "mixed"
expr_start = "{("
expr_end = ")}"
24 changes: 12 additions & 12 deletions util/gh-pages/index_template.html
Original file line number Diff line number Diff line change
Expand Up @@ -143,50 +143,50 @@ <h1>Clippy Lints</h1>
</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)">&para;</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)">&para;</a>
<a href="" class="anchor label label-default" onclick="copyToClipboard(event)">
&#128203;
</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">&plus;</span>
</div>
</h2>
</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>
Expand Down

0 comments on commit 8a3d4e1

Please sign in to comment.