Commit bb2379b9 authored by Ben Huber's avatar Ben Huber

include badges on main page

parent cfefc214
Pipeline #751 passed with stages
in 8 minutes and 11 seconds
<svg xmlns="http://www.w3.org/2000/svg" width="98" height="20" style="vertical-align: middle;"> <linearGradient id="b" x2="0" y2="100%"> <stop offset="0" stop-color="#bbb" stop-opacity=".1"/> <stop offset="1" stop-opacity=".1"/> </linearGradient> <mask id="a"> <rect width="98" height="20" rx="3" fill="#fff"/> </mask> <g mask="url(#a)"> <path fill="#555" d="M0 0 h55 v20 H0 z"/> <path fill="#5af" d="M55 0 h43 v20 H55 z"/> <path fill="url(#b)" d="M0 0 h98 v20 H0 z"/> </g> <g fill="#fff" text-anchor="middle"> <g font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11" alignment-baseline="baseline"> <text x="28" y="15" fill="#010101" fill-opacity=".3"> version </text> <text x="28" y="14"> version </text> <text x="77" y="15" fill="#010101" fill-opacity=".3"> __version </text> <text x="77" y="14"> __version </text> </g> </g></svg>
module Jekyll
class TabsConverter < Converter
safe true
priority :low
class TabsConverter < Converter
safe true
priority :low
def matches(ext)
ext =~ /^\.md$/i
end
def matches(ext)
ext =~ /^\.md$/i
end
def output_ext(ext)
".html"
end
def output_ext(ext)
".html"
end
def convert(content)
content.gsub('<p>__tabsInit</p>', "<input id=\"tab1\" type=\"radio\" name=\"tabs\" checked><input id=\"tab2\" type=\"radio\" name=\"tabs\">")
.gsub('<p>__tabsStart</p>', "<div id=\"tabs\"><label for=\"tab1\">C++</label><label for=\"tab2\">Python</label><div id=\"content\"><section id=\"content1\">")
.gsub('<p>__tabsMid</p>', "</section><section id=\"content2\">")
.gsub('<p>__tabsEnd</p>', "</section></div></div>")
.gsub('<p>__dangerStart</p>', "<div class=\"alert alert-danger\">")
.gsub('<p>__dangerEnd</p>', "</div>")
.gsub('<p>__warnStart</p>', "<div class=\"alert alert-warning\">")
.gsub('<p>__warnEnd</p>', "</div>")
end
end
def convert(content)
content.gsub('<p>__tabsInit</p>', "<input id=\"tab1\" type=\"radio\" name=\"tabs\" checked><input id=\"tab2\" type=\"radio\" name=\"tabs\">")
.gsub('<p>__tabsStart</p>', "<div id=\"tabs\"><label for=\"tab1\">C++</label><label for=\"tab2\">Python</label><div id=\"content\"><section id=\"content1\">")
.gsub('<p>__tabsMid</p>', "</section><section id=\"content2\">")
.gsub('<p>__tabsEnd</p>', "</section></div></div>")
.gsub('<p>__dangerStart</p>', "<div class=\"alert alert-danger\">")
.gsub('<p>__dangerEnd</p>', "</div>")
.gsub('<p>__warnStart</p>', "<div class=\"alert alert-warning\">")
.gsub('<p>__warnEnd</p>', "</div>")
.gsub('__breakFix1</a></p>', "")
.gsub('<p>__breakFix2', "</a>")
.gsub('__version', %x( git describe --tags --always --abbrev=0 ) )
end
end
end
......@@ -5,6 +5,15 @@ subtitle: "a general purpose tensor library"
---
# Xerus
**master:** <a href="https://git.hemio.de/xerus/xerus/commits/master"><img alt="build status" src="https://git.hemio.de/xerus/xerus/badges/master/build.svg" /></a>
<a href="https://git.hemio.de/xerus/xerus/commits/master"><img alt="coverage report" src="https://git.hemio.de/xerus/xerus/badges/master/coverage.svg" /></a>
<a href="https://git.hemio.de/xerus/xerus/commits/master">
__breakFix1
{% include version.svp %}
__breakFix2
**development:** <a href="https://git.hemio.de/xerus/xerus/commits/development"><img alt="build status" src="https://git.hemio.de/xerus/xerus/badges/development/build.svg" /></a>
<a href="https://git.hemio.de/xerus/xerus/commits/development"><img alt="coverage report" src="https://git.hemio.de/xerus/xerus/badges/development/coverage.svg" /></a>
The `xerus` library is a general purpose library for numerical calculations with higher order tensors, Tensor-Train Decompositions / Matrix Product States and general Tensor Networks.
The focus of development was the simple usability and adaptibility to any setting that requires higher order tensors or decompositions thereof.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment