mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-24 17:06:29 +03:00
Add BADGES settings and mixin for pip and conda badges
This commit is contained in:
parent
9a481c9f42
commit
45d03ea05b
|
@ -63,7 +63,16 @@
|
||||||
"user": "spacy.us12",
|
"user": "spacy.us12",
|
||||||
"id": "83b0498b1e7fa3c91ce68c3f1",
|
"id": "83b0498b1e7fa3c91ce68c3f1",
|
||||||
"list": "89ad33e698"
|
"list": "89ad33e698"
|
||||||
|
},
|
||||||
|
"BADGES": {
|
||||||
|
"pipy": {
|
||||||
|
"badge": "https://img.shields.io/pypi/v/spacy.svg?style=flat-square",
|
||||||
|
"link": "https://pypi.python.org/pypi/spacy"
|
||||||
|
},
|
||||||
|
"conda": {
|
||||||
|
"badge": "https://anaconda.org/conda-forge/spacy/badges/version.svg",
|
||||||
|
"link": "https://anaconda.org/conda-forge/spacy"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -110,6 +110,17 @@ mixin gitter(button, label)
|
||||||
!=button
|
!=button
|
||||||
|
|
||||||
|
|
||||||
|
//- Badge
|
||||||
|
name - [string] "pipy" or "conda"
|
||||||
|
|
||||||
|
mixin badge(name)
|
||||||
|
- site = BADGES[name]
|
||||||
|
|
||||||
|
if site
|
||||||
|
+a(site.link).u-padding-small
|
||||||
|
img(src=site.badge alt="{name} version" height="20")
|
||||||
|
|
||||||
|
|
||||||
//- Logo
|
//- Logo
|
||||||
|
|
||||||
mixin logo()
|
mixin logo()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user