Skip to content

Commit d1415be

Browse files
authored
Add aliases to redisvl frontmatter (#1810)
1 parent 5e1b0aa commit d1415be

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/redisvl_docs_sync.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,16 @@ jobs:
6161
linkTitle=$(awk '{ $1=$1; for (i=2; i<=NF; i++) if ($i != "RedisVL" && $i != "API" && $i != "CLI" && $i != "LLMs" && $i != "JSON") $i=tolower($i); print }' <<< "${linkTitle}")
6262
fi
6363
64+
# Get alias
65+
alias=$(echo ${src} | sed -E 's|./redis_vl_hugo/|/integrate/redisvl/| ; s|\.md$|| ; s|\/_index$||')
66+
6467
# Inject frontmatter in destination file
6568
cat >_tmp <<EOL
6669
---
6770
linkTitle: ${linkTitle}
6871
title: ${title}
72+
aliases:
73+
- ${alias}
6974
EOL
7075
7176
# Inject weight property for index pages to preserve order

0 commit comments

Comments
 (0)