Skip to content

Conversation

yashisrani
Copy link
Contributor

Description

  • What Added:
    • Global-only meta (no page-level title/description)
    • No robots.txt / sitemap.xml → crawlers blind

@kmesh-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign kevin-wangzefeng for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Copy link

netlify bot commented Oct 4, 2025

Deploy Preview for kmesh-net ready!

Name Link
🔨 Latest commit 834cb25
🔍 Latest deploy log https://app.netlify.com/projects/kmesh-net/deploys/68e1334d56799a0008cca3c6
😎 Deploy Preview https://deploy-preview-246--kmesh-net.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link

Summary of Changes

Hello @yashisrani, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request significantly boosts the Kmesh website's Search Engine Optimization (SEO) by implementing a holistic strategy. It introduces detailed meta descriptions and keywords for all documentation pages, establishes global SEO configurations within Docusaurus, and deploys standard robots.txt and sitemap.xml files. These changes are designed to enhance the discoverability and ranking of the Kmesh content on search engines, making it more accessible to a wider audience.

Highlights

  • Enhanced Documentation SEO: All documentation markdown files across application-layer, architecture, community, performance, setup, and transport-layer sections have been updated with specific description and keywords meta tags to improve search engine visibility for individual pages.
  • Global SEO Configuration: The docusaurus.config.js file now includes comprehensive global SEO settings, such as a site tagline, site-wide metadata (description, keywords, Open Graph, Twitter cards), and sitemap configuration, centralizing SEO management.
  • Crawler Directives and Sitemap: New robots.txt and sitemap.xml files have been added to the static directory. The robots.txt guides web crawlers on which parts of the site to index or ignore, including specific rules for various bots, while the sitemap.xml provides a structured list of important pages for search engines.
  • Homepage Metadata: The src/pages/index.js file now exports specific metadata for the homepage, including title, description, keywords, and Twitter card information, ensuring the main landing page is well-optimized for search engines.
  • Performance Optimization: A font preloading stylesheet has been added to docusaurus.config.js for inter.woff2, which can improve perceived loading performance by ensuring critical fonts are fetched early.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces significant SEO improvements across the documentation site. It adds page-level metadata (description, keywords) to numerous markdown files, configures global SEO settings in docusaurus.config.js, and adds a robots.txt file. The changes are largely beneficial for search engine visibility. However, I've identified a few critical issues that need to be addressed: an incorrect favicon path, broken "Edit this page" links due to misconfigured editUrls, and the addition of a static sitemap.xml which overrides Docusaurus's superior auto-generation feature. Please see my detailed comments for suggestions on how to fix these issues.

Comment on lines +1 to +15
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://kmesh.net/</loc>
<lastmod>2025-06-20</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://kmesh.net/docs/welcome</loc>
<lastmod>2025-06-20</lastmod>
<changefreq>monthly</changefreq>
<priority>0.8</priority>
</url>
</urlset> No newline at end of file

Choose a reason for hiding this comment

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

critical

This pull request adds a static sitemap.xml file. However, Docusaurus is already configured to automatically generate a comprehensive sitemap during the build process using @docusaurus/plugin-sitemap (which is enabled by default in the 'classic' preset and configured in docusaurus.config.js). A static sitemap is difficult to maintain and will quickly become outdated as new pages are added. This static file will override the auto-generated one, leading to most of the site's pages being excluded from the sitemap, which is detrimental to SEO. Please remove this static sitemap.xml file and let Docusaurus handle sitemap generation.

docs: {
sidebarPath: "./sidebars.js",
editUrl: "https://github.com/kmesh-net/website/blob/main",
editUrl: "https://kmesh.net/docs/welcome",

Choose a reason for hiding this comment

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

high

The editUrl for docs has been changed to point to a page on the live site. This breaks the "Edit this page" functionality, which should link to the source file in the GitHub repository to allow users to propose changes. Please restore the link to the repository.

Suggested change
editUrl: "https://kmesh.net/docs/welcome",
editUrl: "https://github.com/kmesh-net/website/blob/main",

blog: {
showReadingTime: true,
feedOptions: { type: ["rss", "atom"], xslt: true },
editUrl: "https://kmesh.net/blog",

Choose a reason for hiding this comment

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

high

The editUrl for blog has been changed to point to a page on the live site. This breaks the "Edit this page" functionality for blog posts. It should link to the source files in the GitHub repository.

Suggested change
editUrl: "https://kmesh.net/blog",
editUrl: "https://github.com/kmesh-net/website/blob/main",

favicon: "img/favicons/favicon.ico",
tagline:
"Kmesh is a high-performance service grid data plane software implemented based on the eBPF and programmable kernel.",
favicon: "/static/img/favicons/favicon.ico",

Choose a reason for hiding this comment

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

medium

The path for the favicon is incorrect. For assets in the static directory, the path in the configuration should be relative to the static directory itself. The /static/ prefix is not needed and will likely cause the favicon to not be found (404 error). For consistency with other image paths in this file (like og:image and navbar.logo), please correct the path.

Suggested change
favicon: "/static/img/favicons/favicon.ico",
favicon: "/img/favicons/favicon.ico",

@yashisrani yashisrani changed the title seo: add unique meta tags, alt text, robots.txt & sitemap SEO: add unique meta tags, robots.txt & sitemap Oct 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants