Skip to content

Commit 85ceb51

Browse files
committed
Add SciML code style badge
1 parent 90190be commit 85ceb51

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

src/PkgTemplates.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ export
4343
Readme,
4444
RegisterAction,
4545
Runic,
46+
SciMLBadge,
4647
Secret,
4748
SrcDir,
4849
TagBot,

src/plugins/badges.jl

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,21 @@ function badges(::BlueStyleBadge)
2020
)
2121
end
2222

23+
"""
24+
SciMLStyleBadge()
25+
26+
Adds a [`SciMLStyle`](https://github.com/SciML/SciMLStyle) badge to the [`Readme`](@ref) file.
27+
"""
28+
struct SciMLStyleBadge <: BadgePlugin end
29+
30+
function badges(::SciMLStyleBadge)
31+
return Badge(
32+
"Code Style: SciML",
33+
"https://img.shields.io/badge/code_style-SciML-9558b2.svg",
34+
"https://github.com/SciML/SciMLStyle",
35+
)
36+
end
37+
2338
"""
2439
ColPracBadge()
2540

0 commit comments

Comments
 (0)