-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathREADME.j2
More file actions
36 lines (31 loc) · 1.99 KB
/
Copy pathREADME.j2
File metadata and controls
36 lines (31 loc) · 1.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{# custom template based on cargo-doc2readme default #}
{%- if crate -%}
<p align="center">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="docs/logo/dark/logo.svg">
<source media="(prefers-color-scheme: light)" srcset="docs/logo/light/logo.svg">
<img src="docs/logo/light/logo.svg" alt="asic-rs" width="180">
</picture>
</p>
# {{ crate }}
{%- if license %}  | urlencode }}-blue)
{%- else %} 
{%- endif %}
{%- if crate %} [](https://crates.io/crates/{{ crate | urlencode }})
{%- if target == "lib" %} [](https://docs.rs/{{ crate | urlencode }})
{%- endif %}
{%- endif %}
{%- if repository %}
{%- if repository_host == "github.com" %} []({{ repository }})
{%- elif repository_host == "gitlab.com" %} []({{ repository }})
{%- elif repository_host == "codeberg.org" %} []({{ repository }})
{%- elif repository_host %} [ | urlencode }}-blue)]({{ repository }})
{%- endif %}
{%- endif %}
{%- if rust_version %} 
{%- endif %} [](https://conventionalcommits.org)
{%- endif %}
{{ readme }}
{%- if links != "" %}
{{ links }}
{%- endif -%}