FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

chore(docs): bump gatsby-theme-patternfly-org by evwilkin · Pull Request #3269 · patternfly/patternfly-react · GitHub

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .js  (7) .json  (1) .lock  (1) .md  (4) All 4 file types selected
Only manifest files
Deleted files Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
24 changes: 12 additions & 12 deletions RELEASE-NOTES.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
---
title: Release notes
section: root
section: overview
hideTOC: true
---

# 2019.09 release notes (2019-10-29)
# 2019.09 release notes (2019-11-01)
Packages released:
- [@patternfly/react-catalog-view-extension@1.1.1](https://www.npmjs.com/package/@patternfly/react-catalog-view-extension/v/1.1.1)
- [@patternfly/react-charts@5.1.2](https://www.npmjs.com/package/@patternfly/react-charts/v/5.1.2)
- [@patternfly/react-core@3.120.1](https://www.npmjs.com/package/@patternfly/react-core/v/3.120.1)
- [@patternfly/react-inline-edit-extension@2.12.10](https://www.npmjs.com/package/@patternfly/react-inline-edit-extension/v/2.12.10)
- [@patternfly/react-styles@3.6.2](https://www.npmjs.com/package/@patternfly/react-styles/v/3.6.2)
- [@patternfly/react-table@2.24.10](https://www.npmjs.com/package/@patternfly/react-table/v/2.24.10)
- [@patternfly/react-tokens@2.7.2](https://www.npmjs.com/package/@patternfly/react-tokens/v/2.7.2)
- [@patternfly/react-topology@2.11.1](https://www.npmjs.com/package/@patternfly/react-topology/v/2.11.1)
- [@patternfly/react-virtualized-extension@1.3.10](https://www.npmjs.com/package/@patternfly/react-virtualized-extension/v/1.3.10)
- [@patternfly/react-icons@3.14.15](https://www.npmjs.com/package/@patternfly/react-icons/v/3.14.15)
- [@patternfly/react-catalog-view-extension@1.1.5](https://www.npmjs.com/package/@patternfly/react-catalog-view-extension/v/1.1.5)
- [@patternfly/react-charts@5.1.5](https://www.npmjs.com/package/@patternfly/react-charts/v/5.1.5)
- [@patternfly/react-core@3.120.5](https://www.npmjs.com/package/@patternfly/react-core/v/3.120.5)
- [@patternfly/react-inline-edit-extension@2.12.17](https://www.npmjs.com/package/@patternfly/react-inline-edit-extension/v/2.12.17)
- [@patternfly/react-styles@3.6.5](https://www.npmjs.com/package/@patternfly/react-styles/v/3.6.5)
- [@patternfly/react-table@2.24.17](https://www.npmjs.com/package/@patternfly/react-table/v/2.24.17)
- [@patternfly/react-tokens@2.7.5](https://www.npmjs.com/package/@patternfly/react-tokens/v/2.7.5)
- [@patternfly/react-topology@2.11.5](https://www.npmjs.com/package/@patternfly/react-topology/v/2.11.5)
- [@patternfly/react-virtualized-extension@1.3.17](https://www.npmjs.com/package/@patternfly/react-virtualized-extension/v/1.3.17)
- [@patternfly/react-icons@3.14.18](https://www.npmjs.com/package/@patternfly/react-icons/v/3.14.18)

## Charts
- Added legend examples ([#3093](https://github.com/patternfly/patternfly-react/pull/3093))
Expand Down
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,10 @@
title: 'Bulk select table'
section: 'demos'
---

## Bulk select table demo

import { Pagination, Title, Checkbox } from '@patternfly/react-core';
import { Pagination, Title, Checkbox, Toolbar, ToolbarGroup, ToolbarItem, DropdownItem, Dropdown, DropdownToggleCheckbox, DropdownToggle } from '@patternfly/react-core';
import { Table, TableHeader, TableBody} from '@patternfly/react-table';

```js
```js title=Simple
import React from 'react';
import { Pagination, Title, Checkbox } from '@patternfly/react-core';
import { Table, TableHeader, TableBody } from '@patternfly/react-table';
Expand Down
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ stage: 'early'
---
import { Divider } from '@patternfly/react-core/dist/esm/experimental';

## Divider using hr (default)
```js
```js title=Using-hr-(default)
import React from 'react';
import { Divider } from '@patternfly/react-core/dist/esm/experimental';

Expand All @@ -18,8 +17,7 @@ DividerHr = () => (
);
```

## Divider using li
```js
```js title=Using-li
import React from 'react';
import { Divider } from '@patternfly/react-core/dist/esm/experimental';

Expand All @@ -32,8 +30,7 @@ DividerLi = () => (
);
```

## Divider using div
```js
```js title=Using-div
import React from 'react';
import { Divider } from '@patternfly/react-core/dist/esm/experimental';

Expand Down
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@ typescript: true
import { Flex, FlexItem } from '@patternfly/react-core';
import './flex.css';

### Flex Basics

## Examples
### Flex Basics
```js title=Basic
import React from 'react';
import { Flex, FlexItem } from '@patternfly/react-core';
Expand Down
48 changes: 28 additions & 20 deletions packages/patternfly-4/react-docs/gatsby-config.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,35 @@ module.exports = {
{
resolve: `gatsby-theme-patternfly-org`,
options: {
context: 'react', // For global items that need sideNav
hiddenPages: ['withOuia'], // By title
sideNavItems: [
{ section: 'charts' },
{ section: 'components' },
{ section: 'demos' },
{ section: 'experimental' },
{ section: 'inline table' },
{ section: 'layouts' },
{ section: 'virtual scroll' },
{ section: 'catalog view' },
{ text: 'Release notes', link: '/documentation/react/release-notes' },
{ text: 'Global CSS Variables', link: '/documentation/global-css-variables' },
],
sideNav: {
react: [
{ section: 'overview' },
{ section: 'charts' },
{ section: 'components' },
{ section: 'demos' },
{ section: 'experimental' },
{ section: 'inline table' },
{ section: 'layouts' },
{ section: 'virtual scroll' },
{ section: 'catalog view' },
]
},
topNavItems: [
{ text: 'Icons', link: '/icons' },
{ text: 'Icons', path: '/icons' },
],
}
},
// Source shared pages from the theme
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'shared', // This goes in URLs
// TODO: prettier way to do this
path: require.resolve('gatsby-theme-patternfly-org').replace('index.js', 'pages')
}
},
// Source component documentation
{
resolve: 'gatsby-source-filesystem',
Expand Down Expand Up @@ -70,17 +81,14 @@ module.exports = {
{
resolve: path.resolve(__dirname, './plugins/gatsby-transformer-react-docgen-typescript')
},
// The plugin for package.json files (to get version numbers)
'gatsby-transformer-json',
// Duplicated from gatsby-theme-patternfly-org
// Pipe MDX files through this plugin that spits out React components
{
resolve: 'gatsby-plugin-mdx',
options: {
extensions: [`.mdx`, `.md`],
defaultLayouts: {
default: require.resolve('gatsby-theme-patternfly-org/templates/mdxDefault.js'),
},
extensions: ['.md']
}
},
// The plugin for package.json files (to get version numbers)
'gatsby-transformer-json',
]
};
44 changes: 44 additions & 0 deletions packages/patternfly-4/react-docs/gatsby-node.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
// Add types that are present in Core, React, and Org
exports.createSchemaCustomization = ({ actions }) => {
const typeDefs = `
type MdxFrontmatter @infer {
title: String!
section: String
cssPrefix: String
hideTOC: Boolean
optIn: String
experimentalStage: String
propComponents: [String]
hideDarkMode: Boolean
reactComponentName: String
coreComponentName: String
showTitle: Boolean
}
type Mdx implements Node @infer {
frontmatter: MdxFrontmatter
}
type TypeType @noInfer {
name: String
}
type TsType @noInfer {
name: String
raw: String
}
type defaultValue @noInfer {
value: String
}
type PropsType @noInfer {
name: String!
description: String
required: Boolean
type: TypeType
tsType: TsType
defaultValue: defaultValue
}
type ComponentMetadata implements Node @noInfer {
name: String!
props: [PropsType]
}
`;
actions.createTypes(typeDefs);
}
6 changes: 4 additions & 2 deletions packages/patternfly-4/react-docs/package.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"clean": "rimraf .cache public static/assets static/base.css",
"clean:mdx": "rimraf .cache/caches/gatsby-mdx",
"develop": "gatsby develop",
"gatsby": "gatsby",
"serve": "gatsby serve --prefix-paths"
},
"dependencies": {
Expand All @@ -28,9 +29,10 @@
"@patternfly/react-tokens": "^2.7.6",
"@patternfly/react-topology": "^2.11.8",
"@patternfly/react-virtualized-extension": "^1.3.21",
"gatsby": "^2.16.4",
"gatsby": "2.17.10",
"gatsby-cli": "2.8.8",
"gatsby-source-filesystem": "^2.1.22",
"gatsby-theme-patternfly-org": "^0.0.16",
"gatsby-theme-patternfly-org": "^0.0.20",
"gatsby-transformer-json": "^2.2.15",
"react": "^16.8.0",
"react-dom": "^16.8.0",
Expand Down
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,11 @@ async function onCreateNode({ node, actions, loadNodeContent, createNodeId, crea
// console.warn('No component found in', node.absolutePath);
}

if (parsed) {
// TabContent.tsx is being a pain so check for parsed.displayName
if (parsed && parsed.displayName) {
const metadataNode = {
name: parsed.displayName,
relativePath: node.relativePath,
description: parsed.description,
props: flattenProps(parsed.props),
path: node.relativePath,
Expand All @@ -76,3 +78,32 @@ async function onCreateNode({ node, actions, loadNodeContent, createNodeId, crea
}

exports.onCreateNode = onCreateNode;

// Add types fetched in `mdx.js` query in case no files are passed to infer from
exports.createSchemaCustomization = ({ actions }) => {
const typeDefs = `
type TypeType @noInfer {
name: String
}
type TsType @noInfer {
name: String
raw: String
}
type defaultValue @noInfer {
value: String
}
type PropsType @noInfer {
name: String!
description: String
required: Boolean
type: TypeType
tsType: TsType
defaultValue: defaultValue
}
type ComponentMetadata implements Node @noInfer {
name: String!
props: [PropsType]
}
`;
actions.createTypes(typeDefs);
}
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default ({ location }) => {
};

return (
<SideNavLayout location={location}>
<SideNavLayout location={location} context="react">
<PageSection className="ws-section">
<Title size="md" className="ws-framework-title">React</Title>
<Title size="4xl">Icons</Title>
Expand Down
4 changes: 2 additions & 2 deletions packages/patternfly-4/react-docs/src/pages/index.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const containerStyle = {
display: 'flex',
justifyContent: 'center',
flexDirection: 'column',
height: '100%'
height: '80vh'
};

// https://philipwalton.github.io/solved-by-flexbox/demos/vertical-centering/
Expand All @@ -23,7 +23,7 @@ const IndexPage = ({ data, location }) => {
const prInfo = data.allEnvVars.edges.filter(({ node }) => node.name === 'PR_INFO')[0].node;

return (
<SideNavLayout location={location}>
<SideNavLayout location={location} context="react">
<div style={containerStyle}>
<PageSection style={centerStyle}>
<div style={{ flex: 'none', textAlign: 'center' }}>
Expand Down
15 changes: 0 additions & 15 deletions packages/stringReplace.js

This file was deleted.

22 changes: 0 additions & 22 deletions stringReplace.js

This file was deleted.

Loading

Back | FazBrowse Home | New Git URL