Skip to content

Commit 8291007

Browse files
committed
chore(docs): expose foundations, styles guidance
1 parent d0fa57a commit 8291007

3 files changed

Lines changed: 149 additions & 5 deletions

File tree

src/__tests__/__snapshots__/tool.searchPatternFlyDocs.test.ts.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ exports[`searchPatternFlyDocsTool should have a consistent return structure: str
1010

1111
exports[`searchPatternFlyDocsTool, callback should parse parameters, default: search 1`] = `"# Search results for "Button". Showing 1 exact match."`;
1212

13-
exports[`searchPatternFlyDocsTool, callback should parse parameters, with "*" searchQuery all: search 1`] = `"# Search results for "all" resources. Only showing the first 10 results. There are 546 potential match variations. Try searching with a more specific query."`;
13+
exports[`searchPatternFlyDocsTool, callback should parse parameters, with "*" searchQuery all: search 1`] = `"# Search results for "all" resources. Only showing the first 10 results. There are 586 potential match variations. Try searching with a more specific query."`;
1414

15-
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 546 potential match variations. Try searching with a more specific query."`;
15+
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 586 potential match variations. Try searching with a more specific query."`;
1616

1717
exports[`searchPatternFlyDocsTool, callback should parse parameters, with explicit valid version: search 1`] = `"# Search results for "Button". Showing 1 exact match."`;
1818

src/__tests__/docs.json.test.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,14 @@ describe('docs.json', () => {
1717

1818
expect(totalDocs).toBe(docs.meta.totalDocs);
1919
});
20+
21+
it('should have unique links per each entry', () => {
22+
const allLinks = new Set<string>();
23+
const flatDocs = Object.values(docs.docs).flat();
24+
25+
flatDocs.forEach(entry => allLinks.add(entry.path));
26+
27+
expect(allLinks.size).toBe(flatDocs.length);
28+
expect(allLinks.size).toBe(docs.meta.totalDocs);
29+
});
2030
});

src/docs.json

