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

feat: Add sitemap for home/docs. #363

Merged
merged 4 commits into from
Feb 27, 2025
Merged

feat: Add sitemap for home/docs. #363

merged 4 commits into from
Feb 27, 2025

Conversation

jmoseley
Copy link
Contributor

Proposed changes

Fixes #296

This generates sitemaps post-build and places them in the public directory.

There is a set of sitemaps generated for docs, and sitemapes generated for home, and the home sitemaps are setup to reference the docs sitemap.

Here is examples of the generated sitemaps:

home/public/sitemap.xml:

<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<sitemap><loc>https://gensx.com/sitemap-0.xml</loc></sitemap>
<sitemap><loc>https://gensx.com/docs/sitemap.xml</loc></sitemap>
</sitemapindex>

home/public/sitemap-0.xml:

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:mobile="http://www.google.com/schemas/sitemap-mobile/1.0" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xmlns:video="http://www.google.com/schemas/sitemap-video/1.1">
<url><loc>https://gensx.com</loc><lastmod>2025-02-27T20:07:46.521Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://gensx.com/blog</loc><lastmod>2025-02-27T20:07:46.522Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://gensx.com/blog/self-modifying-code</loc><lastmod>2025-02-27T20:07:46.522Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
</urlset>

home/public/robots.txt:

# *
User-agent: *
Allow: /

# Host
Host: https://gensx.com

# Sitemaps
Sitemap: https://gensx.com/sitemap.xml
Sitemap: https://gensx.com/docs/sitemap.xml

docs/public/sitemap.xml:

<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<sitemap><loc>https://gensx.com/docs/sitemap-0.xml</loc></sitemap>
</sitemapindex>

docs/public/sitemap-0.xml:

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:mobile="http://www.google.com/schemas/sitemap-mobile/1.0" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xmlns:video="http://www.google.com/schemas/sitemap-video/1.1">
<url><loc>https://gensx.com/docs/docs</loc><lastmod>2025-02-27T19:57:21.803Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://gensx.com/docs/docs/basic-concepts</loc><lastmod>2025-02-27T19:57:21.803Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://gensx.com/docs/docs/cloud</loc><lastmod>2025-02-27T19:57:21.803Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://gensx.com/docs/docs/component-reference/openai</loc><lastmod>2025-02-27T19:57:21.803Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://gensx.com/docs/docs/concepts/arrays</loc><lastmod>2025-02-27T19:57:21.803Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://gensx.com/docs/docs/concepts/context</loc><lastmod>2025-02-27T19:57:21.803Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://gensx.com/docs/docs/concepts/how-gensx-works</loc><lastmod>2025-02-27T19:57:21.803Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://gensx.com/docs/docs/concepts/reusable-components</loc><lastmod>2025-02-27T19:57:21.803Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://gensx.com/docs/docs/examples/blog-writing</loc><lastmod>2025-02-27T19:57:21.803Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://gensx.com/docs/docs/examples/hn</loc><lastmod>2025-02-27T19:57:21.803Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://gensx.com/docs/docs/patterns/reflection</loc><lastmod>2025-02-27T19:57:21.803Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://gensx.com/docs/docs/patterns/structured-outputs</loc><lastmod>2025-02-27T19:57:21.803Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://gensx.com/docs/docs/quickstart</loc><lastmod>2025-02-27T19:57:21.803Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://gensx.com/docs/docs/why-jsx</loc><lastmod>2025-02-27T19:57:21.803Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
</urlset>

Copy link

vercel bot commented Feb 27, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
gensx-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 27, 2025 8:19pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
gensx-home ⬜️ Skipped (Inspect) Feb 27, 2025 8:19pm

@vercel vercel bot temporarily deployed to Preview – gensx-home February 27, 2025 20:17 Inactive
@jmoseley jmoseley merged commit 6f0d77f into main Feb 27, 2025
6 checks passed
@jmoseley jmoseley deleted the jeremy/sitemap branch February 27, 2025 20:20
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.

Publish a sitemap
2 participants