Skip to content

Commit

Permalink
docs: DeleteModal updates
Browse files Browse the repository at this point in the history
  • Loading branch information
adamviktora committed Oct 9, 2024
1 parent 57c5af0 commit ae6615a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
# Sidenav top-level section
# should be the same for all markdown files for each extension
section: extensions
section: AI-infra-ui-components
# Sidenav secondary level section
# should be the same for all markdown files for each extension
id: DeleteModal
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
# Sidenav top-level section
# should be the same for all markdown files
section: extensions
section: AI-infra-ui-components
# Sidenav secondary level section
# should be the same for all markdown files
id: DeleteModal
Expand All @@ -14,18 +14,10 @@ propComponents: ['DeleteModal']

import { DeleteModal } from "@patternfly/ai-infra-ui-components";

Note: this component is an upgrade of an [existing DeleteModal](https://github.com/opendatahub-io/odh-dashboard/blob/main/frontend/src/pages/projects/components/DeleteModal.tsx) in odh-dashboard

## Basic usage
Note: this component documents the API and enhances the [existing DeleteModal](https://github.com/opendatahub-io/odh-dashboard/blob/main/frontend/src/pages/projects/components/DeleteModal.tsx) component from odh-dashboard. It can be imported from [@patternfly/ai-infra-ui-components](https://www.npmjs.com/package/@patternfly/AI-infra-ui-components). Alternatively, it can be used within the odh-dashboard via the import: `~/pages/projects/components/DeleteModal`

### Example

```js file="./DeleteModalBasic.tsx"

```

### Fullscreen example

```js file="./DeleteModalBasic.tsx" isFullscreen

```
2 changes: 1 addition & 1 deletion packages/module/patternfly-docs/patternfly-docs.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// This module is shared between NodeJS and babelled ES5
module.exports = {
sideNavItems: [{ section: 'extensions' }],
sideNavItems: [{ section: 'AI-infra-ui-components' }],
topNavItems: [],
port: 8006
};
2 changes: 1 addition & 1 deletion packages/module/patternfly-docs/patternfly-docs.source.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = (sourceMD, sourceProps) => {

// Parse md files
const contentBase = path.join(__dirname, './content');
sourceMD(path.join(contentBase, '/**/*.md'), 'extensions');
sourceMD(path.join(contentBase, '/**/*.md'), 'AI-infra-ui-components');

/**
If you want to parse content from node_modules instead of providing a relative/absolute path,
Expand Down

0 comments on commit ae6615a

Please sign in to comment.