Skip to content

Commit

Permalink
Merge pull request #43 from headlamp-k8s/clone-headlamp-on-link
Browse files Browse the repository at this point in the history
Clone headlamp on link
  • Loading branch information
joaquimrocha authored Aug 16, 2024
2 parents 0879ee8 + 095fcab commit c1ef754
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 2 deletions.
19 changes: 18 additions & 1 deletion link-docs.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,27 @@
#!/usr/bin/env sh
set -e

TARGET=${HEADLAMP_DOCS:-${1:-../headlamp/docs}}
TARGET=${HEADLAMP_DOCS:-${1}}

# Clone the repository if the TARGET doesn't exist
if [ ! -e "$TARGET" ]; then
if [ ! -e "./headlamp" ]; then
echo "Cloning headlamp/docs repository..."
git clone --depth 1 https://github.com/headlamp-k8s/headlamp.git ./headlamp
elif [ -d "./headlamp/.git" ]; then
echo "Updating headlamp/docs repository..."
git -C ./headlamp pull
fi
make docs -C ./headlamp

TARGET=$(realpath ./headlamp/docs)
fi

TARGET_PATH=$(realpath "$TARGET")
LINK_PATH="./docs/latest"

echo "Using Headlamp docs target: $TARGET_PATH"

mkdir -p $(dirname $LINK_PATH)

# Remove the existing link if it exists
Expand Down
2 changes: 1 addition & 1 deletion src/components/LandingPage/LandingPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default function LandingPage(): JSX.Element {
<HomepageHeader />
<section className={styles.videoContainer}>
<video
src="/hl-preview.mp4"
src="/hl-preview.webm"
autoPlay
loop
muted
Expand Down
Binary file removed static/hl-preview.mp4
Binary file not shown.
Binary file added static/hl-preview.webm
Binary file not shown.

0 comments on commit c1ef754

Please sign in to comment.