Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clone headlamp on link #43

Merged
merged 2 commits into from
Aug 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
Loading