-
-
Notifications
You must be signed in to change notification settings - Fork 38
chore: social cover santa update #534
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
WalkthroughThe Docusaurus configuration file was updated to reference a seasonal variation of the social media cover image, changing the path from the standard social cover graphic to a Christmas-themed version in the footer metadata. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~1 minute Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
📜 Review details
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (1)
static/img/social-cover-xmas.pngis excluded by!**/*.png,!**/*.png
📒 Files selected for processing (1)
docusaurus.config.js
| }, | ||
|
|
||
| image: '/img/social-cover.png', | ||
| image: '/img/social-cover-xmas.png', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
# Verify the Christmas-themed social cover image exists
fd 'social-cover' . --type fRepository: zenstackhq/zenstack-docs
Length of output: 50
🏁 Script executed:
#!/bin/bash
# Find the img directory and list its contents
find . -type d -name 'img' 2>/dev/null
# Also check for static directories
find . -type d -name 'static' 2>/dev/null | head -5
# List files in potential img locations
find . -path '*static/img*' -type f 2>/dev/null | head -20Repository: zenstackhq/zenstack-docs
Length of output: 76
🏁 Script executed:
#!/bin/bash
# List static directory contents
ls -la ./static/
# Check if img directory exists in static
[ -d ./static/img ] && echo "=== Contents of static/img ===" && ls -la ./static/img/
# Show relevant part of docusaurus.config.js around line 224
echo "=== docusaurus.config.js around line 224 ==="
sed -n '220,230p' ./docusaurus.config.jsRepository: zenstackhq/zenstack-docs
Length of output: 689
🏁 Script executed:
#!/bin/bash
# Check the git diff for this specific file to see what changed
git diff HEAD~1 docusaurus.config.js | grep -A5 -B5 'social-cover'
# Also check what the old value was
git show HEAD~1:docusaurus.config.js 2>/dev/null | sed -n '220,230p'Repository: zenstackhq/zenstack-docs
Length of output: 254
🏁 Script executed:
#!/bin/bash
# Search for image references in the config
grep -n 'image:' ./docusaurus.config.js
# Search for any PNG files in the entire repository
find . -name '*.png' -type f 2>/dev/null
# Check if there are other common asset directories
find . -type d \( -name 'assets' -o -name 'images' -o -name 'public' \) 2>/dev/nullRepository: zenstackhq/zenstack-docs
Length of output: 120
The referenced image asset /img/social-cover-xmas.png does not exist in the repository.
This will cause broken social media previews. The /img directory and all PNG files are missing from the static directory. Either add the missing image asset or revert the configuration change to a valid image reference.
🤖 Prompt for AI Agents
In docusaurus.config.js around line 224 the site references image:
'/img/social-cover-xmas.png' which does not exist in the repository; either add
the missing file at static/img/social-cover-xmas.png (commit the PNG to the
repo) or update the config to point to an existing static image path (e.g., an
existing file under static/img or a remote URL); after updating, run a local
build or preview to confirm the social preview image resolves and include the
added/updated asset in the same PR.
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.