Skip to content

feat(seo): add basic SEO files for Google Search Console#528

Merged
MarkusNeusinger merged 5 commits intomainfrom
feat/seo-basics
Dec 7, 2025
Merged

feat(seo): add basic SEO files for Google Search Console#528
MarkusNeusinger merged 5 commits intomainfrom
feat/seo-basics

Conversation

@MarkusNeusinger
Copy link
Copy Markdown
Owner

Summary

  • Add robots.txt with sitemap reference
  • Add sitemap.xml with main page URL
  • Add Open Graph and Twitter Card meta tags to index.html
  • Add og-image.png (1200x630px) for social media previews
  • Update meta description to match website tagline

Files Added/Changed

File Change
app/public/robots.txt New - crawl rules + sitemap reference
app/public/sitemap.xml New - main page URL
app/index.html Updated - OG, Twitter Card, canonical tags
app/public/og-image.png New - social media preview image

After Deployment

  1. Submit sitemap in Google Search Console: https://pyplots.ai/sitemap.xml
  2. Request URL inspection for https://pyplots.ai/
  3. Test OG tags at https://www.opengraph.xyz/

- Add robots.txt with sitemap reference
- Add sitemap.xml with main page URL
- Add Open Graph and Twitter Card meta tags to index.html
- Add og-image.png (1200x630px) for social media previews
- Update meta description to match website tagline
Copilot AI review requested due to automatic review settings December 7, 2025 21:50
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Dec 7, 2025

✅ Plot Tests Passed

Python 3.13 (required): passed

Compatibility: 3.12 3.13

Note: Only Python 3.13 is required to pass. Python 3.12 is tested for compatibility.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds foundational SEO infrastructure to improve the website's discoverability and social media sharing experience. The changes include standard SEO files (robots.txt, sitemap.xml), Open Graph and Twitter Card meta tags for enhanced social media previews, and a new OG image for visual consistency across platforms.

Key changes:

  • Added robots.txt with crawl permissions and sitemap reference for search engine indexing
  • Added sitemap.xml with the main page URL for search engine discovery
  • Enhanced index.html with Open Graph, Twitter Card, and canonical tags for better social sharing and SEO

Reviewed changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated 2 comments.

File Description
app/public/robots.txt New - allows all search engine crawlers and references sitemap location
app/public/sitemap.xml New - defines URL structure for search engines with priority and change frequency
app/index.html Updated - adds comprehensive Open Graph and Twitter Card meta tags, updates meta description to match README tagline
app/public/og-image.png New - social media preview image (1200x630px) for link sharing

Comment thread app/public/sitemap.xml
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://pyplots.ai/</loc>
Copy link

Copilot AI Dec 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] The sitemap.xml is missing the <lastmod> element, which is recommended for search engines to understand when content was last updated. Consider adding it with the current date or deployment date, e.g., <lastmod>2024-12-07</lastmod>.

Suggested change
<loc>https://pyplots.ai/</loc>
<loc>https://pyplots.ai/</loc>
<lastmod>2024-12-07</lastmod>

Copilot uses AI. Check for mistakes.
Comment thread app/index.html
<meta property="og:url" content="https://pyplots.ai/" />
<meta property="og:title" content="pyplots.ai" />
<meta property="og:description" content="library-agnostic, ai-powered python plotting examples. automatically generated, tested, and maintained." />
<meta property="og:image" content="https://pyplots.ai/og-image.png" />
Copy link

Copilot AI Dec 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] Consider adding the og:site_name meta property to distinguish the site name from the page title. This helps social media platforms display a more informative preview. Example: <meta property="og:site_name" content="pyplots.ai" />

Suggested change
<meta property="og:image" content="https://pyplots.ai/og-image.png" />
<meta property="og:image" content="https://pyplots.ai/og-image.png" />
<meta property="og:site_name" content="pyplots.ai" />

Copilot uses AI. Check for mistakes.
- Update test_plot_generator_has_code_template to check for comment-style code
- Replace test_library_prompt_has_return_type with test_library_prompt_has_save_section
- Update test_plot_generator_has_required_sections for flexible Rules section level
- Add letsplot.md to expected library prompts list
- Add lastmod to sitemap.xml
- Add og:site_name to index.html
Copilot AI review requested due to automatic review settings December 7, 2025 21:57
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 7 out of 8 changed files in this pull request and generated no new comments.

@MarkusNeusinger MarkusNeusinger merged commit bbdddc3 into main Dec 7, 2025
9 checks passed
@MarkusNeusinger MarkusNeusinger deleted the feat/seo-basics branch December 7, 2025 22:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants