Skip to content

Commit

Permalink
chore(elements): updated the IA to reflect the elements section (carb…
Browse files Browse the repository at this point in the history
…on-design-system#3939)

* chore(elements): updated the IA to reflect the elements section

* fix(elements): one too many rewrites
  • Loading branch information
sstrubberg authored Feb 22, 2024
1 parent 03d8218 commit 61ab595
Show file tree
Hide file tree
Showing 287 changed files with 29 additions and 17 deletions.
12 changes: 11 additions & 1 deletion conf.d/rewrite.conf
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,14 @@ rewrite /components/overview/ /components/overview/components/ permanent;
#Case studies
rewrite /case-studies/overview/ /all-about-carbon/who-uses-carbon/ permanent;
rewrite /case-studies/consistency-in-the-cloud /all-about-carbon/who-uses-carbon/ permanent;
rewrite /case-studies/ibm-commerce-platform /all-about-carbon/who-uses-carbon/ permanent;
rewrite /case-studies/ibm-commerce-platform /all-about-carbon/who-uses-carbon/ permanent;

#Elements L0 - 2022/02
rewrite /guidelines/2x-grid/overview/ /elements/2x-grid/overview/ permanent;
rewrite /guidelines/color/overview/ /elements/color/overview/ permanent;
rewrite /guidelines/icons/library/ /elements/icons/library/ permanent;
rewrite /guidelines/pictograms/library/ /elements/pictograms/library/ permanent;
rewrite /guidelines/motion/overview/ /elements/motion/overview/ permanent;
rewrite /guidelines/spacing/overview/ /elements/spacing/overview/ permanent;
rewrite /guidelines/themes/overview/ /elements/themes/overview/ permanent;
rewrite /guidelines/typography/overview/ /elements/typography/overview/ permanent;
6 changes: 3 additions & 3 deletions src/components/TypeWeight/TypeWeight.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import PropTypes from 'prop-types';
export default class TypeWeight extends React.Component {
render() {
const { type } = this.props;
const typeWeight = require('../../pages/guidelines/typography/_type-weight.md');
const typeWeightItalic = require('../../pages/guidelines/typography/_type-weight-italic.md');
const typeTypes = require('../../pages/guidelines/typography/_type-types.md');
const typeWeight = require('../../pages/elements/typography/_type-weight.md');
const typeWeightItalic = require('../../pages/elements/typography/_type-weight-italic.md');
const typeTypes = require('../../pages/elements/typography/_type-types.md');

if (type === 'types') {
return (
Expand Down
28 changes: 15 additions & 13 deletions src/data/nav-items.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,28 +56,30 @@
- title: FAQs
path: /migrating/faq/
hasDivider: true
- title: Guidelines
- title: Elements
pages:
- title: 2x Grid
path: /guidelines/2x-grid/overview/
- title: Accessibility
path: /guidelines/accessibility/overview/
- title: Content
path: /guidelines/content/overview/
path: /elements/2x-grid/overview/
- title: Color
path: /guidelines/color/overview/
path: /elements/color/overview/
- title: Icons
path: /guidelines/icons/library/
path: /elements/icons/library/
- title: Pictograms
path: /guidelines/pictograms/library/
path: /elements/pictograms/library/
- title: Motion
path: /guidelines/motion/overview/
path: /elements/motion/overview/
- title: Spacing
path: /guidelines/spacing/overview/
path: /elements/spacing/overview/
- title: Themes
path: /guidelines/themes/overview/
path: /elements/themes/overview/
- title: Typography
path: /guidelines/typography/overview/
path: /elements/typography/overview/
- title: Guidelines
pages:
- title: Accessibility
path: /guidelines/accessibility/overview/
- title: Content
path: /guidelines/content/overview/
- title: Components
pages:
- title: Overview
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 61ab595

Please sign in to comment.