From 36fa7aae243308a162a73efe8a1169554869d8bf Mon Sep 17 00:00:00 2001 From: Charly Abraham Date: Tue, 10 Mar 2026 19:29:36 +0530 Subject: [PATCH 1/4] docs: site-wide SEO optimization - Fix homepage title and meta description (was broken with artifact) - Add robots.txt with sitemap directive - Add JSON-LD Organization and WebSite structured data - Add global Twitter Card and Open Graph meta tags - Enhance sitemap with lastmod and priority differentiation - Fix anonymizeIP to true for GDPR compliance - Add aria-label to homepage feature SVGs for accessibility - Add meta descriptions to all 10 blog posts - Add SEO pending guide for remaining manual tasks --- blog/2024-03-05-welcome/index.md | 1 + blog/2024-03-26-Release-3.5/index.md | 3 +- blog/2024-04-27-Release-3.6/index.md | 3 +- blog/2024-05-26-Release-3.7/index.md | 3 +- blog/2024-06-27-Release-3.8/index.md | 3 +- blog/2024-09-02-Release-3.9/index.md | 3 +- blog/2024-11-24-Release-3.10/index.md | 3 +- blog/2025-01-30-Release-4.0/index.md | 3 +- .../index.md | 3 +- blog/2026-01-18-Release-5.0/index.md | 3 +- docusaurus.config.js | 55 +++++++- seo-pending-guide.md | 125 ++++++++++++++++++ src/components/HomepageFeatures/index.js | 2 +- src/pages/index.js | 5 +- static/robots.txt | 5 + 15 files changed, 205 insertions(+), 15 deletions(-) create mode 100644 seo-pending-guide.md create mode 100644 static/robots.txt diff --git a/blog/2024-03-05-welcome/index.md b/blog/2024-03-05-welcome/index.md index 9ba755ab..0b997907 100644 --- a/blog/2024-03-05-welcome/index.md +++ b/blog/2024-03-05-welcome/index.md @@ -1,6 +1,7 @@ --- slug: welcome title: Introducing Phoenix Code Desktop- Now on Windows, Mac & Linux +description: "Phoenix Code native desktop apps are now available for Windows, Mac, and Linux. Web version available for ChromeOS and other platforms." authors: [arun, charly, kiran, mathew, phoenixBot] tags: [hello world, Native Apps, Windows, Linux, Mac, Release] --- diff --git a/blog/2024-03-26-Release-3.5/index.md b/blog/2024-03-26-Release-3.5/index.md index 297cec8b..7ba18676 100644 --- a/blog/2024-03-26-Release-3.5/index.md +++ b/blog/2024-03-26-Release-3.5/index.md @@ -1,6 +1,7 @@ --- slug: release-3.5 -title: March-2024 Release (V-3.5) is now Live +title: March-2024 Release (V-3.5) is now Live +description: "Phoenix Code 3.5 improves large project support, Find in Files, inline HTML number dials, and app stability. Download for Windows, Mac, and Linux." authors: [arun, charly, kiran, phoenixBot] tags: [Native Apps, Windows, Linux, Mac, Release] --- diff --git a/blog/2024-04-27-Release-3.6/index.md b/blog/2024-04-27-Release-3.6/index.md index d6c5a4de..06c865e9 100644 --- a/blog/2024-04-27-Release-3.6/index.md +++ b/blog/2024-04-27-Release-3.6/index.md @@ -1,6 +1,7 @@ --- slug: release-3.6 -title: April-2024 Release (V-3.6) is now Live +title: April-2024 Release (V-3.6) is now Live +description: "Phoenix Code 3.6 adds PHP and custom live preview servers, advanced CSS/LESS/SCSS code intelligence, and UX improvements." authors: [arun, charly, andrew, faizan, phoenixBot] tags: [Native Apps, Windows, Linux, Mac, Release] --- diff --git a/blog/2024-05-26-Release-3.7/index.md b/blog/2024-05-26-Release-3.7/index.md index b885dabe..1b54a2bd 100644 --- a/blog/2024-05-26-Release-3.7/index.md +++ b/blog/2024-05-26-Release-3.7/index.md @@ -1,6 +1,7 @@ --- slug: release-3.7 -title: Little Things Release (May-2024, V-3.7) is now Live +title: Little Things Release (May-2024, V-3.7) is now Live +description: "Phoenix Code 3.7 focuses on live preview improvements, CSS class and style code hints, and small UX refinements." authors: [arun, charly, phoenixBot] tags: [Live Preview, Live Code Hints, Windows, Linux, Mac, Release] --- diff --git a/blog/2024-06-27-Release-3.8/index.md b/blog/2024-06-27-Release-3.8/index.md index 79c24c9a..c80f3a9a 100644 --- a/blog/2024-06-27-Release-3.8/index.md +++ b/blog/2024-06-27-Release-3.8/index.md @@ -1,6 +1,7 @@ --- slug: release-3.8 -title: Critical Update + HTML Helpers Release (June-2024, V-3.8) is now Live +title: Critical Update + HTML Helpers Release (June-2024, V-3.8) is now Live +description: "Phoenix Code 3.8 fixes crashes on M1 Macs and Linux, adds HTML drag-and-drop editing, and improves live preview stability." authors: [arun, charly, phoenixBot] tags: [Live Preview, Live Code Hints, Windows, Linux, Mac, Release] --- diff --git a/blog/2024-09-02-Release-3.9/index.md b/blog/2024-09-02-Release-3.9/index.md index 04a99801..f1cfe0c3 100644 --- a/blog/2024-09-02-Release-3.9/index.md +++ b/blog/2024-09-02-Release-3.9/index.md @@ -1,6 +1,7 @@ --- slug: release-3.9 -title: HTML Workflows and stability Release (September-2024, V-3.9) is now Live +title: HTML Workflows and stability Release (September-2024, V-3.9) is now Live +description: "Phoenix Code 3.9 improves app stability and robustness, adds HTML and text editing workflow enhancements, and ChromeOS support." authors: [arun, charly, kiran, devvaannsh, jozsefk9, acemi1, phoenixBot] tags: [Live Preview, Live Code Hints, Windows, Linux, Mac, Release] --- diff --git a/blog/2024-11-24-Release-3.10/index.md b/blog/2024-11-24-Release-3.10/index.md index 5e805321..3d9fcc2f 100644 --- a/blog/2024-11-24-Release-3.10/index.md +++ b/blog/2024-11-24-Release-3.10/index.md @@ -1,6 +1,7 @@ --- slug: release-3.10 -title: Editor Experience Release (November-2024, V-3.10) is now Live +title: Editor Experience Release (November-2024, V-3.10) is now Live +description: "Phoenix Code 3.10 improves the editor UI with indent guide lines, better performance, and visual feedback. Updated extension developer docs." authors: [arun, charly, devvaannsh, phoenixBot] tags: [Editor Experience, UI Improvements, Windows, Linux, Mac, Release] --- diff --git a/blog/2025-01-30-Release-4.0/index.md b/blog/2025-01-30-Release-4.0/index.md index 3508e5b8..497f706a 100644 --- a/blog/2025-01-30-Release-4.0/index.md +++ b/blog/2025-01-30-Release-4.0/index.md @@ -1,6 +1,7 @@ --- slug: release-4.0 -title: Git It Release (January-2025, V-4.0) is now Live +title: Git It Release (January-2025, V-4.0) is now Live +description: "Phoenix Code 4.0 introduces built-in Git integration, color previews, and open-in-terminal support. The largest release in the Brackets legacy." authors: [arun, charly, devvaannsh, phoenixBot] tags: [Git, Color previews, Version Control, open in terminal, Stability Improvements, Windows, Linux, Mac, Release] --- diff --git a/blog/2025-01-30-The Legacy of Brackets - Continued/index.md b/blog/2025-01-30-The Legacy of Brackets - Continued/index.md index 99bfdeda..a3de2473 100644 --- a/blog/2025-01-30-The Legacy of Brackets - Continued/index.md +++ b/blog/2025-01-30-The Legacy of Brackets - Continued/index.md @@ -1,6 +1,7 @@ --- slug: Blog-Legacy -title: "Phoenix Code: The Legacy of Brackets - Continued" +title: "Phoenix Code: The Legacy of Brackets - Continued" +description: "The story of Brackets — from its birth at Adobe to Phoenix Code. How a community kept the spirit of Brackets alive and built its future." authors: [arun, charly] tags: [Brackets, Continued, Phoenix Code, History] --- diff --git a/blog/2026-01-18-Release-5.0/index.md b/blog/2026-01-18-Release-5.0/index.md index 48400ffe..7b272a56 100644 --- a/blog/2026-01-18-Release-5.0/index.md +++ b/blog/2026-01-18-Release-5.0/index.md @@ -1,6 +1,7 @@ --- slug: release-5.0 -title: Phoenix Pro Release (January-2026, V-5.0) is now Live +title: Phoenix Pro Release (January-2026, V-5.0) is now Live +description: "Phoenix Code 5.0 introduces Phoenix Pro with Live Preview Edit, Emmet support, Tab Bar, and Custom Snippets. The biggest update yet." authors: [arun, charly, devvaannsh, phoenixBot] tags: [Phoenix Pro, Live Preview Edit, Emmet, Tab Bar, Custom Snippets, Collapse Folders, Smarter hint suggestions, Stability Improvements, Windows, Linux, Mac, Release] --- diff --git a/docusaurus.config.js b/docusaurus.config.js index e744f936..f73988e6 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -21,6 +21,35 @@ const config = { // For GitHub pages deployment, it is often '//' baseUrl: "/", trailingSlash: false, + headTags: [ + { + tagName: 'script', + attributes: { type: 'application/ld+json' }, + innerHTML: JSON.stringify({ + '@context': 'https://schema.org', + '@type': 'Organization', + name: 'Phoenix Code', + url: 'https://phcode.dev', + logo: 'https://docs.phcode.dev/img/logo.svg', + sameAs: [ + 'https://x.com/phcodedev', + 'https://github.com/phcode-dev/', + 'https://discord.gg/rBpTBPttca', + 'https://www.youtube.com/channel/UCNK2a8DKqPQQe3GlfTk-RHg', + ], + }), + }, + { + tagName: 'script', + attributes: { type: 'application/ld+json' }, + innerHTML: JSON.stringify({ + '@context': 'https://schema.org', + '@type': 'WebSite', + name: 'Phoenix Code Documentation', + url: 'https://docs.phcode.dev', + }), + }, + ], // GitHub pages deployment config. // If you aren't using GitHub pages, you don't need these. @@ -59,10 +88,27 @@ const config = { /** @type {import('@docusaurus/preset-classic').Options} */ ({ sitemap: { + lastmod: 'date', changefreq: "weekly", priority: 0.5, ignorePatterns: ["/tags/**"], - filename: "sitemap.xml" + filename: "sitemap.xml", + createSitemapItems: async (params) => { + const {defaultCreateSitemapItems, ...rest} = params; + const items = await defaultCreateSitemapItems(rest); + return items.map((item) => { + if (item.url === 'https://docs.phcode.dev/') { + return {...item, priority: 1.0, changefreq: 'weekly'}; + } + if (item.url.includes('/blog/') && !item.url.includes('/blog/tags/')) { + return {...item, priority: 0.7, changefreq: 'monthly'}; + } + if (item.url.includes('/docs/')) { + return {...item, priority: 0.6}; + } + return item; + }); + }, }, docs: { @@ -89,7 +135,7 @@ const config = { // Will be passed to @docusaurus/plugin-google-gtag (only enabled when explicitly specified) gtag: { trackingID: "G-XMWSCV9SP1", - anonymizeIP: false + anonymizeIP: true } }) ] @@ -119,6 +165,11 @@ const config = { themeConfig: /** @type {import('@docusaurus/preset-classic').ThemeConfig} */ ({ + metadata: [ + {name: 'twitter:card', content: 'summary_large_image'}, + {name: 'twitter:site', content: '@phcodedev'}, + {property: 'og:site_name', content: 'Phoenix Code'}, + ], algolia: { // The application ID provided by Algolia appId: "8DZVLXVEPA", diff --git a/seo-pending-guide.md b/seo-pending-guide.md new file mode 100644 index 00000000..a82a1f26 --- /dev/null +++ b/seo-pending-guide.md @@ -0,0 +1,125 @@ +# SEO Pending Items Guide + +Items that could not be automated and require manual action. + +## 1. Social Card Image (High Priority) + +**Problem:** Current `static/img/socialcard.png` is 478x277px. The optimal size for Open Graph previews (Facebook, Twitter/X, LinkedIn, Discord) is **1200x630px**. + +**Impact:** Small images render poorly or get cropped in social previews, reducing click-through from shared links. + +**Action:** Re-export or redesign `static/img/socialcard.png` at 1200x630px. Keep the same filename so no config changes are needed. + +**Validation:** After deploying, paste a page URL into: +- https://cards-dev.twitter.com/validator (Twitter/X) +- https://developers.facebook.com/tools/debug/ (Facebook) + +--- + +## 2. Doc Page Meta Descriptions (High Priority) + +**Problem:** All 40+ documentation pages under `/docs/` are missing `description` in their frontmatter. Without it, Google auto-generates snippets from random page content. + +**Impact:** +5.8% CTR per page with an optimized description (Yoast/HubSpot study). Google uses the provided description 37% of the time (Ahrefs study of 20k keywords). + +**Action:** Add a `description` field to the frontmatter of each doc page. Example: + +```yaml +--- +title: Live Preview +description: "Use Phoenix Code's live preview to see HTML and CSS changes in real time. Supports browser sync, custom servers, and visual editing." +--- +``` + +**Guidelines:** +- 150-160 characters (Google truncates beyond ~160) +- Include the primary keyword for that page naturally +- Describe what the reader will learn or accomplish +- Use active language + +**Pages needing descriptions (prioritize by traffic):** +- `docs/01-intro.md` +- `docs/08-Features/06-Live Preview/01-live-preview.md` +- `docs/08-Features/beautify-code.md` +- `docs/08-Features/05-keyboard-shortcuts.md` +- `docs/04-editing-colors.md` +- `docs/02-Linux.md`, `docs/03-Mac.md` +- All remaining doc pages under `docs/` + +--- + +## 3. Google Search Console Setup (High Priority) + +**Problem:** The sitemap at `https://docs.phcode.dev/sitemap.xml` should be explicitly submitted to Google Search Console for fastest indexing. + +**Action:** +1. Go to https://search.google.com/search-console +2. Add property `https://docs.phcode.dev` (if not already added) +3. Go to Sitemaps > Add a new sitemap +4. Enter `sitemap.xml` and submit +5. After `robots.txt` is deployed, Google will also discover it automatically + +--- + +## 4. Blog Post Cover Images (Medium Priority) + +**Problem:** No blog post has a custom `image` field in frontmatter. All posts fall back to the global social card (which is also undersized). + +**Impact:** Custom images per post make social shares more visually distinct and clickable. Posts with images get 2-3x higher engagement on social platforms. + +**Action:** For each blog post, create a 1200x630px cover image and add to frontmatter: + +```yaml +--- +image: /img/blog/release-5.0-cover.png +--- +``` + +Store images in `static/img/blog/`. + +--- + +## 5. Category Page Metadata (Low Priority) + +**Problem:** `_category_.json` files under `docs/` only set `collapsible` and `collapsed`. They lack `label` and `description` fields. + +**Action:** Update each `_category_.json`: + +```json +{ + "label": "Features", + "description": "Phoenix Code editor features — live preview, Git, extensions, visual editing, and more.", + "collapsible": true, + "collapsed": false +} +``` + +**Files:** +- `docs/08-Features/_category_.json` +- `docs/07-Pro Features/_category_.json` +- `api/API-Reference/_category_.json` + +--- + +## 6. Monitor Core Web Vitals (Ongoing) + +**Action:** After deployment, check performance at: +- https://pagespeed.web.dev/?url=https://docs.phcode.dev +- Google Search Console > Core Web Vitals report + +**Targets:** LCP < 2.5s, INP < 200ms, CLS < 0.1 + +--- + +## What Was Already Done (This PR) + +| Change | File(s) | +|--------|---------| +| Fixed homepage title + description | `src/pages/index.js` | +| Added `robots.txt` | `static/robots.txt` | +| Added global OG + Twitter meta tags | `docusaurus.config.js` | +| Added JSON-LD Organization + WebSite schemas | `docusaurus.config.js` | +| Enhanced sitemap with lastmod + custom priorities | `docusaurus.config.js` | +| Fixed `anonymizeIP: true` for GDPR | `docusaurus.config.js` | +| Added aria-label to homepage SVGs | `src/components/HomepageFeatures/index.js` | +| Added meta descriptions to 10 blog posts | All `blog/*/index.md` files | diff --git a/src/components/HomepageFeatures/index.js b/src/components/HomepageFeatures/index.js index 9a76859c..8f7ac1d0 100644 --- a/src/components/HomepageFeatures/index.js +++ b/src/components/HomepageFeatures/index.js @@ -40,7 +40,7 @@ function Feature({Svg, title, description}) { return (
- +
{title} diff --git a/src/pages/index.js b/src/pages/index.js index 706b9590..731e579d 100644 --- a/src/pages/index.js +++ b/src/pages/index.js @@ -29,11 +29,10 @@ function HomepageHeader() { } export default function Home() { - const {siteConfig} = useDocusaurusContext(); return ( + title="Phoenix Code Documentation" + description="Phoenix Code documentation — live preview editor with Git integration, visual CSS editing, and browser support. Free and open source.">
diff --git a/static/robots.txt b/static/robots.txt new file mode 100644 index 00000000..a816dcde --- /dev/null +++ b/static/robots.txt @@ -0,0 +1,5 @@ +User-agent: * +Allow: / +Disallow: /assets/ + +Sitemap: https://docs.phcode.dev/sitemap.xml From 154561c3292dd20b684e33576b33067e484b2659 Mon Sep 17 00:00:00 2001 From: Charly Abraham Date: Tue, 10 Mar 2026 19:35:36 +0530 Subject: [PATCH 2/4] docs: update robots.txt to match phcode.dev conventions Add core.ai legal header, per-bot crawl directives, and references to all three sitemaps (docs, phcode.dev, sitemaps.phcode.io). --- static/robots.txt | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/static/robots.txt b/static/robots.txt index a816dcde..795587ff 100644 --- a/static/robots.txt +++ b/static/robots.txt @@ -1,5 +1,36 @@ +# The use of robots or other automated means to access the sites managed by core.ai +# without the express permission of core.ai is strictly prohibited. +# Notwithstanding the foregoing, core.ai may permit automated access to +# access certain pages but solely for the limited purpose of +# including content in publicly available search engines. Any other +# use of robots or failure to obey the robots exclusion standards set +# forth at http://www.robotstxt.org/ is strictly prohibited. + +# Details about Googlebot available at: http://www.google.com/bot.html +# The Google search engine can see everything +User-agent: gsa-crawler-www +Disallow: /assets/ + +# The Omniture search engine can see everything +User-agent: Atomz/1.0 +Disallow: /assets/ + User-agent: * -Allow: / Disallow: /assets/ +User-agent: AdsBot-Google +Disallow: /assets/ + +User-agent: AdsBot-Google-Mobile +Disallow: /assets/ + +User-agent: SearchmetricsBot +Disallow: /assets/ + +User-agent: Googlebot +Disallow: /assets/ + +# XML sitemaps Sitemap: https://docs.phcode.dev/sitemap.xml +Sitemap: https://phcode.dev/sitemap-phcode.xml +Sitemap: https://sitemaps.phcode.io/sitemap-phcode.xml From 160ccabcec24a4d434c34dac69409735f80cf9d3 Mon Sep 17 00:00:00 2001 From: Charly Abraham Date: Tue, 10 Mar 2026 19:37:16 +0530 Subject: [PATCH 3/4] docs: remove seo-pending-guide.md from repo --- seo-pending-guide.md | 125 ------------------------------------------- 1 file changed, 125 deletions(-) delete mode 100644 seo-pending-guide.md diff --git a/seo-pending-guide.md b/seo-pending-guide.md deleted file mode 100644 index a82a1f26..00000000 --- a/seo-pending-guide.md +++ /dev/null @@ -1,125 +0,0 @@ -# SEO Pending Items Guide - -Items that could not be automated and require manual action. - -## 1. Social Card Image (High Priority) - -**Problem:** Current `static/img/socialcard.png` is 478x277px. The optimal size for Open Graph previews (Facebook, Twitter/X, LinkedIn, Discord) is **1200x630px**. - -**Impact:** Small images render poorly or get cropped in social previews, reducing click-through from shared links. - -**Action:** Re-export or redesign `static/img/socialcard.png` at 1200x630px. Keep the same filename so no config changes are needed. - -**Validation:** After deploying, paste a page URL into: -- https://cards-dev.twitter.com/validator (Twitter/X) -- https://developers.facebook.com/tools/debug/ (Facebook) - ---- - -## 2. Doc Page Meta Descriptions (High Priority) - -**Problem:** All 40+ documentation pages under `/docs/` are missing `description` in their frontmatter. Without it, Google auto-generates snippets from random page content. - -**Impact:** +5.8% CTR per page with an optimized description (Yoast/HubSpot study). Google uses the provided description 37% of the time (Ahrefs study of 20k keywords). - -**Action:** Add a `description` field to the frontmatter of each doc page. Example: - -```yaml ---- -title: Live Preview -description: "Use Phoenix Code's live preview to see HTML and CSS changes in real time. Supports browser sync, custom servers, and visual editing." ---- -``` - -**Guidelines:** -- 150-160 characters (Google truncates beyond ~160) -- Include the primary keyword for that page naturally -- Describe what the reader will learn or accomplish -- Use active language - -**Pages needing descriptions (prioritize by traffic):** -- `docs/01-intro.md` -- `docs/08-Features/06-Live Preview/01-live-preview.md` -- `docs/08-Features/beautify-code.md` -- `docs/08-Features/05-keyboard-shortcuts.md` -- `docs/04-editing-colors.md` -- `docs/02-Linux.md`, `docs/03-Mac.md` -- All remaining doc pages under `docs/` - ---- - -## 3. Google Search Console Setup (High Priority) - -**Problem:** The sitemap at `https://docs.phcode.dev/sitemap.xml` should be explicitly submitted to Google Search Console for fastest indexing. - -**Action:** -1. Go to https://search.google.com/search-console -2. Add property `https://docs.phcode.dev` (if not already added) -3. Go to Sitemaps > Add a new sitemap -4. Enter `sitemap.xml` and submit -5. After `robots.txt` is deployed, Google will also discover it automatically - ---- - -## 4. Blog Post Cover Images (Medium Priority) - -**Problem:** No blog post has a custom `image` field in frontmatter. All posts fall back to the global social card (which is also undersized). - -**Impact:** Custom images per post make social shares more visually distinct and clickable. Posts with images get 2-3x higher engagement on social platforms. - -**Action:** For each blog post, create a 1200x630px cover image and add to frontmatter: - -```yaml ---- -image: /img/blog/release-5.0-cover.png ---- -``` - -Store images in `static/img/blog/`. - ---- - -## 5. Category Page Metadata (Low Priority) - -**Problem:** `_category_.json` files under `docs/` only set `collapsible` and `collapsed`. They lack `label` and `description` fields. - -**Action:** Update each `_category_.json`: - -```json -{ - "label": "Features", - "description": "Phoenix Code editor features — live preview, Git, extensions, visual editing, and more.", - "collapsible": true, - "collapsed": false -} -``` - -**Files:** -- `docs/08-Features/_category_.json` -- `docs/07-Pro Features/_category_.json` -- `api/API-Reference/_category_.json` - ---- - -## 6. Monitor Core Web Vitals (Ongoing) - -**Action:** After deployment, check performance at: -- https://pagespeed.web.dev/?url=https://docs.phcode.dev -- Google Search Console > Core Web Vitals report - -**Targets:** LCP < 2.5s, INP < 200ms, CLS < 0.1 - ---- - -## What Was Already Done (This PR) - -| Change | File(s) | -|--------|---------| -| Fixed homepage title + description | `src/pages/index.js` | -| Added `robots.txt` | `static/robots.txt` | -| Added global OG + Twitter meta tags | `docusaurus.config.js` | -| Added JSON-LD Organization + WebSite schemas | `docusaurus.config.js` | -| Enhanced sitemap with lastmod + custom priorities | `docusaurus.config.js` | -| Fixed `anonymizeIP: true` for GDPR | `docusaurus.config.js` | -| Added aria-label to homepage SVGs | `src/components/HomepageFeatures/index.js` | -| Added meta descriptions to 10 blog posts | All `blog/*/index.md` files | From 8aa85c36c497ea769f236f342d6d742123797f02 Mon Sep 17 00:00:00 2001 From: Charly Abraham Date: Tue, 10 Mar 2026 19:48:08 +0530 Subject: [PATCH 4/4] fix: destructure sitemap params inline to satisfy Codacy linter --- docusaurus.config.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index f73988e6..dfa2e7f8 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -93,8 +93,7 @@ const config = { priority: 0.5, ignorePatterns: ["/tags/**"], filename: "sitemap.xml", - createSitemapItems: async (params) => { - const {defaultCreateSitemapItems, ...rest} = params; + createSitemapItems: async ({defaultCreateSitemapItems, ...rest}) => { const items = await defaultCreateSitemapItems(rest); return items.map((item) => { if (item.url === 'https://docs.phcode.dev/') {