Skip to content

Commit

Permalink
Fix make release/docs command regenerate unused docs directory
Browse files Browse the repository at this point in the history
Signed-off-by: khanhtc1202 <[email protected]>
  • Loading branch information
khanhtc1202 committed Jul 19, 2023
1 parent 69bce19 commit 341f0c0
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions hack/gen-release-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,6 @@ echo "Prepare version docs ${VERSION}"

CONTENT_DIR=docs/content/en

# Update $CONTENT_DIR/docs
rm -rf $CONTENT_DIR/docs
cp -rf $CONTENT_DIR/docs-dev $CONTENT_DIR/docs
cat <<EOT > $CONTENT_DIR/docs/_index.md
---
title: "Welcome to PipeCD"
linkTitle: "Documentation"
weight: 1
menu:
main:
weight: 20
---
EOT

# Create new $CONTENT_DIR/docs-$VERSION
rm -rf $CONTENT_DIR/docs-$VERSION
cp -rf $CONTENT_DIR/docs-dev $CONTENT_DIR/docs-$VERSION
Expand Down

0 comments on commit 341f0c0

Please sign in to comment.