diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 744a967ca09ff4081d4c6f54fbafba6b74e66731..053f9d5d475d77eec11e0ca4c2e40f3ed4d986ff 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -58,6 +58,8 @@ mkdocs: - bash scripts/add_version.sh # get modules list from clusters - bash scripts/get_modules.sh + # regenerate modules matrix + - python scripts/modules-matrix.py > docs.it4i/modules-matrix.md # build pages - mkdocs build # compress search_index.json diff --git a/scripts/modules-matrix.py b/scripts/modules-matrix.py index 9ec07dbebd7be965dd32ffe460cc1cbd67a7eb4c..2b4b9f6981c518db318e4ba68ef82bb0332b2215 100755 --- a/scripts/modules-matrix.py +++ b/scripts/modules-matrix.py @@ -1,4 +1,5 @@ #!/usr/bin/python +# -*- coding: utf-8 -*- import csv import collections @@ -39,7 +40,7 @@ c=[ print '!!! Hint "Cluster Acronyms"' print ' A - Anselm • S - Salomon • U - uv1 at Salomon' - +print print '| Module </br><input id="searchInput" placeholder="🔍 Filter" style="width: 8rem; border-radius: 0.2rem; color: black; padding-left: .2rem;"> | Versions | Clusters |' print "| ------ | -------- | -------- |" @@ -69,5 +70,6 @@ for m in sorted(software.items(), key=lambda i: i[0].lower()): #print '</br>'.join(m[1].keys()) #print '</br>'.join(m[1].values()) print "| %s | %s | %s |" % (software, '</br>'.join(m[1].keys()), '</br>'.join(m[1].values())) - print - print '---8<--- "modules_matrix_search.md"' + +print +print '---8<--- "modules_matrix_search.md"'