Skip to content
Snippets Groups Projects
Verified Commit 17089d74 authored by Laurent Heirendt's avatar Laurent Heirendt :airplane:
Browse files

intro of qmsdoc

parent 077044f7
No related branches found
No related tags found
No related merge requests found
......@@ -68,13 +68,18 @@ def generate_header(folder, permalink, shortcut, order, legacy_from, title, desc
# generate specific redirects
header = element_header(folder, " - ", shortcut, header)
if "qms" in permalink or "policies" in permalink or "sops" in permalink:
qmsDoc = True
else:
qmsDoc = False
# include the legacy section in the redirect_from section
if len(legacy_from) > 0:
for item in legacy_from[1:-1]:
header += str(item)
# add the title and description
if "qms" in permalink:
if qmsDoc:
if len(title) > 0:
header += 'title: "' + title + '"\n'
if len(description) > 0:
......@@ -88,8 +93,8 @@ def generate_header(folder, permalink, shortcut, order, legacy_from, title, desc
header += "---"
# add title for QMS documents
if "qms" in shortcut and qms_yml:
header += "\n# " + title
if qmsDoc:
header += "\n# " + title + "\n"
print(title)
......
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