From bb2379b9b79adb3f961be6fdd0b8646bd70075c6 Mon Sep 17 00:00:00 2001 From: Ben Huber Date: Mon, 29 May 2017 18:11:58 +0200 Subject: [PATCH] include badges on main page --- doc/jekyll/_includes/version.svp | 1 + doc/jekyll/_plugins/tabs.rb | 43 +++++++++++++++++--------------- doc/jekyll/index.md | 9 +++++++ 3 files changed, 33 insertions(+), 20 deletions(-) create mode 100644 doc/jekyll/_includes/version.svp diff --git a/doc/jekyll/_includes/version.svp b/doc/jekyll/_includes/version.svp new file mode 100644 index 0000000..3d33870 --- /dev/null +++ b/doc/jekyll/_includes/version.svp @@ -0,0 +1 @@ + version version __version __version diff --git a/doc/jekyll/_plugins/tabs.rb b/doc/jekyll/_plugins/tabs.rb index a7424d7..796567c 100644 --- a/doc/jekyll/_plugins/tabs.rb +++ b/doc/jekyll/_plugins/tabs.rb @@ -1,26 +1,29 @@ 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('

__tabsInit

', "") - .gsub('

__tabsStart

', "
") - .gsub('

__tabsMid

', "
") - .gsub('

__tabsEnd

', "
") - .gsub('

__dangerStart

', "
") - .gsub('

__dangerEnd

', "
") - .gsub('

__warnStart

', "
") - .gsub('

__warnEnd

', "
") - end - end + def convert(content) + content.gsub('

__tabsInit

', "") + .gsub('

__tabsStart

', "
") + .gsub('

__tabsMid

', "
") + .gsub('

__tabsEnd

', "
") + .gsub('

__dangerStart

', "
") + .gsub('

__dangerEnd

', "
") + .gsub('

__warnStart

', "
") + .gsub('

__warnEnd

', "
") + .gsub('__breakFix1

', "") + .gsub('

__breakFix2', "") + .gsub('__version', %x( git describe --tags --always --abbrev=0 ) ) + end +end end diff --git a/doc/jekyll/index.md b/doc/jekyll/index.md index 7a6c648..f08a71f 100644 --- a/doc/jekyll/index.md +++ b/doc/jekyll/index.md @@ -5,6 +5,15 @@ subtitle: "a general purpose tensor library" --- # Xerus +**master:** build status +coverage report + +__breakFix1 +{% include version.svp %} +__breakFix2 +**development:** build status +coverage report + 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. -- GitLab