Skip to content

Commit 4a86755

Browse files
authored
fix: Resolves broken links. (#4869)
* fix: Resolves broken links. * Update packages/documentation-site/patternfly-docs/content/foundations-and-styles/layouts/bullseye.md * Update packages/site/src/content/get-started/release-highlights.mdx * Undo mdx file changes * Fixes more links and reverts previous landing page directory for now * Remove unnecessary code change cursor made * A few final fixes * Fix training docs
1 parent 81a46f1 commit 4a86755

File tree

82 files changed

+183
-197
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+183
-197
lines changed

packages/documentation-framework/components/sectionGallery/sectionGalleryWrapper.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import React from 'react';
2+
import { useLocation } from '@reach/router';
23
import { groupedRoutes } from '../../routes';
34

45
export const SectionGalleryWrapper = ({
@@ -13,8 +14,16 @@ export const SectionGalleryWrapper = ({
1314
children,
1415
}) => {
1516
let sectionRoutes = subsection
16-
? groupedRoutes[section][subsection]
17+
? groupedRoutes[section]?.[subsection]
1718
: groupedRoutes[section];
19+
// Safety check: if sectionRoutes is undefined/null, return empty array to prevent errors
20+
if (!sectionRoutes) {
21+
return (
22+
<div className={`ws-section-gallery${isFullWidth ? ' ws-section-gallery-full-width' : ''}`}>
23+
{children([], '', () => {}, initialLayout, () => {})}
24+
</div>
25+
);
26+
}
1827
if (!includeSubsections || parseSubsections) {
1928
const sectionRoutesArr = Object.entries(sectionRoutes);
2029
// loop through galleryItems object and build new object to handle subsections
@@ -40,6 +49,7 @@ export const SectionGalleryWrapper = ({
4049
}, {});
4150
}
4251

52+
const location = useLocation();
4353
const [searchTerm, setSearchTerm] = React.useState('');
4454
const [layoutView, setLayoutView] = React.useState(initialLayout);
4555
const filteredItems = Object.entries(sectionRoutes).filter(

packages/documentation-framework/pages/404/index.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -73,31 +73,31 @@ const Page404 = () => {
7373
<Card404
7474
img={PatternFlyIcon}
7575
alt="PatternFly icon"
76-
title="Getting started"
77-
body="Learn about designing and developing with PatternFly."
76+
title="About us"
77+
body="Learn about the PatternFly design system."
7878
link={{
79-
text: 'View getting started resources',
79+
text: 'Learn about PatternFly',
8080
to: '/about-us',
8181
}}
8282
/>
8383
<Card404
8484
img={GuidelinesIcon}
8585
alt="Guidelines icon"
86-
title="Guidelines"
87-
body="Check out PatternFly's design approach to icons, colors, and more."
86+
title="Foundations and styles"
87+
body="Check out our approach to foundational elements and styles, like icons, colors, and more."
8888
link={{
89-
text: 'View guidelines',
90-
to: '/design-foundations/colors',
89+
text: 'View foundations and styles',
90+
to: '/foundations-and-styles/overview',
9191
}}
9292
/>
9393
<Card404
9494
img={ComponentsIcon}
9595
alt="Components icon"
9696
title="Components"
97-
body="Start creating your applications with components -- the building blocks of user interfaces."
97+
body="Start creating your applications with components, our UI building blocks."
9898
link={{
99-
text: 'View components',
100-
to: '/components/about-modal',
99+
text: 'View all components',
100+
to: '/components/all-components',
101101
}}
102102
/>
103103
<Card404
@@ -107,7 +107,7 @@ const Page404 = () => {
107107
body="Visualize your facts and figures by designing the right charts for your data."
108108
link={{
109109
text: 'View charts',
110-
to: '/charts/about-charts',
110+
to: '/components/charts/overview',
111111
}}
112112
/>
113113
</Grid>

packages/documentation-framework/routes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ function getAsyncComponent(url) {
154154
if (allRoutes[url]) {
155155
res = allRoutes[url].Component;
156156
}
157-
else if (routes[url]) {
157+
else if (routes[url] && routes[url].sources && routes[url].sources.length > 0) {
158158
res = routes[url].sources[0].Component;
159159
}
160160

packages/documentation-framework/templates/mdx.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ const MDXChildTemplate = ({ Component, source, toc = [], index = 0, id }) => {
9696
</React.Fragment>
9797
)}{' '}
9898
To learn more about deprecated components, visit{' '}
99-
<Link to="/get-started/about-patternfly#deprecated-components">about PatternFly.</Link>
99+
<Link to="/about-us#deprecated-components">about PatternFly.</Link>
100100
</InlineAlert>
101101
)}
102102
{(template || source === 'react-template') && (

packages/documentation-site/patternfly-docs/content/AI/Compass/Compass.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ To facilitate building a compass layout, there are several useful variants and p
4747
- `isNav` on [Tabs](/components/tabs#tabs-used-for-site-navigation). This flag enables a new styling of `Tabs` to be used as a top site navigation.
4848
- `isCircle` on [Button](/components/button#circle-buttons) and [MenuToggle](/components/menus/menu-toggle#plain-circle-toggle). This flag sets a border radius on the `Button` and `MenuToggle`, allowing buttons and plain icon menu toggles to be circular and typical menu toggles to be a pill shape.
4949
- `isPill` on [Drawer](/components/drawer#pill). This flag sets a border radius and inset on the `Drawer`, giving it a more floating look.
50-
- `isThinking` or `pf-v6-m-thinking` on `CompassPanel` and [MessageBar](/AI/chatbot/ui/#message-bar-with-ai-indicator-styles). This prop, or class name, may be set to turn on a pulsing color animation around the component.
51-
- `hasAiIndicator` or `pf-v6-m-ai-indicator` on [MessageBar](/AI/chatbot/ui/#message-bar-with-ai-indicator-styles). This prop, or class name, may be set to enable a gradient border around the component.
50+
- `isThinking` or `pf-v6-m-thinking` on `CompassPanel` and [MessageBar](/extensions/chatbot/ui/#message-bar-with-ai-indicator-styles). This prop, or class name, may be set to turn on a pulsing color animation around the component.
51+
- `hasAiIndicator` or `pf-v6-m-ai-indicator` on [MessageBar](/extensions/chatbot/ui/#message-bar-with-ai-indicator-styles). This prop, or class name, may be set to enable a gradient border around the component.
5252

5353
### Card and data view layout
5454

packages/documentation-site/patternfly-docs/content/AI/about-generative-ui.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ We are creating an [AI-enabled seed app](https://github.com/patternfly/patternfl
2525
### What does Compass include?
2626

2727
To explore Compass and its features, take a look at a number of our full page demos:
28-
- [Full page demo with card view and table layouts](/patternfly-ai/generative-uis/compass#card-and-data-view-layout)
29-
- [Full page demo with dashboard layout](/patternfly-ai/generative-uis/compass/org-demos#dashboard-layout)
30-
- [Static, full page HTML demo with multiple content sections](/patternfly-ai/generative-uis/compass/html-demos#multiple-sections)
31-
- [Static, full page HTML demo with drawer](/patternfly-ai/generative-uis/compass/html-demos#with-drawer)
28+
- [Full page demo with card view and table layouts](/ai/generative-uis/compass#card-and-data-view-layout)
29+
- [Full page demo with dashboard layout](/ai/generative-uis/compass/org-demos#dashboard-layout)
30+
- [Static, full page HTML demo with multiple content sections](/ai/generative-uis/compass/html-demos#multiple-sections)
31+
- [Static, full page HTML demo with drawer](/ai/generative-uis/compass/html-demos#with-drawer)
3232

3333
To support the different ways you might use Compass, we've introduced several new capabilities to PatternFly:
3434

@@ -37,7 +37,7 @@ To support the different ways you might use Compass, we've introduced several ne
3737
- Background and border gradients
3838
- Additional smooth animations
3939
- Background image explorations
40-
- [**Compass layout component**](/components/compass): A new layout component designed specifically for generative UI patterns
40+
- [**Compass layout component**](/ai/generative-uis/compass): A new layout component designed specifically for generative UI patterns
4141
- **Additional components and component variants**:
4242
- Transparency & Effects:
4343
- `isPlain` makes cards, data lists, and tables transparent to allow background effects (like a glass look) to show through.
@@ -57,7 +57,7 @@ Accessibility has been a major focus throughout the Compass exploration. As gene
5757

5858
### Integration with react-flow
5959

60-
Some stakeholdres have been experimenting with Generative UI use cases using React Flow. The React Flow package `@xyflow/react` is compatible with PatternFly through customization of its [theme](https://reactflow.dev/learn/customization/theming) and [rendered nodes](https://reactflow.dev/learn/customization/custom-nodes). A custom override stylesheet can assign PatternFly's global tokens to React Flow's own tokens to ensure a consistent styling. We have created some [documentation and a demo](/patternfly-ai/generative-uis/react-flow) for integrations with PatternFly as a POC for these use cases.
60+
Some stakeholdres have been experimenting with Generative UI use cases using React Flow. The React Flow package `@xyflow/react` is compatible with PatternFly through customization of its [theme](https://reactflow.dev/learn/customization/theming) and [rendered nodes](https://reactflow.dev/learn/customization/custom-nodes). A custom override stylesheet can assign PatternFly's global tokens to React Flow's own tokens to ensure a consistent styling. We have created some [documentation and a demo](/ai/generative-uis/react-flow) for integrations with PatternFly as a POC for these use cases.
6161

6262
### Current status
6363

packages/documentation-site/patternfly-docs/content/AI/conversation-design/conversation-design.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import ArrowRightIcon from '@patternfly/react-icons/dist/esm/icons/arrow-right-i
1313

1414
Good conversation design combines content strategy, writing, and design to ensure that the development and use of chatbots is centered on real user needs. This includes making sure that all text related to the conversational UI supports easy engagement with chatbots, while staying aligned with brand standards.
1515

16-
When designing AI conversations alongside PatternFly-based projects, it is important to align with our established [brand voice and tone](/content-design/brand-voice-and-tone), as well as our [ethical guidelines for AI.](/AI/ai-guidelines)
16+
When designing AI conversations alongside PatternFly-based projects, it is important to align with our established [brand voice and tone](/content-design/brand-voice-and-tone), as well as our [ethical guidelines for AI.](/ai/overview)
1717

1818
## Best practices
1919

@@ -29,11 +29,11 @@ Following these best practices to help ensure that your users can complete their
2929

3030
When chatbots are designed to meet the needs of your users, they can improve the overall UX of your product. They are convenient, efficient, and persistent.
3131

32-
[Our chatbot extension](/AI/chatbot/about-chatbot) utilizes PatternFly components to create a foundation for an AI-based chatbot, with additional customization options.
32+
[Our chatbot extension](/extensions/chatbot/overview) utilizes PatternFly components to create a foundation for an AI-based chatbot, with additional customization options.
3333

3434
<Flex>
3535
<FlexItem>
36-
<Button component="a" href="/AI/chatbot/about-chatbot" target="_blank" variant="primary" size="lg">Use the chatbot extension <ArrowRightIcon /></Button>
36+
<Button component="a" href="/extensions/chatbot/overview" target="_blank" variant="primary" size="lg">Use the chatbot extension <ArrowRightIcon /></Button>
3737
</FlexItem>
3838
</Flex>
3939

packages/documentation-site/patternfly-docs/content/AI/rapid-prototyping/enhancing-existing-projects.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ sortValue: 2
99

1010
This guide provides instructions for integrating AI-assisted PatternFly development tools into your existing codebase.
1111

12-
Before you get started, review [best practices for AI-assisted prototyping](/AI/rapid-prototyping/rapid-prototyping#best-practices-for-ai-assisted-prototyping) and learn about [vibe coding principles](/AI/rapid-prototyping/rapid-prototyping#what-is-vibe-coding) for effective AI-assisted development.
12+
Before you get started, review [best practices for AI-assisted prototyping](/ai/rapid-prototyping/#best-practices-for-ai-assisted-prototyping) and learn about [vibe coding principles](/ai/rapid-prototyping/#what-is-vibe-coding) for effective AI-assisted development.
1313

14-
If you need to start a new project, follow our guidelines for [starting a new prototype](/AI/rapid-prototyping/new-prototypes).
14+
If you need to start a new project, follow our guidelines for [starting a new prototype](/ai/rapid-prototyping/new-prototypes).
1515

1616
## Why enhance existing projects?
1717

packages/documentation-site/patternfly-docs/content/AI/rapid-prototyping/migrating-to-patternfly.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ For example, you could use AI to migrate a simple Angular feature like this tabl
5656

5757
![Before migration - Angular Products page](./img/products-before.png)
5858

59-
During the development phase, you could take a couple of different approaches to migrate code. You might be able to simply change the code within the same file or you might want to start fresh, using the patternfly-react-seed and following [our rapid prototyping guide.](https://www.patternfly.org/AI/rapid-prototyping/new-prototypes)
59+
During the development phase, you could take a couple of different approaches to migrate code. You might be able to simply change the code within the same file or you might want to start fresh, using the patternfly-react-seed and following [our rapid prototyping guide.](https://www.patternfly.org/ai/rapid-prototyping/new-prototypes)
6060

6161
In this example, we created a placeholder page (PF6placeholder.js) and asked AI to replicate the Angular component on the new page, using PatternFly.
6262

packages/documentation-site/patternfly-docs/content/AI/rapid-prototyping/new-prototypes.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ sortValue: 2
99

1010
This guide provides instructions for setting up new PatternFly prototypes using AI-assisted development tools.
1111

12-
Before you get started, review [best practices for AI-assisted prototyping](/AI/rapid-prototyping/rapid-prototyping#best-practices-for-ai-assisted-prototyping).
12+
Before you get started, review [best practices for AI-assisted prototyping](/ai/rapid-prototyping/#best-practices-for-ai-assisted-prototyping).
1313

14-
If you need to add AI tools to existing codebases instead, follow our guidelines for [enhancing existing projects](/AI/rapid-prototyping/enhancing-existing-projects).
14+
If you need to add AI tools to existing codebases instead, follow our guidelines for [enhancing existing projects](/ai/rapid-prototyping/enhancing-existing-projects).
1515

1616
## Project setup
1717

@@ -35,7 +35,7 @@ The patternfly-react-seed ai_enabled branch comes pre-configured with:
3535

3636
Once you've installed and set up the patternfly-react-seed ai_enabled branch, with the [patternfly-ai-coding tool](https://github.com/patternfly/patternfly-ai-coding), follow these steps to begin prototyping:
3737

38-
1. **Define your scope**: Clearly articulate what you want to build using [vibe coding principles](/AI/rapid-prototyping/rapid-prototyping#effective-prompting-with-vibe-coding). Describe the experience, not the technical implementation.
38+
1. **Define your scope**: Clearly articulate what you want to build using [vibe coding principles](/ai/rapid-prototyping/#effective-prompting-with-vibe-coding). Describe the experience, not the technical implementation.
3939
2. **Leverage AI assistance**: Use AI tools to generate PatternFly components based on your requirements, communicating through natural language descriptions of user needs and design intent.
4040
3. **Iterate and refine**: Review generated code and make adjustments as needed, continuing to use vibe coding to guide refinements.
4141
4. **Test and validate**: Ensure your prototype meets design and functional requirements.

0 commit comments

Comments
 (0)