diff --git a/.github/workflows/add-to-project.yml b/.github/workflows/add-to-project.yml
new file mode 100644
index 00000000000..98c40c9dc97
--- /dev/null
+++ b/.github/workflows/add-to-project.yml
@@ -0,0 +1,11 @@
+name: Add To Project
+
+on:
+ issues:
+ types: [opened, labeled]
+
+jobs:
+ issue-triage:
+ uses: carbon-design-system/carbon/.github/workflows/add-to-project.yml@main
+ secrets:
+ ADD_TO_PROJECT_PAT: ${{ secrets.ADD_TO_PROJECT_PAT }}
diff --git a/.github/workflows/issue-triage.yml b/.github/workflows/issue-triage.yml
index 29f223e5834..7bff43ed743 100644
--- a/.github/workflows/issue-triage.yml
+++ b/.github/workflows/issue-triage.yml
@@ -10,4 +10,3 @@ jobs:
secrets:
APP_ID: ${{ secrets.APP_ID }}
APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }}
- ADD_TO_PROJECT_PAT: ${{ secrets.ADD_TO_PROJECT_PAT }}
diff --git a/.github/workflows/platform-content-sync.yml b/.github/workflows/platform-content-sync.yml
new file mode 100644
index 00000000000..efce1cdb40d
--- /dev/null
+++ b/.github/workflows/platform-content-sync.yml
@@ -0,0 +1,29 @@
+name: Sync content with platform
+
+on:
+ push:
+ branches:
+ - 'main'
+ paths:
+ - '**.mdx'
+
+jobs:
+ create_issue:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v3
+ with:
+ repository: carbon-design-system/carbon-platform
+ ref: main
+ - name: Generate token
+ uses: tibdex/github-app-token@v1
+ id: generate_token
+ with:
+ app_id: ${{ secrets.APP_ID }}
+ private_key: ${{ secrets.APP_PRIVATE_KEY }}
+ - name: Create issue on platform repo
+ run: |
+ gh issue create --title "[Content sync]: carbon-website" --label "role: dev 🤖" --label "service: web-app 🌎" --body 'A pull request on carbon-website was just merged. It contains .mdx content changes that may need to be synced to platform:
+ - ${{ github.event.compare }}'
+ env:
+ GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
diff --git a/.vscode/settings.json b/.vscode/settings.json
deleted file mode 100644
index 27fcc0b16f9..00000000000
--- a/.vscode/settings.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "editor.formatOnSave": true,
- "eslint.lintTask.enable": true,
- "editor.codeActionsOnSave": {
- "source.fixAll.eslint": true
- }
-}
diff --git a/gatsby-node.js b/gatsby-node.js
index a944273c66e..d4834afc2c2 100644
--- a/gatsby-node.js
+++ b/gatsby-node.js
@@ -44,6 +44,11 @@ exports.createPages = ({ actions }) => {
toPath: '/community/component-index',
isPermanent: true,
});
+ createRedirect({
+ fromPath: '/community/contribute-a-component',
+ toPath: '/community/component-index',
+ isPermanent: true,
+ });
// Developing
createRedirect({
@@ -66,4 +71,9 @@ exports.createPages = ({ actions }) => {
toPath: '/developing/vue-tutorial/overview',
isPermanent: true,
});
+ createRedirect({
+ fromPath: '/guidelines/typography/styling-strategies',
+ toPath: '/guidelines/typography/style-strategies',
+ isPermanent: true,
+ });
};
diff --git a/gatsby-ssr.js b/gatsby-ssr.js
index b1cd5b7a52d..2c8cebab045 100644
--- a/gatsby-ssr.js
+++ b/gatsby-ssr.js
@@ -1,9 +1,9 @@
import React from 'react';
-export const onRenderBody = ({ setHeadComponents }) => {
+export const onRenderBody = ({ setHeadComponents, setPostBodyComponents }) => {
const script = `
if(!window) window = {};
- window.idaPageIsSPA = true;
+ window.idaPageIsSPA = false;
window.digitalData = {
page: {
category: {
@@ -11,7 +11,7 @@ export const onRenderBody = ({ setHeadComponents }) => {
},
pageInfo: {
ibm: {
- siteID: 'CARBON_DESIGN_SYSTEM',
+ siteID: 'CARBON_DESIGN_SYSTEM_WWW',
country: 'US',
industry: 'Design',
owner: 'carbon@us.ibm.com',
@@ -20,12 +20,7 @@ export const onRenderBody = ({ setHeadComponents }) => {
},
}`;
- return setHeadComponents([
- ,
+ setHeadComponents([
,
{
key="fathom"
defer
/>,
+ ]);
+
+ setPostBodyComponents([
,