Skip to content

Commit 0b0499c

Browse files
Copy only contents of the guide folder (#12)
* Copy only contents of the guide folder * Adding Guides redirection rule.
1 parent 9a09dd8 commit 0b0499c

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ for repo_name in "${GUIDE_REPOS[@]}"; do
1717
echo "Cloning ${GIT_ORG}/${repo_name}.git"
1818
git clone "${GIT_ORG}/${repo_name}.git" "${GUIDE_REPOS_CLONE_DIR}/${repo_name}/"
1919
rm -rf "${GUIDES_TARGET_DIR:?}/${repo_name}"
20-
cp -r "${GUIDE_REPOS_CLONE_DIR}/${repo_name}/guide/" "${GUIDES_TARGET_DIR}"
20+
cp -r "${GUIDE_REPOS_CLONE_DIR}/${repo_name}/guide/." "${GUIDES_TARGET_DIR}"
2121
done
2222
echo "------------------Guides Setup Completed ---------------------------"
2323

netlify.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,8 @@
2424
# The Branch Deploy Context applies to all non-master branches deployed, whether they are in a Deploy Preview or not:
2525
[context.branch-deploy.environment]
2626
HUGO_VERSION = "0.109.0"
27+
28+
[[redirects]]
29+
from = "/guides/guide/*"
30+
to = "/guides/:splat"
31+
status = 301

0 commit comments

Comments
 (0)