-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into 2872-prevent-post-tabs-from-firing-a-change-…
…event-on-init
- Loading branch information
Showing
12 changed files
with
155 additions
and
22 deletions.
There are no files selected for viewing
This file contains 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,5 @@ | ||
--- | ||
'@swisspost/design-system-documentation': patch | ||
--- | ||
|
||
Deprecated accent colors. |
This file contains 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,5 @@ | ||
--- | ||
'@swisspost/design-system-documentation': patch | ||
--- | ||
|
||
Updated tabs to improve visual continuity and readability. |
This file contains 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,5 @@ | ||
--- | ||
'@swisspost/design-system-documentation': patch | ||
--- | ||
|
||
Fix headers for the `versions.json` file. So it can be loaded and used from the version-switcher of older documentation pages. |
This file contains 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,71 @@ | ||
name: Build Tokens | ||
on: | ||
pull_request: | ||
types: [opened, synchronize, edited, reopened] | ||
paths: | ||
- 'packages/tokens/**' | ||
|
||
jobs: | ||
build: | ||
name: Build Tokens | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup | ||
uses: ./.github/actions/setup-pnpm | ||
|
||
- name: Install dependencies | ||
run: pnpm --filter design-system-tokens... install | ||
|
||
- name: Build tokens & dependencies | ||
run: pnpm --filter design-system-tokens... build | ||
|
||
- name: Create Summary | ||
id: summary | ||
uses: actions/github-script@v7 | ||
with: | ||
script: | | ||
const fs = require('fs') | ||
const path = require('path') | ||
const inputFileNames = fs.readdirSync('packages/tokens/tokensstudio-generated') | ||
const inputFiles = inputFileNames.map(fileName => ({ | ||
type: path.extname(fileName), | ||
name: fileName, | ||
content: fs.readFileSync(`packages/tokens/tokensstudio-generated/${fileName}`, 'utf8') | ||
})) | ||
const outputOrder = [ | ||
'index.scss', | ||
'core.scss', | ||
'mode.scss', | ||
'device.scss', | ||
'channel.scss', | ||
'theme.scss', | ||
'components.scss', | ||
] | ||
const outputFileNames = fs.readdirSync('packages/tokens/dist') | ||
const outputFiles = outputFileNames.map(fileName => ({ | ||
type: path.extname(fileName), | ||
name: fileName, | ||
content: fs.readFileSync(`packages/tokens/dist/${fileName}`, 'utf8') | ||
})).sort((a, b) => (outputOrder.includes(a.name) ? outputOrder.indexOf(a.name) : 1000) - (outputOrder.includes(b.name) ? outputOrder.indexOf(b.name) : 1000)) | ||
return `# Token Build | ||
## Input | ||
${inputFiles.map(({ type, name, content }) => `<details> | ||
<summary><code>${name}</code></summary> | ||
<pre lang="${type}">${content}</pre> | ||
</details>`).join('\n')} | ||
## Output | ||
${outputFiles.map(({ type, name, content }) => `<details> | ||
<summary><code>${name}</code></summary> | ||
<pre lang="${type}">${content}</pre> | ||
</details>`).join('\n')} | ||
` | ||
- name: Output Summary | ||
run: echo -e ${{ steps.summary.outputs.result }} >> $GITHUB_STEP_SUMMARY |
This file contains 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
This file contains 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 |
---|---|---|
|
@@ -60,5 +60,6 @@ | |
} | ||
|
||
.dep__version { | ||
white-space: nowrap; | ||
} | ||
} |
This file contains 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
This file contains 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
This file contains 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,5 @@ | ||
# Adds custom headers for specific resources | ||
# This file is used by Netlify to handle headers | ||
|
||
/assets/versions.json | ||
Access-Control-Allow-Origin: * |
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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