diff --git a/src/__tests__/__snapshots__/tool.searchPatternFlyDocs.test.ts.snap b/src/__tests__/__snapshots__/tool.searchPatternFlyDocs.test.ts.snap index adaab16..d3eae24 100644 --- a/src/__tests__/__snapshots__/tool.searchPatternFlyDocs.test.ts.snap +++ b/src/__tests__/__snapshots__/tool.searchPatternFlyDocs.test.ts.snap @@ -10,9 +10,9 @@ exports[`searchPatternFlyDocsTool should have a consistent return structure: str exports[`searchPatternFlyDocsTool, callback should parse parameters, default: search 1`] = `"# Search results for "Button". Showing 2 exact matches."`; -exports[`searchPatternFlyDocsTool, callback should parse parameters, with "*" searchQuery all: search 1`] = `"# Search results for "all" resources. Only showing the first 10 results. There are 732 potential match variations. Try searching with a more specific query."`; +exports[`searchPatternFlyDocsTool, callback should parse parameters, with "*" searchQuery all: search 1`] = `"# Search results for "all" resources. Only showing the first 10 results. There are 764 potential match variations. Try searching with a more specific query."`; -exports[`searchPatternFlyDocsTool, callback should parse parameters, with "all" searchQuery all: search 1`] = `"# Search results for "all" resources. Only showing the first 10 results. There are 732 potential match variations. Try searching with a more specific query."`; +exports[`searchPatternFlyDocsTool, callback should parse parameters, with "all" searchQuery all: search 1`] = `"# Search results for "all" resources. Only showing the first 10 results. There are 764 potential match variations. Try searching with a more specific query."`; exports[`searchPatternFlyDocsTool, callback should parse parameters, with explicit valid version: search 1`] = `"# Search results for "Button". Showing 2 exact matches."`; diff --git a/src/__tests__/docs.json.test.ts b/src/__tests__/docs.json.test.ts index a60953a..c6a8f85 100644 --- a/src/__tests__/docs.json.test.ts +++ b/src/__tests__/docs.json.test.ts @@ -13,10 +13,8 @@ describe('docs.json', () => { if (entry.path.includes('documentation:')) { baseHashes.add('documentation:'); - } else if (entry.path.includes('/patternfly/patternfly-org/')) { - baseHashes.add(entry.path.split('/patternfly/patternfly-org/')[1]?.split('/')[0]); - } else if (entry.path.includes('/patternfly/patternfly-react/')) { - baseHashes.add(entry.path.split('/patternfly/patternfly-react/')[1]?.split('/')[0]); + } else if (/^https:\/\/raw\.githubusercontent\.com\/patternfly\/p[a-zA-Z0-9-]+\//.test(entry.path)) { + baseHashes.add(entry.path.split(/\/patternfly\/p[a-zA-Z0-9-]+\//)[1]?.split('/')[0]); } else { baseHashes.add(`new-resource-${entry.path}`); } @@ -29,9 +27,9 @@ describe('docs.json', () => { /** * Confirm we have limited hashes, avoid variation within pf versions * If this increases, hashes need to be realigned. Do not randomly change this value. - * 1 (v6 org) + 1 (v6 react) + 1 (v5 org) + 1 (local) + * 1 (v6 org) + 1 (v6 react) + 1 (v5 org) + 1 (codemods) + 1 (local) */ - expect(baseHashes.size).toBe(4); + expect(baseHashes.size).toBe(5); /** * Confirm total docs count matches metadata diff --git a/src/docs.json b/src/docs.json index b19b7d4..db4b41d 100644 --- a/src/docs.json +++ b/src/docs.json @@ -2,8 +2,8 @@ "version": "1", "generated": "2026-03-05T00:00:00.000Z", "meta": { - "totalEntries": 128, - "totalDocs": 305, + "totalEntries": 130, + "totalDocs": 311, "source": "patternfly-mcp-internal" }, "docs": { @@ -3306,12 +3306,76 @@ "displayName": "Open UI Automation", "description": "Open UI Automation (OUIA) is a specification for standardizing how UIs expose attributes for automated testing.", "pathSlug": "openui-automation", - "section": "components", + "section": "upgrade", "category": "react", "source": "github", "path": "https://raw.githubusercontent.com/patternfly/patternfly-react/476782a298df81cb78de7f3cd804f3ff8f33993c/packages/react-core/src/helpers/OUIA/OUIA.md", "version": "v6" } + ], + "UpgradeGuide": [ + { + "displayName": "PatternFly 6 upgrade guide", + "description": "PatternFly 6 introduces exciting new features and functionality. Before you upgrade, familiarize yourself with these significant changes.", + "pathSlug": "upgrade-guide-pf6", + "section": "upgrade", + "category": "react", + "source": "github", + "path": "https://raw.githubusercontent.com/patternfly/patternfly-org/2d5fec39ddb8aa32ce78c9a63cdfc1653692b193/packages/site/src/content/get-started/upgrade.mdx", + "version": "v6" + }, + { + "displayName": "Codemods PatternFly 3 to PatternFly 4", + "description": "pf-codemods is an eslint wrapper to update @patternfly/react-core@3.x.x code to 4.x.x.", + "pathSlug": "codemods-pf4", + "section": "upgrade", + "category": "react", + "source": "github", + "path": "https://raw.githubusercontent.com/patternfly/pf-codemods/63df51df5cc6af2f3d83de4c0991c9e65625675f/packages/pf-codemods/v4-README.md", + "version": "v4" + }, + { + "displayName": "Codemods PatternFly 4 to PatternFly 5", + "description": "pf-codemods is an eslint wrapper to update @patternfly/react-core@4.x.x code to 5.x.x.", + "pathSlug": "codemods-pf5", + "section": "upgrade", + "category": "react", + "source": "github", + "path": "https://raw.githubusercontent.com/patternfly/pf-codemods/63df51df5cc6af2f3d83de4c0991c9e65625675f/packages/pf-codemods/v5-README.md", + "version": "v5" + }, + { + "displayName": "Codemods PatternFly 5 to PatternFly 6", + "description": "pf-codemods is an eslint wrapper to update @patternfly/react-core@5.x.x code to 6.x.x.", + "pathSlug": "codemods-pf6", + "section": "upgrade", + "category": "react", + "source": "github", + "path": "https://raw.githubusercontent.com/patternfly/pf-codemods/63df51df5cc6af2f3d83de4c0991c9e65625675f/packages/pf-codemods/README.md", + "version": "v6" + } + ], + "GettingStarted": [ + { + "displayName": "Design with PatternFly 6", + "description": "To start designing with PatternFly 6 you will need to install our PatternFly 6 design kit.", + "pathSlug": "design-with-patternfly", + "section": "getting-started", + "category": "design-guidelines", + "source": "github", + "path": "https://raw.githubusercontent.com/patternfly/patternfly-org/2d5fec39ddb8aa32ce78c9a63cdfc1653692b193/packages/documentation-site/patternfly-docs/content/get-started/design.md", + "version": "v6" + }, + { + "displayName": "Develop with PatternFly 6", + "description": "To start developing with PatternFly 6 learn about our design system and tokens.", + "pathSlug": "develop-with-patternfly", + "section": "getting-started", + "category": "development-guidelines", + "source": "github", + "path": "https://raw.githubusercontent.com/patternfly/patternfly-org/2d5fec39ddb8aa32ce78c9a63cdfc1653692b193/packages/documentation-site/patternfly-docs/content/get-started/develop.md", + "version": "v6" + } ] } }