Skip to content

Commit 5c35f36

Browse files
authored
Prepare @gitbook/icons package and use it as a replacement of geist/icons (#2404)
1 parent d7ec2b5 commit 5c35f36

File tree

85 files changed

+865
-548
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+865
-548
lines changed

.changeset/healthy-spoons-itch.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'gitbook': minor
3+
---
4+
5+
Replace all icons, previously imported from Geist, by new package `@gitbook/icons`

.changeset/lovely-donkeys-deny.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@gitbook/icons': minor
3+
---
4+
5+
Initial release for `@gitbook/icons`, a package of content icons to be used for pages, documents, etc.

.changeset/violet-beers-matter.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@gitbook/react-math': minor
3+
---
4+
5+
Export binary `gitbook-math` to copy assets to a directory

.github/actions/setup-playwright/action.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ runs:
77
- name: 🏗 Prepare Playwright env
88
shell: bash
99
run: |
10-
PLAYWRIGHT_VERSION=$(npm ls --json @playwright/test | jq --raw-output '.dependencies["@playwright/test"].version')
10+
PLAYWRIGHT_VERSION=$(npm ls --json @playwright/test | jq --raw-output '.dependencies["gitbook"].dependencies["@playwright/test"].version')
1111
echo "PLAYWRIGHT_VERSION=$PLAYWRIGHT_VERSION" >> $GITHUB_ENV
1212
1313
# Cache browser binaries, cache key is based on Playwright version and OS
@@ -24,12 +24,14 @@ runs:
2424
- name: 🏗 Install Playwright browser binaries & OS dependencies
2525
if: steps.playwright-cache.outputs.cache-hit != 'true'
2626
shell: bash
27+
working-directory: packages/gitbook
2728
run: |
2829
bun x playwright install --with-deps chromium
2930
3031
# Install only the OS dependencies if cache hit
3132
- name: 🏗 Install Playwright OS dependencies
3233
if: steps.playwright-cache.outputs.cache-hit == 'true'
3334
shell: bash
35+
working-directory: packages/gitbook
3436
run: |
3537
bun x playwright install-deps

.github/workflows/ci.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ on:
44
push:
55
branches:
66
- main
7-
7+
env:
8+
NPMRC_FONT_AWESOME_TOKEN: ${{ secrets.NPMRC_FONT_AWESOME_TOKEN }}
89
jobs:
910
deploy:
1011
name: Deploy to Cloudflare Pages

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,5 @@ yarn-error.log*
2020
# Vercel
2121
.vercel
2222

23+
# Env files
24+
.env.local

.prettierignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,7 @@
44
# Generated
55
packages/emoji-codepoints/index.ts
66
packages/gitbook/public/~gitbook/static/
7+
packages/icons/src/data/*.json
8+
9+
# Build files
10+
dist/

bun.lockb

89.8 KB
Binary file not shown.

bunfig.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[install.scopes]
2+
"awesome.me" = { token = "$NPMRC_FONT_AWESOME_TOKEN", url = "https://npm.fontawesome.com/" }

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,14 @@
88
"build": "turbo run build",
99
"build:cloudflare": "turbo run build:cloudflare",
1010
"lint": "turbo run lint",
11+
"lint:fix": "turbo run lint -- --fix",
1112
"typecheck": "turbo run typecheck",
1213
"format": "prettier ./ --ignore-unknown --write",
1314
"format:check": "prettier ./ --ignore-unknown --list-different",
1415
"unit": "turbo run unit",
1516
"e2e": "turbo run e2e",
1617
"changeset": "changeset",
17-
"release": "turbo run build && changeset publish"
18+
"release": "turbo run release && changeset publish"
1819
},
1920
"workspaces": [
2021
"packages/*"
@@ -25,6 +26,6 @@
2526
"turbo": "^2.0.9"
2627
},
2728
"patchedDependencies": {
28-
"@vercel/next@4.0.15": "patches/@vercel%2Fnext@4.0.15.patch"
29+
"@vercel/next@4.3.6": "patches/@vercel%2Fnext@4.3.6.patch"
2930
}
3031
}

0 commit comments

Comments
 (0)