-
Notifications
You must be signed in to change notification settings - Fork 26
feat: Add comprehensive metadata enhancement system #139
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
Open
Akshay-datazip
wants to merge
12
commits into
master
Choose a base branch
from
feature/enhanced-metadata-seo
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 3 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
7e23973
feat: Add comprehensive metadata enhancement system
Akshay-datazip fb1da41
feat: Add breadcrumb navigation to blog pages
Akshay-datazip 7830432
fix: Position breadcrumbs correctly inside blog content area
Akshay-datazip 370bd21
Merge remote-tracking branch 'origin/master' into feature/enhanced-me…
Akshay-datazip 451e1f4
remove: Delete misplaced blog images from 2025 root directory
Akshay-datazip 1e3f8db
refactor: Move Organization JSON-LD from config to proper components
Akshay-datazip 6230e95
remove: Delete unused URL analysis scripts
Akshay-datazip a0f2744
remove: Delete duplicate detailed_check.sh script
Akshay-datazip bfccf42
feat: Add article titles to breadcrumb navigation
Akshay-datazip 22bbc3c
fix: Improve breadcrumb title extraction from URL path
Akshay-datazip 0bff0f9
revert: Simplify breadcrumbs back to Home > Blog format
Akshay-datazip 8176429
feat: enhance JSON-LD to match SigNoz level with intelligent content …
Akshay-datazip File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,58 @@ | ||
| #!/bin/bash | ||
|
|
||
| # Array of URLs to check | ||
| urls=( | ||
| "http://localhost:3000/" | ||
| "http://localhost:3000/blog" | ||
| "http://localhost:3000/blog/what-makes-olake-fast" | ||
| "http://localhost:3000/blog/olake-architecture-deep-dive" | ||
| "http://localhost:3000/blog/mongodb-cdc-using-debezium-and-kafka" | ||
| "http://localhost:3000/blog/debezium-vs-olake" | ||
| "http://localhost:3000/blog/how-to-set-up-postgresql-cdc-on-aws-rds" | ||
| "http://localhost:3000/docs" | ||
| "http://localhost:3000/docs/getting-started/quick-start" | ||
| "http://localhost:3000/docs/connectors/mongodb/overview" | ||
| "http://localhost:3000/docs/connectors/postgres/overview" | ||
| "http://localhost:3000/iceberg" | ||
| "http://localhost:3000/iceberg/apache-iceberg-vs-delta-lake-guide" | ||
| "http://localhost:3000/iceberg/data-lake-vs-delta-lake" | ||
| ) | ||
|
|
||
| echo "URL,Status,Has Trailing Slash Issues,Link Count,Issues Found" | ||
| echo "---,---,---,---,---" | ||
|
|
||
| for url in "${urls[@]}"; do | ||
| # Get the page content | ||
| content=$(curl -s "$url" 2>/dev/null) | ||
|
|
||
| if [ $? -eq 0 ]; then | ||
| status="✅ OK" | ||
|
|
||
| # Extract all href attributes | ||
| hrefs=$(echo "$content" | grep -o 'href="[^"]*"' | sed 's/href="//g' | sed 's/"//g') | ||
|
|
||
| # Count total links | ||
| link_count=$(echo "$hrefs" | wc -l | tr -d ' ') | ||
|
|
||
| # Check for trailing slash issues | ||
| issues="" | ||
| has_issues="No" | ||
|
|
||
| # Check for problematic patterns | ||
| if echo "$hrefs" | grep -q "href=\"[^/][^/]*[^/]\"[^/]" 2>/dev/null; then | ||
| has_issues="Yes" | ||
| issues="Potential trailing slash issues found" | ||
| fi | ||
|
|
||
| # Check for specific problematic patterns | ||
| problematic_links=$(echo "$hrefs" | grep -E '^/[^/]*[^/]$' | grep -v -E '\.(css|js|xml|svg|png|jpg|jpeg|gif|ico)$') | ||
| if [ ! -z "$problematic_links" ]; then | ||
| has_issues="Yes" | ||
| issues="Root-level links without trailing slash: $(echo "$problematic_links" | head -3 | tr '\n' ' ')" | ||
| fi | ||
|
|
||
| echo "$url,$status,$has_issues,$link_count,$issues" | ||
| else | ||
| echo "$url,❌ Error,Unknown,0,Page not accessible" | ||
| fi | ||
| done |
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. what is the need of this file? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,103 @@ | ||
| #!/bin/bash | ||
|
|
||
| echo "=== COMPREHENSIVE URL TRAILING SLASH ANALYSIS ===" | ||
| echo "" | ||
|
|
||
| # Function to analyze a single URL | ||
| analyze_url() { | ||
| local url="$1" | ||
| local page_name="$2" | ||
|
|
||
| echo "🔍 Analyzing: $page_name" | ||
| echo "URL: $url" | ||
| echo "---" | ||
|
|
||
| # Get the page content | ||
| content=$(curl -s "$url" 2>/dev/null) | ||
|
|
||
| if [ $? -eq 0 ]; then | ||
| # Extract all href attributes | ||
| hrefs=$(echo "$content" | grep -o 'href="[^"]*"' | sed 's/href="//g' | sed 's/"//g' | sort | uniq) | ||
|
|
||
| echo "📊 Total Links Found: $(echo "$hrefs" | wc -l | tr -d ' ')" | ||
| echo "" | ||
|
|
||
| # Categorize and analyze each link | ||
| echo "📋 Detailed Link Analysis:" | ||
| echo "" | ||
|
|
||
| # Root URLs | ||
| echo "🏠 Root URLs:" | ||
| echo "$hrefs" | grep -E '^https://olake\.io/?$' | while read link; do | ||
| if [[ "$link" == "https://olake.io/" ]]; then | ||
| echo " ✅ $link (CORRECT - has trailing slash)" | ||
| else | ||
| echo " ❌ $link (INCORRECT - missing trailing slash)" | ||
| fi | ||
| done | ||
| echo "" | ||
|
|
||
| # Directory URLs (should have trailing slash) | ||
| echo "📁 Directory URLs (should have trailing slash):" | ||
| echo "$hrefs" | grep -E '^/[^/]*/?$' | grep -v -E '\.(css|js|xml|svg|png|jpg|jpeg|gif|ico)$' | while read link; do | ||
| if [[ "$link" == */ ]]; then | ||
| echo " ✅ $link (CORRECT - has trailing slash)" | ||
| else | ||
| echo " ❌ $link (INCORRECT - missing trailing slash)" | ||
| fi | ||
| done | ||
| echo "" | ||
|
|
||
| # File URLs (should NOT have trailing slash) | ||
| echo "📄 File URLs (should NOT have trailing slash):" | ||
| echo "$hrefs" | grep -E '\.(css|js|xml|svg|png|jpg|jpeg|gif|ico)$' | while read link; do | ||
| if [[ "$link" != */ ]]; then | ||
| echo " ✅ $link (CORRECT - no trailing slash)" | ||
| else | ||
| echo " ❌ $link (INCORRECT - has trailing slash)" | ||
| fi | ||
| done | ||
| echo "" | ||
|
|
||
| # Navigation links (should NOT have trailing slash) | ||
| echo "🧭 Navigation Links (should NOT have trailing slash):" | ||
| echo "$hrefs" | grep -E '^/(docs|blog|iceberg|ai-lake|webinar|community|search)(/|$)' | grep -v -E '\.(css|js|xml|svg|png|jpg|jpeg|gif|ico)$' | while read link; do | ||
| if [[ "$link" != */ ]]; then | ||
| echo " ✅ $link (CORRECT - no trailing slash for navigation)" | ||
| else | ||
| echo " ❌ $link (INCORRECT - has trailing slash for navigation)" | ||
| fi | ||
| done | ||
| echo "" | ||
|
|
||
| # External URLs | ||
| echo "🌐 External URLs:" | ||
| echo "$hrefs" | grep -E '^https?://' | grep -v 'olake.io' | head -5 | while read link; do | ||
| echo " 🔗 $link (External - format varies)" | ||
| done | ||
| echo "" | ||
|
|
||
| else | ||
| echo "❌ Error: Could not access page" | ||
| fi | ||
|
|
||
| echo "================================================" | ||
| echo "" | ||
| } | ||
|
|
||
| # Check all pages | ||
| analyze_url "http://localhost:3000/" "Homepage" | ||
| analyze_url "http://localhost:3000/blog" "Blog Index" | ||
| analyze_url "http://localhost:3000/blog/what-makes-olake-fast" "Blog: What makes OLake fast?" | ||
| analyze_url "http://localhost:3000/blog/olake-architecture-deep-dive" "Blog: Architecture Deep Dive" | ||
| analyze_url "http://localhost:3000/blog/mongodb-cdc-using-debezium-and-kafka" "Blog: MongoDB CDC" | ||
| analyze_url "http://localhost:3000/blog/debezium-vs-olake" "Blog: Debezium vs OLake" | ||
| analyze_url "http://localhost:3000/blog/how-to-set-up-postgresql-cdc-on-aws-rds" "Blog: PostgreSQL CDC" | ||
| analyze_url "http://localhost:3000/docs" "Documentation Index" | ||
| analyze_url "http://localhost:3000/docs/getting-started/quick-start" "Docs: Quick Start" | ||
| analyze_url "http://localhost:3000/docs/connectors/mongodb/overview" "Docs: MongoDB Connector" | ||
| analyze_url "http://localhost:3000/docs/connectors/postgres/overview" "Docs: PostgreSQL Connector" | ||
| analyze_url "http://localhost:3000/iceberg" "Iceberg Index" | ||
| analyze_url "http://localhost:3000/iceberg/apache-iceberg-vs-delta-lake-guide" "Iceberg: Apache vs Delta" | ||
| analyze_url "http://localhost:3000/iceberg/data-lake-vs-delta-lake" "Iceberg: Data Lake vs Delta" | ||
|
|
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. what is the need of this file? looks like repeated file |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,85 @@ | ||
| #!/bin/bash | ||
|
|
||
| echo "=== COMPREHENSIVE URL TRAILING SLASH ANALYSIS ===" | ||
| echo "" | ||
|
|
||
| # Function to check a single URL | ||
| check_url() { | ||
| local url="$1" | ||
| local page_name="$2" | ||
|
|
||
| echo "🔍 Checking: $page_name" | ||
| echo "URL: $url" | ||
| echo "---" | ||
|
|
||
| # Get the page content | ||
| content=$(curl -s "$url" 2>/dev/null) | ||
|
|
||
| if [ $? -eq 0 ]; then | ||
| # Extract all href attributes and clean them | ||
| hrefs=$(echo "$content" | grep -o 'href="[^"]*"' | sed 's/href="//g' | sed 's/"//g' | sort | uniq) | ||
|
|
||
| echo "📊 Total Links Found: $(echo "$hrefs" | wc -l | tr -d ' ')" | ||
| echo "" | ||
|
|
||
| # Categorize links | ||
| echo "�� Link Analysis:" | ||
| echo "" | ||
|
|
||
| # Root URLs (should have trailing slash) | ||
| echo "🏠 Root URLs (should have trailing slash):" | ||
| echo "$hrefs" | grep -E '^https://olake\.io/?$' | while read link; do | ||
| if [[ "$link" == "https://olake.io/" ]]; then | ||
| echo " ✅ $link (correct)" | ||
| else | ||
| echo " ❌ $link (missing trailing slash)" | ||
| fi | ||
| done | ||
| echo "" | ||
|
|
||
| # Directory URLs (should have trailing slash) | ||
| echo "📁 Directory URLs (should have trailing slash):" | ||
| echo "$hrefs" | grep -E '^/[^/]*/?$' | grep -v -E '\.(css|js|xml|svg|png|jpg|jpeg|gif|ico)$' | while read link; do | ||
| if [[ "$link" == */ ]]; then | ||
| echo " ✅ $link (correct)" | ||
| else | ||
| echo " ❌ $link (missing trailing slash)" | ||
| fi | ||
| done | ||
| echo "" | ||
|
|
||
| # File URLs (should NOT have trailing slash) | ||
| echo "📄 File URLs (should NOT have trailing slash):" | ||
| echo "$hrefs" | grep -E '\.(css|js|xml|svg|png|jpg|jpeg|gif|ico)$' | while read link; do | ||
| if [[ "$link" != */ ]]; then | ||
| echo " ✅ $link (correct)" | ||
| else | ||
| echo " ❌ $link (has trailing slash - incorrect)" | ||
| fi | ||
| done | ||
| echo "" | ||
|
|
||
| # External URLs | ||
| echo "🌐 External URLs:" | ||
| echo "$hrefs" | grep -E '^https?://' | grep -v 'olake.io' | head -5 | while read link; do | ||
| echo " 🔗 $link" | ||
| done | ||
| echo "" | ||
|
|
||
| else | ||
| echo "❌ Error: Could not access page" | ||
| fi | ||
|
|
||
| echo "================================================" | ||
| echo "" | ||
| } | ||
|
|
||
| # Check all pages | ||
| check_url "http://localhost:3000/" "Homepage" | ||
| check_url "http://localhost:3000/blog" "Blog Index" | ||
| check_url "http://localhost:3000/blog/what-makes-olake-fast" "Blog: What makes OLake fast?" | ||
| check_url "http://localhost:3000/docs" "Documentation Index" | ||
| check_url "http://localhost:3000/docs/getting-started/quick-start" "Docs: Quick Start" | ||
| check_url "http://localhost:3000/iceberg" "Iceberg Index" | ||
| check_url "http://localhost:3000/iceberg/apache-iceberg-vs-delta-lake-guide" "Iceberg: Apache Iceberg vs Delta Lake" | ||
|
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
what is the need of this file?