Skip to content

Commit 7a11b8d

Browse files
committed
chore: add script to update doc URLs
Signed-off-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com>
1 parent fc6f18a commit 7a11b8d

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

update-doc-urls.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/bash
2+
3+
TARGET_DIR="content/posts"
4+
5+
# Verify directory exists
6+
if [ ! -d "$TARGET_DIR" ]; then
7+
echo "Error: Directory $TARGET_DIR not found."
8+
exit 1
9+
fi
10+
11+
echo "Updating documentation version..."
12+
13+
# Perform the replacement
14+
find "$TARGET_DIR" -type f -exec sed -i 's|/docs/1.28/|/docs/1.29/|g' {} +
15+
16+
echo "Done."

0 commit comments

Comments
 (0)