Skip to content

Commit

Permalink
docs(design-tokens): Creates docs for design tokens. (patternfly#3786)
Browse files Browse the repository at this point in the history
* docs(design-tokens): creates documentation for design tokens.

* Working on design tokens doc structure.

* Continues adding content and outlining the docs structure.

* Ready design tokens docs for draft preview.

* Update page info.

* Add to side nav.

* Adjust section label.

* Update packages/documentation-site/patternfly-docs/patternfly-docs.config.js

* Small typos.

* Update sidebar.'
q

* Updates to the charts about page and charts colors page (patternfly#3759)

* Updates to the charts about page and charts colors page

* Update to Color-and-pattern-usage image file

* Update colors-for-charts.md

* Update colors-for-charts.md

---------

Co-authored-by: Margot <[email protected]>

* chore(release): releasing packages [ci skip]

 - @patternfly/[email protected]
 - @patternfly/[email protected]

* Update broken links on menu accessibility docs

* Update broken links on menu design guidelines

* chore(release): releasing packages [ci skip]

 - @patternfly/[email protected]
 - @patternfly/[email protected]

* Removing the redudancy in the file. Use is described above the text. (patternfly#3790)

* chore(release): releasing packages [ci skip]

 - @patternfly/[email protected]
 - @patternfly/[email protected]

* docs(design-guidelines) Updates content for consistency. (patternfly#3782)

* docs(design-guidelines) Updates content for consistency.

* Updates from review.

* chore(release): releasing packages [ci skip]

 - @patternfly/[email protected]
 - @patternfly/[email protected]

* chore(docs-framework): add class on example load (patternfly#3789)

* chore(docs-framework): add class on example load

* chore(example): remove dev mode check from page loaded class addition

* chore(example): refactor to add class on page load event

* chore(release): releasing packages [ci skip]

 - @patternfly/[email protected]
 - @patternfly/[email protected]

* docs(terminology): Updates n/a and -- descriptions for clarity. (patternfly#3783)

* docs(terminology): Updates n/a and -- descriptions for clarity.

* Update packages/documentation-site/patternfly-docs/content/design-guidelines/content/terminology.md

* Update packages/documentation-site/patternfly-docs/content/design-guidelines/content/terminology.md

* chore(release): releasing packages [ci skip]

 - @patternfly/[email protected]
 - @patternfly/[email protected]

* feat(dark-theme): replace dark theme switcher with toggle group (patternfly#3788)

* chore(release): releasing packages [ci skip]

 - @patternfly/[email protected]
 - @patternfly/[email protected]

* chore(JumpLinks): updated a11y docs to match template (patternfly#3808)

* fix(react-drag-drop): add react-drag-drop to latest version (patternfly#3801)

* chore(release): releasing packages [ci skip]

 - @patternfly/[email protected]
 - @patternfly/[email protected]

* fix: clean up versions and showdown deps (patternfly#3816)

* chore(release): releasing packages [ci skip]

 - @patternfly/[email protected]
 - @patternfly/[email protected]

* Added expand/collapse all cards info (patternfly#3815)

* Added expand/collapse all cards info

* Update card-view.md

* Update card-view.md

---------

Co-authored-by: Margot <[email protected]>

* chore(release): releasing packages [ci skip]

 - @patternfly/[email protected]
 - @patternfly/[email protected]

* fix: add charts dark theme stylesheet (patternfly#3802)

* chore(release): releasing packages [ci skip]

 - @patternfly/[email protected]
 - @patternfly/[email protected]

* fix(drag drop): add drag drop to 5.1 versions.json (patternfly#3817)

* fix(react-drag-drop): add react-drag-drop to latest version

* fix(drag drop): add to 5.1 version

* remove form 5.0

* chore(release): releasing packages [ci skip]

 - @patternfly/[email protected]
 - @patternfly/[email protected]

* fix: add virtualized table to extensions staging (patternfly#3819)

* chore(release): releasing packages [ci skip]

 - @patternfly/[email protected]
 - @patternfly/[email protected]

* chore(Sidebar): updated a11y docs (patternfly#3813)

* chore(AboutModal): updated a11y docs to match template (patternfly#3796)

* chore(AboutModal): updated a11y docs to match template

* Added alt text content to additional sections

* chore(release): releasing packages [ci skip]

 - @patternfly/[email protected]
 - @patternfly/[email protected]

* Makes some content updates.

* fix: prepare org for component groups release (patternfly#3822)

* fix: prepare org for component groups release

* bump to component groups to 5.0.0

* chore(release): releasing packages [ci skip]

 - @patternfly/[email protected]
 - @patternfly/[email protected]

* Update github actions to add new issues to project board (patternfly#3818)

* chore(release): releasing packages [ci skip]

 - @patternfly/[email protected]
 - @patternfly/[email protected]

* docs(accessibility-fundamentals): Updates content as part of audit. (patternfly#3762)

* docs(accessibility-fundamentals): Updates content as part of audit.

* Updates content and adjusts file name.

* Content tweaks.

* Update packages/documentation-site/patternfly-docs/content/developer-resources/accessibility-fundamentals.md

* Test page name change

* Update packages/documentation-site/patternfly-docs/content/developer-resources/accessibility-fundamentals.md

* Some final tweaking to ready draft for review.

* Apply suggestions from code review

Co-authored-by: Eric Olkowski <[email protected]>

* Update packages/documentation-site/patternfly-docs/content/developer-resources/accessibility-fundamentals.md

* Updates to file name.

---------

Co-authored-by: Eric Olkowski <[email protected]>

* docs(patternfly-accessibility): Updates content as part of content audit. (patternfly#3772)

* docs(patternfly-accessibility): Updates content as part of content audit.

* Update packages/documentation-site/patternfly-docs/content/developer-resources/patternfly-accessibility.md

* Update packages/documentation-site/patternfly-docs/content/developer-resources/patternfly-accessibility.md

Co-authored-by: Eric Olkowski <[email protected]>

* Apply suggestions from code review

* Update packages/documentation-site/patternfly-docs/content/developer-resources/patternfly-accessibility.md

* Update packages/documentation-site/patternfly-docs/content/developer-resources/patternfly-accessibility.md

Co-authored-by: Eric Olkowski <[email protected]>

---------

Co-authored-by: Eric Olkowski <[email protected]>

* docs(accessibility-development): Updates documentation as part of content audit. (patternfly#3780)

* docs(accessibility-development): Updates documentation as part of content audit.

* Test adding screen reader info here.

* Test name change to adjust nav

* Apply suggestions from code review

Co-authored-by: Eric Olkowski <[email protected]>

* Update packages/documentation-site/patternfly-docs/content/developer-resources/accessibility-development.md

* Update packages/documentation-site/patternfly-docs/content/developer-resources/accessibility-development.md

* Updates content.

* Apply suggestions from code review

* Update packages/documentation-site/patternfly-docs/content/developer-resources/accessibility-development.md

* Updates development techniques table content.

* Continues editing content.

* Content updates.

---------

Co-authored-by: Eric Olkowski <[email protected]>

* docs(accessibility-scorecard): Updates content as part of content audit. (patternfly#3774)

* docs(accessibility-scorecard): Updates content as part of content audit.

* Update packages/documentation-site/patternfly-docs/content/developer-resources/accessibility-scorecard.md

* Final tweaks to ready content for review.

* Updates content.

* chore(deps): add react as a dep at the root level (patternfly#3834)

* chore(release): releasing packages [ci skip]

 - @patternfly/[email protected]
 - @patternfly/[email protected]

* chore(Skeleton): updated a11y docs to match template (patternfly#3824)

* chore(HelperText): updated a11y docs to match template (patternfly#3805)

* chore(HelperText): updated a11y docs to match template

* Removed interactive content bullet from design guidelines

* chore(ExpandableSection): updated a11y docs to match template (patternfly#3803)

* chore(ExpandableSection): updated a11y docs to match template

* Added content regarding multiple sections on a page

* Added atttributes to html table

* chore(CodeEditor): updated a11y documentation to match template (patternfly#3799)

* chore(CodeEditor): updated a11y documentation to match template

* Removed unused import

* chore(release): releasing packages [ci skip]

 - @patternfly/[email protected]
 - @patternfly/[email protected]

* chore(deps): bump semver from 5.7.1 to 5.7.2 (patternfly#3841)

Bumps [semver](https://github.com/npm/node-semver) from 5.7.1 to 5.7.2.
- [Release notes](https://github.com/npm/node-semver/releases)
- [Changelog](https://github.com/npm/node-semver/blob/v5.7.2/CHANGELOG.md)
- [Commits](npm/node-semver@v5.7.1...v5.7.2)

---
updated-dependencies:
- dependency-name: semver
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump @babel/traverse from 7.18.6 to 7.23.6 (patternfly#3842)

Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.18.6 to 7.23.6.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.6/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(release): releasing packages [ci skip]

 - @patternfly/[email protected]
 - @patternfly/[email protected]

* docs(level): expands design guidelines for level layout. (patternfly#3673)

* docs: expands design guidelines for level layout.

* Expands content.

* Image placeholders.

* Adds content to ready for review.

* Apply suggestions from code review

* Remove image placeholders

* [Snyk] Fix for 1 vulnerabilities (patternfly#3828)

* fix: packages/documentation-framework/package.json to reduce vulnerabilities

The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-INFLIGHT-6095116

* address breaking change in glob

* more version bumps

* update screenshot command

---------

Co-authored-by: snyk-bot <[email protected]>
Co-authored-by: nicolethoen <[email protected]>

* chore(release): releasing packages [ci skip]

 - @patternfly/[email protected]
 - @patternfly/[email protected]

* chore(deps): bump postcss from 8.4.31 to 8.4.32 (patternfly#3844)

Bumps [postcss](https://github.com/postcss/postcss) from 8.4.31 to 8.4.32.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](postcss/postcss@8.4.31...8.4.32)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(release): releasing packages [ci skip]

 - @patternfly/[email protected]
 - @patternfly/[email protected]

* [Snyk] Security upgrade puppeteer from 18.2.0 to 19.7.3 (patternfly#3843)

* fix: packages/documentation-framework/package.json to reduce vulnerabilities

The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-INFLIGHT-6095116

* update yarn.lock

---------

Co-authored-by: snyk-bot <[email protected]>
Co-authored-by: nicolethoen <[email protected]>

* chore(deps): bump qs from 6.5.2 to 6.5.3 (patternfly#3309)

Bumps [qs](https://github.com/ljharb/qs) from 6.5.2 to 6.5.3.
- [Release notes](https://github.com/ljharb/qs/releases)
- [Changelog](https://github.com/ljharb/qs/blob/main/CHANGELOG.md)
- [Commits](ljharb/qs@v6.5.2...v6.5.3)

---
updated-dependencies:
- dependency-name: qs
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix: try a v6 release

* chore(release): releasing packages [ci skip]

 - @patternfly/[email protected]
 - @patternfly/[email protected]

* fix: use surge for v6 staging rather than aws bucket

* fix: bump docs-framework version in docs-site

* chore(release): releasing packages [ci skip]

 - @patternfly/[email protected]
 - @patternfly/[email protected]

* fix: try publish v6 to aws (patternfly#3845)

* chore(release): releasing packages [ci skip]

 - @patternfly/[email protected]
 - @patternfly/[email protected]

* fix: update white space to test publishing to aws

* chore(release): releasing packages [ci skip]

 - @patternfly/[email protected]
 - @patternfly/[email protected]

* fix: PF brand logo in masthead to inline svg

* chore(release): releasing packages [ci skip]

 - @patternfly/[email protected]
 - @patternfly/[email protected]

* fix: bump puppeteer (patternfly#3858)

* chore(release): releasing packages [ci skip]

 - @patternfly/[email protected]
 - @patternfly/[email protected]

* fix: Update brand svg id to avoid duplicate ids

* chore(release): releasing packages [ci skip]

 - @patternfly/[email protected]
 - @patternfly/[email protected]

* Fix: update logo svg (patternfly#3861)

* fix: update logo svg

* fix: update logo svg

* chore(release): releasing packages [ci skip]

 - @patternfly/[email protected]
 - @patternfly/[email protected]

* fix: Update versions.json to include drag drop alpha

* chore(release): releasing packages [ci skip]

 - @patternfly/[email protected]
 - @patternfly/[email protected]

* fix: bump docs framework version

* chore(release): releasing packages [ci skip]

 - @patternfly/[email protected]
 - @patternfly/[email protected]

* Continued edits.

* Working on content.

* Updates design info and adds images.

* Updates to images.

* Continued content updates.

* Smooths out formatting and content.

* add all tokens documentation

* bump to design-tokens version with versioned css

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: aratti96 <[email protected]>
Co-authored-by: Margot <[email protected]>
Co-authored-by: patternfly-build <[email protected]>
Co-authored-by: Nicole Thoen <[email protected]>
Co-authored-by: kuklas <[email protected]>
Co-authored-by: Austin Sullivan <[email protected]>
Co-authored-by: Eric Olkowski <[email protected]>
Co-authored-by: kmcfaul <[email protected]>
Co-authored-by: Katie Edwards <[email protected]>
Co-authored-by: Jessie <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Patternfly Build <[email protected]>
Co-authored-by: snyk-bot <[email protected]>
  • Loading branch information
14 people committed Mar 20, 2024
1 parent bd8046a commit a587f43
Show file tree
Hide file tree
Showing 14 changed files with 157 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ module.exports = (_env, argv) => {
/react-[\w-]+\\src\\.*\\examples/, // fix for Windows
/react-[\w-]+\/patternfly-docs\/.*\/examples/, //fixes for extensions
/react-[\w-]+\\patternfly-docs\\.*\\examples/,
path.resolve(__dirname, '../../../../node_modules/@patternfly/design-tokens/patternfly-docs/content')
].concat(includePaths.map(path => new RegExp(path))),
exclude: [
path.resolve(__dirname, '../../node_modules'), // Temporarily compile theme using webpack for development
Expand Down
6 changes: 6 additions & 0 deletions packages/documentation-framework/templates/mdx.css
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@
margin-bottom: var(--pf-v6-c-content--MarginBottom);
}

.ws-image {
text-align: center;
width: "600px";
}

/* Table styles */
/* Undo patternfly reset to respect MD table styles */
.ws-table td[align="center"],
Expand All @@ -68,6 +73,7 @@
table-layout: fixed;
width: 100%;
}

.ws-table td > code,
.ws-table th > code,
.ws-table tr > code {
Expand Down
1 change: 1 addition & 0 deletions packages/documentation-site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"@patternfly/react-user-feedback": "5.0.0",
"@patternfly/react-component-groups": "5.0.0-prerelease.10",
"@patternfly/react-virtualized-extension": "5.0.0",
"@patternfly/design-tokens": "1.0.2",
"react": "^17.0.0 || ^18.0.0",
"react-dom": "^17.0.0 || ^18.0.0",
"showdown": "^2.1.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
---
id: About tokens
section: tokens
---

**Design tokens** are variables that store visual design attributes like color, typography, and spacing. Tokens have a name and value that conveys their associated design style, making their purpose clear and recognizable.

PatternFly's tokens are set up as variables and styles within Figma, and are exported as CSS variables for use in development. Tokens are only available as part of the PatternFly 6 release, so make sure you [upgrade to PatternFly 6](/get-started/upgrade) in order to take advantage of tokens.

To learn more about designing with the PatternFly Figma library, [refer to our onboarding guide.](/get-started/design#figma-library)

You can also [view the complete list of PatternFly's design tokens.](/tokens/all-patternfly-tokens)

## Why use tokens?

A token system enables a a shared language for building UIs and helps support better consistency and maintenance across the PatternFly design system.

### Consistency
Tokens help maintain consistency across product design processes by ensuring that the same colors and styles are always used for the same use cases. By removing the decision making that would otherwise go into choosing the right color, heading level, spacing, and so on, designs can be created more consistently and efficiently.

### Easier maintenance
Tokens also enable easier design system maintenance. Whenever a color is changed as part of a redesign or update, all related tokens are automatically updated to reflect this change. This means that developers won't have to make any code changes to ensure that a product is up to date with the latest PatternFly recommendations. Likewise, designers will see that their Figma designs automatically update to reflect any changes made to tokens.

## Token names

PatternFly token names are composed of a `--pf-t` prefix, a version number, and a series of token segments, separated by double hyphens.

<div class="ws-image" style="text-align: center;">
<img src="./img/token-name.png" alt="PatternFly token naming structure." width="600px"/>
</div>
<br />

Each token segment represents a different type of style information. If a segment isn't relevant for a particular token then it will be skipped in the token's name.

| **Segment** | **Description** |
| --- | --- |
| Scope | The token's range, such as *global* or *chart*.
| Component | The component that the token relates to, such as *icon*, *background*, or *text*.
| Property | The style property of a component, such as *color*, *size*, *width*, or *radius*.
| Concept | The token's higher level concepts, such as *status*, *primary*, or *action*, which have different variant options.
| Variant | The variant of a component or concept, such as *link*, *plain*, *warning*, or *success*.
| State | The state that the component is in, such as *default*, *hover*, or *active*.

## Token layers

The PatternFly token system has 3 layers: palette tokens, base tokens, and semantic tokens.

* **Palette tokens** use [PatternFly color palettes](/design-foundations/colors#patternfly-palettes) to create a color foundation for other token layers to reference.

* **Base tokens** expand on the palette layer to apply PatternFly colors to concepts. They also introduce additional concepts, like spacing and borders. Base tokens are grouped conceptually and named numerically, with no duplicate values in a concept group.

* **Semantic tokens** are the top-level tokens that are grouped conceptually and named semantically. These are built with base tokens and are the tokens that you will see and use the majority of the time. The naming is intentionally chosen to support the proper and relevant use of a token, which makes design consistency easier for everyone.

<div class="ws-image" style="text-align: center;">
<img src="./img/token-layers-example.png" alt="PatternFly token layer names for the same color value." width="600px"/>
</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
---
id: Design with tokens
section: tokens
---

## Penta design kit

PatternFly tokens are only available as part of the PatternFly 6 [Penta design kit.]() In order to make use of our token system, you will need to [upgrade to PatternFly 6](/get-started/upgrade).

## What is in the Penta design kit

### Tokens

Our tokens are set up at a high level as Figma [variables](https://help.figma.com/hc/en-us/articles/15339657135383-Guide-to-variables-in-Figma) and [styles](https://help.figma.com/hc/en-us/articles/360039238753-Styles-in-Figma).

In Figma, the variable names look similar to [token names](/tokens/all-patternfly-tokens), but will be separated by a forward slash (/) instead of a double hyphen (--).

<div style="text-align: center;">
<img src="./img/token-example-brand.png" alt="Table of brand color tokens." width="600px"/>
</div>
<br />

### Penta component library

You will have access to all PatternFly tokens when you install the component library. Penta components are built with tokens. From the colors used, to the spacing of elements, to the font size: tokens control it all!

<div style="text-align: center;">
<img src="./img/component-tokens.png" alt="PatternFly alert components built with Figma tokens." width="700px"/>
</div>

## Using the Penta design kit

To install the Penta design kit, [find instructions in our design onboarding guide.](/get-started/design#figma-library)

### Using Penta components

As you insert a component into a design workspace, you can adjust properties and variable modes to customize the appearance to your needs.

<div style="text-align: center;">
<img src="./img/component-instance.png" alt="PatternFly alert components built with Figma tokens." width="350px"/>
</div>
<br />

Once you've inserted a component into your workspace, you can continue to customize different parts of its appearance in [Figma's design sidebar](https://help.figma.com/hc/en-us/articles/360039832014-Design-prototype-and-explore-layer-properties-in-the-right-sidebar). Here, you will be able to see all tokens that can be used within a particular design property.

### Making customizations

Occasionally, you may find that you need to customize a design beyond what the PatternFly component natively supports. For example, adding text or adding custom spacing.

Our tokens are intentionally scoped so that they can only be used to modify relevant and related visual attributes. For example, a token may have its color scope limited so that it can only be used as a fill color or a stroke color. This means that, while you can use tokens to customize a design, you will only be able to use certain tokens in certain situations. This helps ensure that you're using tokens that are conceptually related to each design element that you're working on.

## Migrate to tokens

Our tokens are only available within Figma. If you've previously designed with PatternFly by using our Sketch design kits, you will need to begin to create all new product designs within Figma.

If you have any existing Sketch-based designs that you want to migrate into Figma, you will need to manually recreate each UI mockup using the Penta component library.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
id: Develop with tokens
section: tokens
---

## Using tokens in code

PatternFly tokens are exported from Figma and transformed into CSS variables for use in code. You can find token files in [PatternFly's core HTML repo](https://github.com/patternfly/patternfly/tree/v6/src/patternfly/base/tokens) and refer to [our list of all tokens](/tokens/all-patternfly-tokens).

When using tokens in code: if there's a semantic token that matches your needs then you should always use that. In the event that there isn't a semantic token, then you can use a base token. You should not use palette tokens, as they are the foundation of our token system and there should always be a better base or semantic token to use.

### Dark theme support

Our token system is available for both light and dark themes. We have [separate tokens for dark theme](https://github.com/patternfly/patternfly/blob/v6/src/patternfly/base/tokens/_tokens-dark.scss) to ensure proper contrast ratios. For guidance on enabling and supporting dark theme in your product, refer to our [dark theme handbook.](/developer-resources/dark-theme-handbook)

## Migrate to tokens

To support tokens, PatternFly's global CSS variable system has been updated and variable names have been updated across all PatternFly components and extensions. To migrate to our token system, all you need to do is [upgrade to PatternFly 6](/get-started/upgrade).

However, if you make customizations to PatternFly components in your product, or use CSS overrides, you will need to manually update your CSS variable names to match an appropriate [token variable](/tokens/all-patternfly-tokens). There is no one-to-one recommendation for any particular CSS variable, so you will need to choose the most appropriate token for your use case.

Once you've completed your migration, you're ready to continue developing with tokens!
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ if (process.env.EXTENSIONS_ONLY === 'true') {
sideNavItems: [
{ section: 'get-started' },
{ section: 'design-foundations' },
{ section: 'tokens' },
{ section: 'accessibility' },
{ section: 'UX writing' },
{ section: 'components' },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ module.exports = (sourceMD, sourceProps, sourceFunctionDocs) => {
sourceMD(path.join(contentBase, 'accessibility/**/*.md'), 'accessibility');
sourceMD(path.join(contentBase, 'design-guidelines/**/*.md'), 'design-guidelines');
sourceMD(path.join(contentBase, 'training/**/*.md'), 'training');
sourceMD(path.join(contentBase, 'tokens/**/*.md'), 'tokens');

// Gallery pages
const galleryBase = path.join(__dirname, '../patternfly-docs/pages');
Expand All @@ -27,6 +28,12 @@ module.exports = (sourceMD, sourceProps, sourceFunctionDocs) => {
.replace('package.json', 'pages');
sourceMD(path.join(themePagesPath, '*.md'), 'pages-overview');

// Design tokens
const designTokensPath = require
.resolve('@patternfly/design-tokens/package.json')
.replace('package.json', 'patternfly-docs/content');
sourceMD(path.join(designTokensPath, '/*.md'), 'tokens');

// Core MD
const coreDocsPath = require
.resolve('@patternfly/patternfly/package.json')
Expand Down
7 changes: 7 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2240,6 +2240,13 @@
node-addon-api "^3.2.1"
node-gyp-build "^4.3.0"

"@patternfly/[email protected]":
version "1.0.2"
resolved "https://registry.yarnpkg.com/@patternfly/design-tokens/-/design-tokens-1.0.2.tgz#7d4114774e4e232614ab786fc32f0a856a269588"
integrity sha512-IJCq2VgDkdQMPWF9h9SxtPk0qOEMWEB0etcQGQi5t+eAA0M/0Xf+4o+W5tQmhmTBWCZ8Hunzh6btubys64U71w==
dependencies:
"@patternfly/react-core" "^6.0.0-alpha.36"

"@patternfly/[email protected]":
version "4.3.1"
resolved "https://registry.yarnpkg.com/@patternfly/patternfly-a11y/-/patternfly-a11y-4.3.1.tgz#09f050d3a899a60471519f552d64ecaaeb5fec2f"
Expand Down

0 comments on commit a587f43

Please sign in to comment.