Skip to content
Snippets Groups Projects
Commit 65e47c6a authored by Laurent Heirendt's avatar Laurent Heirendt :airplane:
Browse files

Merge branch 'develop' into 'master'

[release] Regular merge of develop

See merge request R3/howto-cards!357
parents 16a4c92f a3d33d1b
No related branches found
Tags v4.5.0
No related merge requests found
......@@ -56,21 +56,23 @@ def build_section_start(title, shortcut):
def build_section_end():
return "\t\t</ul>\n\t</div>"
def save_order(localroot, root, filename):
order = ""
def save_tag(localroot, root, filename, tag):
return_tag = ""
os.chdir(root)
length_tag = len(tag)
with open(filename, 'r') as f:
for line in f:
# check for the start of the section
if line[0:6] == "order:":
order = line[7:]
if line[0:length_tag+1] == tag + ":":
return_tag = line[length_tag+2:]
break
# change back to the local root
os.chdir(localroot)
return order.rstrip()
return return_tag.rstrip()
def get_ignore():
return ["404.html",
......@@ -147,7 +149,7 @@ def remove_header(localroot, root, filename):
return n
def generate_header(folder, permalink, shortcut, order, legacy_from):
def generate_header(folder, permalink, shortcut, order, legacy_from, title, description):
header = "---\n"
if len(order) > 0:
......@@ -167,6 +169,13 @@ def generate_header(folder, permalink, shortcut, order, legacy_from):
if "lab-software" in permalink or "lab-equipment" in permalink or "lab-hsa" in permalink:
header += " - /cards/" + root_lab(shortcut) + "\n"
header += " - /" + folder + "/cards/" + root_lab(shortcut) + "\n"
# add the title and description
if len(title) > 0:
header += "title: " + title + "\n"
if len(description) > 0:
header += "description: " + description + "\n"
# include the legacy section
if len(legacy_from) > 0:
for item in legacy_from:
......@@ -254,8 +263,10 @@ for folder in cardDirs:
print(" > Generating header for: " + fileName)
# save order and legacy section
order = save_order(localroot, root, file)
order = save_tag(localroot, root, file, "order")
legacy_from = save_legacy_from(localroot, root, file)
title = save_tag(localroot, root, file, "title")
description = save_tag(localroot, root, file, "description")
# remove the previous header
n = remove_header(localroot, root, file)
......@@ -289,7 +300,7 @@ for folder in cardDirs:
orderArr[indexS] = []
# generate the header for each card
header = generate_header(folder, permalink, shortcut, order, legacy_from)
header = generate_header(folder, permalink, shortcut, order, legacy_from, title, description)
# add autogenerated links to whitelist
whiteList += generate_whitelist_entry(folder, permalink, shortcut)
......
......@@ -32,7 +32,7 @@
align-content: flex-start;
padding-right: 10px;
border: solid 1px rgba(0,0,0,0);
border-right: solid 2px rgba(240, 240, 240, 0.7);
border-right: solid 2px rgba(240, 240, 240, 0.7);
}
@media (max-width: 1080px) {
.container > .left-inner-container {
......@@ -241,19 +241,19 @@
color: #ccc;
}
.right-inner-container.droppable > .card-pinned.card-grayed.card-pulsate {
animation-name: stretch;
animation-name: stretch;
animation-duration: 0.6s;
animation-direction: alternate;
animation-iteration-count: infinite;
animation-play-state: running;
}
@keyframes stretch {
0% {
transform: scale(.90);
}
100% {
transform: scale(1.1);
}
animation-direction: alternate;
animation-iteration-count: infinite;
animation-play-state: running;
}
@keyframes stretch {
0% {
transform: scale(.90);
}
100% {
transform: scale(1.1);
}
}
/* ==================================================== */
/* Search bar */
......@@ -305,15 +305,15 @@ div.search-bar {
text-align: center;
cursor: pointer;
}
@media (max-width: 1080px) {
@media (max-width: 1080px) {
.indicator {
top: 128px;
right: 72px;
}
}
@media (max-width: 650px) {
@media (max-width: 700px) {
.indicator {
top: 50px;
top: 10px;
right: 50px;
}
}
......@@ -330,7 +330,7 @@ div.search-bar {
/* Tooltip */
/* ==================================================== */
.tooltip .tooltip-text {
visibility: hidden;
visibility: hidden;
width: 400px;
right: 120%;
top: -43px;
......
......@@ -6,6 +6,8 @@ shortcut: access:harrenhal-access
redirect_from:
- /cards/access:harrenhal-access
- /external/cards/access:harrenhal-access
title: HARRENHAL access
description: This is the howto card that describes the access procedure to the HARRENHAL system
---
# HARRENHAL access
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment