Skip to content

Commit a1e047d

Browse files
committed
Update mcpm registry visual
1 parent 894e532 commit a1e047d

File tree

3 files changed

+963
-336
lines changed

3 files changed

+963
-336
lines changed

dev.sh

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,17 @@ if ! docker info &> /dev/null; then
88
exit 1
99
fi
1010

11+
# Check if fswatch is installed, if not install it
12+
if ! command -v fswatch &> /dev/null; then
13+
echo "🔄 Installing fswatch..."
14+
if [[ "$OSTYPE" == "darwin"* ]]; then
15+
brew install fswatch
16+
else
17+
echo "❌ fswatch is required but not installed. Please install it manually for your system."
18+
exit 1
19+
fi
20+
fi
21+
1122
# Cleanup previous development files
1223
echo -e "🗑️ Cleaning up previously generated files...\n"
1324
rm -rf pages/api/servers
@@ -26,15 +37,30 @@ rm -rf "$DEV_DIR"/*
2637
echo -e "🔄 Copying site content to development directory...\n"
2738
cp -r pages/* "$DEV_DIR"/
2839

40+
# Function to run prepare.sh
41+
run_prepare() {
42+
echo -e "\n🔄 Changes detected, updating development environment..."
43+
cp -r pages/* "$DEV_DIR"/
44+
./scripts/prepare.sh "$DEV_DIR"
45+
echo -e "✅ Update complete!\n"
46+
}
47+
2948
# Run the common preparation script
3049
mkdir -p "$DEV_DIR/registry"
3150
./scripts/prepare.sh "$DEV_DIR"
3251

3352
echo -e "✅ Setup complete!\n"
3453

35-
echo -e "\n🌐 Starting Jekyll development server..."
54+
echo -e "\n👀 Watching for changes in pages directory..."
55+
echo -e "🌐 Starting Jekyll development server..."
3656
echo " Access the site at http://localhost:4000"
3757
echo -e " Press Ctrl+C to stop the server\n"
58+
59+
# Start fswatch in the background to watch for changes
60+
fswatch -o pages | while read; do
61+
run_prepare
62+
done &
63+
3864
# Start Jekyll dev server using Docker from the _dev directory
3965
cd "$DEV_DIR" && docker run --rm -it \
4066
-v "$PWD:/srv/jekyll" \

pages/_includes/nav.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,12 @@
77
<a href="/registry/" class="nav-link {% if page.url contains '/registry/' %}active{% endif %}">Registry</a>
88
</div>
99
<div class="right-links">
10-
<a href="https://github.com/pathintegral-institute/mcpm.sh/blob/main/CONTRIBUTING.md" target="_blank" class="nav-link">Contribute</a>
10+
<a href="https://github.com/pathintegral-institute/mcpm.sh/blob/main/CONTRIBUTING.md" target="_blank" class="nav-link">
11+
Contribute
12+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="margin-left: 5px; vertical-align: -3px;">
13+
<path d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22"></path>
14+
</svg>
15+
</a>
1116
</div>
1217
</div>
1318
</div>

0 commit comments

Comments
 (0)