Lines changed: 137 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"version": "1",
3-
"generated": "2026-02-18T00:00:00.000Z",
3+
"generated": "2026-03-04T00:00:00.000Z",
44
"meta": {
5-
"totalEntries": 115,
6-
"totalDocs": 267,
5+
"totalEntries": 122,
6+
"totalDocs": 279,
77
"source": "patternfly-mcp-internal"
88
},
99
"docs": {
@@ -2906,6 +2906,140 @@
29062906
"path": "https://raw.githubusercontent.com/patternfly/patternfly-org/3f5653a2742910515279c5c32cde9f2f6a87ca79/packages/documentation-site/patternfly-docs/content/content-design/grammar/units-and-symbols.md",
29072907
"version": "v6"
29082908
}
2909+
],
2910+
"DesignTokens": [
2911+
{
2912+
"displayName": "Design tokens",
2913+
"description": "Design tokens overview.",
2914+
"pathSlug": "design-tokens-overview",
2915+
"section": "foundations-and-styles",
2916+
"category": "design-tokens",
2917+
"source": "github",
2918+
"path": "https://raw.githubusercontent.com/patternfly/patternfly-org/3f5653a2742910515279c5c32cde9f2f6a87ca79/packages/documentation-site/patternfly-docs/content/foundations-and-styles/design-tokens/tokens.md",
2919+
"version": "v6"
2920+
},
2921+
{
2922+
"displayName": "Design Tokens for design",
2923+
"description": "Design guidance for using design tokens with Figma and PatternFly.",
2924+
"pathSlug": "design-tokens-design",
2925+
"section": "foundations-and-styles",
2926+
"category": "design-guidelines",
2927+
"source": "github",
2928+
"path": "https://raw.githubusercontent.com/patternfly/patternfly-org/3f5653a2742910515279c5c32cde9f2f6a87ca79/packages/documentation-site/patternfly-docs/content/foundations-and-styles/design-tokens/design.md",
2929+
"version": "v6"
2930+
},
2931+
{
2932+
"displayName": "Design tokens for development",
2933+
"description": "Development guidance for using design tokens.",
2934+
"pathSlug": "design-tokens-development",
2935+
"section": "foundations-and-styles",
2936+
"category": "react",
2937+
"source": "github",
2938+
"path": "https://raw.githubusercontent.com/patternfly/patternfly-org/3f5653a2742910515279c5c32cde9f2f6a87ca79/packages/documentation-site/patternfly-docs/content/foundations-and-styles/design-tokens/develop.md",
2939+
"version": "v6"
2940+
}
2941+
],
2942+
"Colors": [
2943+
{
2944+
"displayName": "Color palettes",
2945+
"description": "Color guidelines for brand and PatternFly.",
2946+
"pathSlug": "colors",
2947+
"section": "foundations-and-styles",
2948+
"category": "design-guidelines",
2949+
"source": "github",
2950+
"path": "https://raw.githubusercontent.com/patternfly/patternfly-org/3f5653a2742910515279c5c32cde9f2f6a87ca79/packages/documentation-site/patternfly-docs/content/foundations-and-styles/styles/colors/colors.md",
2951+
"version": "v6"
2952+
}
2953+
],
2954+
"Iconography": [
2955+
{
2956+
"displayName": "Iconography",
2957+
"description": "Icon guidelines overview.",
2958+
"pathSlug": "iconography",
2959+
"section": "foundations-and-styles",
2960+
"category": "design-guidelines",
2961+
"source": "github",
2962+
"path": "https://raw.githubusercontent.com/patternfly/patternfly-org/3f5653a2742910515279c5c32cde9f2f6a87ca79/packages/documentation-site/patternfly-docs/content/foundations-and-styles/styles/iconography/iconography.md",
2963+
"version": "v6"
2964+
}
2965+
],
2966+
"Motion": [
2967+
{
2968+
"displayName": "Motion guidelines",
2969+
"description": "Motion guidelines overview.",
2970+
"pathSlug": "motion",
2971+
"section": "foundations-and-styles",
2972+
"category": "design-guidelines",
2973+
"source": "github",
2974+
"path": "https://raw.githubusercontent.com/patternfly/patternfly-org/3f5653a2742910515279c5c32cde9f2f6a87ca79/packages/documentation-site/patternfly-docs/content/foundations-and-styles/styles/motion/motion.md",
2975+
"version": "v6"
2976+
},
2977+
{
2978+
"displayName": "Motion for development",
2979+
"description": "Development guidelines for animations (motion).",
2980+
"pathSlug": "motion-development",
2981+
"section": "foundations-and-styles",
2982+
"category": "design-guidelines",
2983+
"source": "github",
2984+
"path": "https://raw.githubusercontent.com/patternfly/patternfly-org/3f5653a2742910515279c5c32cde9f2f6a87ca79/packages/documentation-site/patternfly-docs/content/foundations-and-styles/styles/motion/motion-development.md",
2985+
"version": "v6"
2986+
}
2987+
],
2988+
"Spacers": [
2989+
{
2990+
"displayName": "Spacers",
2991+
"description": "Spacer guidelines and dimension tokens.",
2992+
"pathSlug": "spacers",
2993+
"section": "foundations-and-styles",
2994+
"category": "design-guidelines",
2995+
"source": "github",
2996+
"path": "https://raw.githubusercontent.com/patternfly/patternfly-org/3f5653a2742910515279c5c32cde9f2f6a87ca79/packages/documentation-site/patternfly-docs/content/foundations-and-styles/styles/spacers/spacers.md",
2997+
"version": "v6"
2998+
}
2999+
],
3000+
"Theming": [
3001+
{
3002+
"displayName": "Theming",
3003+
"description": "Theming overview.",
3004+
"pathSlug": "theming",
3005+
"section": "foundations-and-styles",
3006+
"category": "design-guidelines",
3007+
"source": "github",
3008+
"path": "https://raw.githubusercontent.com/patternfly/patternfly-org/3f5653a2742910515279c5c32cde9f2f6a87ca79/packages/documentation-site/patternfly-docs/content/foundations-and-styles/styles/theming/theming.md",
3009+
"version": "v6"
3010+
},
3011+
{
3012+
"displayName": "Dark theme",
3013+
"description": "Dark theme mode developer handbook.",
3014+
"pathSlug": "dark-theme-development",
3015+
"section": "foundations-and-styles",
3016+
"category": "design-guidelines",
3017+
"source": "github",
3018+
"path": "https://raw.githubusercontent.com/patternfly/patternfly-org/3f5653a2742910515279c5c32cde9f2f6a87ca79/packages/documentation-site/patternfly-docs/content/foundations-and-styles/styles/theming/dark-theme-handbook.md",
3019+
"version": "v6"
3020+
},
3021+
{
3022+
"displayName": "High contrast",
3023+
"description": "High contrast mode, improving component contrast through visual accessibility, developers handbook.",
3024+
"pathSlug": "high-contrast-development",
3025+
"section": "foundations-and-styles",
3026+
"category": "design-guidelines",
3027+
"source": "github",
3028+
"path": "https://raw.githubusercontent.com/patternfly/patternfly-org/3f5653a2742910515279c5c32cde9f2f6a87ca79/packages/documentation-site/patternfly-docs/content/foundations-and-styles/styles/theming/high-contrast-handbook.md",
3029+
"version": "v6"
3030+
}
3031+
],
3032+
"Typography": [
3033+
{
3034+
"displayName": "Typography",
3035+
"description": "Typography principles and standards, including token values and usage information.",
3036+
"pathSlug": "typography",
3037+
"section": "foundations-and-styles",
3038+
"category": "design-guidelines",
3039+
"source": "github",
3040+
"path": "https://raw.githubusercontent.com/patternfly/patternfly-org/3f5653a2742910515279c5c32cde9f2f6a87ca79/packages/documentation-site/patternfly-docs/content/foundations-and-styles/styles/typography/typography.md",
3041+
"version": "v6"
3042+
}
29093043
]
29103044
}
29113045
}

0 commit comments

Comments
 (0)