Skip to content

Commit adfb118

Browse files
Merge branch 'main' of github.com:GitbookIO/gitbook
2 parents b9ad997 + a7f58ab commit adfb118

397 files changed

Lines changed: 15835 additions & 6070 deletions

File tree

Some content is hidden

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

.changeset/gold-geese-camp.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"gitbook": patch
3+
---
4+
5+
Update button sizing

.changeset/spotty-monkeys-nail.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"gitbook": patch
3+
---
4+
5+
Fix embed tab button size regression

.changeset/tidy-flies-burn.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"gitbook": patch
3+
"@gitbook/icons": patch
4+
---
5+
6+
Switch icon masking method to fix visual cutoffs in FA7

.github/CONTRIBUTING.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,9 @@ After forking this repository, you'll want to [create a branch](https://docs.git
5454
#### 3. Install dependencies and run the project locally
5555

5656
##### Prerequisites:
57-
- Node.js (Version: >=20.6)
58-
- Use `nvm` for easy Node management
59-
- [Bun](https://bun.sh/) (Version: >=1.2.15)
60-
- We use a text-based lockfile which isn't supported below 1.2.15
57+
58+
- [Node.js](https://nodejs.org/en) (see "engines" in `package.json`)
59+
- [Bun](https://bun.sh/) (see "packageManager" in `package.json`)
6160

6261
##### Setup steps:
6362

.github/actions/gradual-deploy-cloudflare/action.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ runs:
3030
apiToken: ${{ inputs.apiToken }}
3131
accountId: ${{ inputs.accountId }}
3232
workingDirectory: ./
33-
wranglerVersion: '4.10.0'
33+
wranglerVersion: '4.43.0'
3434
environment: ${{ inputs.environment }}
3535
command: deployments status --config ./packages/gitbook/openNext/customWorkers/defaultWrangler.jsonc
3636

@@ -49,7 +49,7 @@ runs:
4949
apiToken: ${{ inputs.apiToken }}
5050
accountId: ${{ inputs.accountId }}
5151
workingDirectory: ./
52-
wranglerVersion: '4.10.0'
52+
wranglerVersion: '4.43.0'
5353
environment: ${{ inputs.environment }}
5454
command: versions deploy ${{ steps.extract_current_version.outputs.version_id }}@100% ${{ inputs.serverVersionId }}@0% -y --config ./packages/gitbook/openNext/customWorkers/defaultWrangler.jsonc
5555

@@ -61,7 +61,7 @@ runs:
6161
apiToken: ${{ inputs.apiToken }}
6262
accountId: ${{ inputs.accountId }}
6363
workingDirectory: ./
64-
wranglerVersion: '4.10.0'
64+
wranglerVersion: '4.43.0'
6565
environment: ${{ inputs.environment }}
6666
command: versions deploy ${{ inputs.middlewareVersionId }}@100% -y --config ./packages/gitbook/openNext/customWorkers/middlewareWrangler.jsonc
6767

@@ -71,7 +71,7 @@ runs:
7171
apiToken: ${{ inputs.apiToken }}
7272
accountId: ${{ inputs.accountId }}
7373
workingDirectory: ./
74-
wranglerVersion: '4.10.0'
74+
wranglerVersion: '4.43.0'
7575
environment: ${{ inputs.environment }}
7676
command: versions deploy ${{ inputs.serverVersionId }}@100% -y --config ./packages/gitbook/openNext/customWorkers/defaultWrangler.jsonc
7777

.github/composite/deploy-cloudflare/action.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ runs:
7070
apiToken: ${{ inputs.apiToken }}
7171
accountId: ${{ inputs.accountId }}
7272
workingDirectory: ./
73-
wranglerVersion: '4.10.0'
73+
wranglerVersion: '4.43.0'
7474
environment: ${{ inputs.environment }}
7575
command: deploy --config ./packages/gitbook/openNext/customWorkers/doWrangler.jsonc
7676

@@ -81,7 +81,7 @@ runs:
8181
apiToken: ${{ inputs.apiToken }}
8282
accountId: ${{ inputs.accountId }}
8383
workingDirectory: ./
84-
wranglerVersion: '4.10.0'
84+
wranglerVersion: '4.43.0'
8585
environment: ${{ inputs.environment }}
8686
command: ${{ format('versions upload --tag {0} --message "{1}"', inputs.commitTag, inputs.commitMessage) }} --config ./packages/gitbook/openNext/customWorkers/defaultWrangler.jsonc
8787

@@ -104,7 +104,7 @@ runs:
104104
apiToken: ${{ inputs.apiToken }}
105105
accountId: ${{ inputs.accountId }}
106106
workingDirectory: ./
107-
wranglerVersion: '4.10.0'
107+
wranglerVersion: '4.43.0'
108108
environment: ${{ inputs.environment }}
109109
command: ${{ format('versions upload --tag {0} --message "{1}"', inputs.commitTag, inputs.commitMessage) }} --config ./packages/gitbook/openNext/customWorkers/middlewareWrangler.jsonc
110110

.github/workflows/ci.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ on:
44
push:
55
branches:
66
- main
7+
- changeset-release/main
78
env:
8-
NPM_TOKEN_READONLY: ${{ secrets.NPM_TOKEN_READONLY }}
9+
BUN_NPM_TOKEN: ${{ secrets.NPM_TOKEN_READONLY }}
910
jobs:
1011
format:
1112
runs-on: ubuntu-latest
@@ -41,7 +42,7 @@ jobs:
4142
name: Build (Open Source)
4243
timeout-minutes: 6
4344
env:
44-
NPM_TOKEN_READONLY: ''
45+
BUN_NPM_TOKEN: ''
4546
steps:
4647
- name: Checkout
4748
uses: actions/checkout@v4

.github/workflows/deploy-preview.yaml

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
branches:
66
- main
77
env:
8-
NPM_TOKEN_READONLY: ${{ secrets.NPM_TOKEN_READONLY }}
8+
BUN_NPM_TOKEN: ${{ secrets.NPM_TOKEN_READONLY }}
99
jobs:
1010
deploy-v2-vercel:
1111
name: Deploy v2 to Vercel (preview)
@@ -182,9 +182,9 @@ jobs:
182182
SITE_BASE_URL: ${{ needs.deploy-v2-cloudflare.outputs.deployment-url }}/url/
183183
ARGOS_TOKEN: ${{ secrets.ARGOS_TOKEN }}
184184
ARGOS_BUILD_NAME: 'customers-v2'
185-
pagespeed-testing-v2:
185+
browserless-testing-v2-vercel:
186186
runs-on: ubuntu-latest
187-
name: PageSpeed Testing v1
187+
name: Browserless Testing v2 (Vercel)
188188
needs: deploy-v2-vercel
189189
steps:
190190
- name: Checkout
@@ -195,8 +195,26 @@ jobs:
195195
run: bun install --frozen-lockfile
196196
env:
197197
PUPPETEER_SKIP_DOWNLOAD: 1
198-
- name: Run pagespeed tests
199-
run: bun ./packages/gitbook/tests/pagespeed-testing.ts
198+
- name: Run tests
199+
run: cd ./packages/gitbook && bun e2e-browserless
200200
env:
201201
BASE_URL: ${{needs.deploy-v2-vercel.outputs.deployment-url}}
202-
PAGESPEED_API_KEY: ${{ secrets.PAGESPEED_API_KEY }}
202+
SITE_BASE_URL: ${{ needs.deploy-v2-vercel.outputs.deployment-url }}/url/
203+
# browserless-testing-v2-cloudflare:
204+
# runs-on: ubuntu-latest
205+
# name: Browserless Testing v2 (Cloudflare)
206+
# needs: deploy-v2-cloudflare
207+
# steps:
208+
# - name: Checkout
209+
# uses: actions/checkout@v4
210+
# - name: Setup Bun
211+
# uses: ./.github/composite/setup-bun
212+
# - name: Install dependencies
213+
# run: bun install --frozen-lockfile
214+
# env:
215+
# PUPPETEER_SKIP_DOWNLOAD: 1
216+
# - name: Run tests
217+
# run: cd ./packages/gitbook && bun e2e-browserless
218+
# env:
219+
# BASE_URL: ${{needs.deploy-v2-cloudflare.outputs.deployment-url}}
220+
# SITE_BASE_URL: ${{ needs.deploy-v2-cloudflare.outputs.deployment-url }}/url/

.github/workflows/deploy-production.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
branches:
55
- main
66
env:
7-
NPM_TOKEN_READONLY: ${{ secrets.NPM_TOKEN_READONLY }}
7+
BUN_NPM_TOKEN: ${{ secrets.NPM_TOKEN_READONLY }}
88
jobs:
99
deploy-v2-vercel:
1010
name: Deploy v2 to Vercel (production)

.github/workflows/deploy-staging.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
branches:
55
- main
66
env:
7-
NPM_TOKEN_READONLY: ${{ secrets.NPM_TOKEN_READONLY }}
7+
BUN_NPM_TOKEN: ${{ secrets.NPM_TOKEN_READONLY }}
88
jobs:
99
deploy-v2-vercel:
1010
name: Deploy v2 to Vercel (staging)

0 commit comments

Comments
 (0)