Skip to content

Commit

Permalink
Fix make release/docs command regenerate unused docs directory (#4513)
Browse files Browse the repository at this point in the history
Signed-off-by: khanhtc1202 <[email protected]>
  • Loading branch information
khanhtc1202 authored Jul 20, 2023
1 parent 80aaebf commit c9bdfc9
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 c9bdfc9

Please sign in to comment.