This is an automated email from the ASF dual-hosted git repository.

richardantal pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/phoenix-site.git


The following commit(s) were added to refs/heads/asf-site by this push:
     new ca059586 PHOENIX-7814 Website: remove lastmod from sitemap (#14)
ca059586 is described below

commit ca0595866334509b6d1eba9f2f3d6e8b9c1550c2
Author: Yurii Palamarchuk <[email protected]>
AuthorDate: Thu Apr 30 13:52:07 2026 +0200

    PHOENIX-7814 Website: remove lastmod from sitemap (#14)
---
 README.md                   | 9 +++++----
 build.sh                    | 2 +-
 output/sitemap.xml          | 2 +-
 package.json                | 4 ++--
 scripts/generate-sitemap.ts | 8 ++------
 5 files changed, 11 insertions(+), 14 deletions(-)

diff --git a/README.md b/README.md
index 89db962a..4d34c878 100644
--- a/README.md
+++ b/README.md
@@ -323,10 +323,11 @@ Current CI sequence used by `npm run ci`:
 2. `npm run fumadocs-init`
 3. `npm run lint`
 4. `npm run typecheck`
-5. `npm run build` (`react-router build` followed by sitemap generation)
-6. `npm run test:unit:run`
-7. `npx playwright install`
-8. `npm run test:e2e`
+5. `npm run build` (runs `react-router build`)
+6. `npm run generate-sitemap` (writes `sitemap.xml` into `build/client/`)
+7. `npm run test:unit:run`
+8. `npx playwright install`
+9. `npm run test:e2e`
 
 There is currently no remote CI/CD runner executing `build.sh` for this 
repository. The `output/` artifact is produced locally and must be included in 
your pull request.
 
diff --git a/build.sh b/build.sh
index 3ed8960a..6302c99b 100755
--- a/build.sh
+++ b/build.sh
@@ -47,7 +47,7 @@ npm ci
 echo ""
 
 # ---------------------------------------------------------------------------
-echo "RUNNING CI (lint, typecheck, tests, build)"
+echo "RUNNING CI (lint, typecheck, build, sitemap, tests)"
 echo "==========================="
 npm run ci
 echo ""
diff --git a/output/sitemap.xml b/output/sitemap.xml
index df32ff2d..476ace09 100644
--- a/output/sitemap.xml
+++ b/output/sitemap.xml
@@ -1 +1 @@
-<?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:image="http://www.google.com/schemas/sitemap-image/1.1"; 
xmlns:video="http://www.google.com/schemas/sitemap-video/1.1";><url><loc>https://phoenix.apache.org/</loc><lastmod>2026-04-29T23:16:43.226Z</lastmod></url><url><loc>https://phoenix.apache.org/docs/</loc><lastmod>2026-04-29T23:16:4
 [...]
\ No newline at end of file
+<?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:image="http://www.google.com/schemas/sitemap-image/1.1"; 
xmlns:video="http://www.google.com/schemas/sitemap-video/1.1";><url><loc>https://phoenix.apache.org/</loc></url><url><loc>https://phoenix.apache.org/docs/</loc></url><url><loc>https://phoenix.apache.org/docs/addons/phoenix-omid-tr
 [...]
diff --git a/package.json b/package.json
index 40b17501..835edb54 100644
--- a/package.json
+++ b/package.json
@@ -6,7 +6,7 @@
     "node": ">=22.12.0"
   },
   "scripts": {
-    "build": "react-router build && npm run generate-sitemap",
+    "build": "react-router build",
     "dev": "react-router dev",
     "start": "serve -s build/client -l 5173",
     "typecheck": "react-router typegen && tsc",
@@ -25,7 +25,7 @@
     "generate-language": "tsx scripts/generate-language.ts",
     "generate-sitemap": "tsx scripts/generate-sitemap.ts",
     "fumadocs-init": "fumadocs-mdx",
-    "ci": "npm run generate-language && npm run fumadocs-init && npm run lint 
&& npm run typecheck && npm run build && npm run test:unit:run && npx 
playwright install && npm run test:e2e"
+    "ci": "npm run generate-language && npm run fumadocs-init && npm run lint 
&& npm run typecheck && npm run build && npm run generate-sitemap && npm run 
test:unit:run && npx playwright install && npm run test:e2e"
   },
   "dependencies": {
     "@hookform/resolvers": "^3.10.0",
diff --git a/scripts/generate-sitemap.ts b/scripts/generate-sitemap.ts
index 876a287b..d81893a0 100644
--- a/scripts/generate-sitemap.ts
+++ b/scripts/generate-sitemap.ts
@@ -16,7 +16,7 @@
 // limitations under the License.
 //
 
-import { access, glob, readFile, stat, writeFile } from "node:fs/promises";
+import { access, glob, readFile, writeFile } from "node:fs/promises";
 import { fileURLToPath } from "node:url";
 import { join } from "node:path";
 import { SitemapStream, streamToPromise } from "sitemap";
@@ -42,7 +42,6 @@ const REDIRECT_PAGE_PATTERNS = [
 
 interface SitemapEntry {
   url: string;
-  lastmod: string;
 }
 
 export function normalizePath(relativePath: string): string {
@@ -88,11 +87,8 @@ export async function collectSitemapEntries(): 
Promise<SitemapEntry[]> {
       continue;
     }
 
-    const { mtime } = await stat(filePath);
-
     entries.push({
-      url: toSiteUrl(relativePath),
-      lastmod: mtime.toISOString()
+      url: toSiteUrl(relativePath)
     });
   }
 

Reply via email to