Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
82d2526
Render MiniGraphiQL with `graphiql` string in node.meta
hasparus Aug 21, 2025
9adbb19
Don't validate in Marked: not its responsibility
hasparus Aug 21, 2025
68ec657
Change interactive code snippet colors
hasparus Aug 21, 2025
994750c
Remove global .miniGraphiQL class
hasparus Aug 21, 2025
66d6d3d
Refactor MiniGraphiQL to separate files
hasparus Aug 21, 2025
c766116
Add a TODO comment
hasparus Aug 21, 2025
4c68241
Run Playwright on CI
hasparus Aug 21, 2025
744a6b1
wip
hasparus Aug 22, 2025
c6568d8
color codemirrors properly
hasparus Aug 22, 2025
4e6d147
Style codemirrors properly
hasparus Aug 22, 2025
6831f65
Upgrade pnpm from 9.15.9 to 10.15.0
hasparus Aug 29, 2025
f155b2f
Update 2025 conference schedule and speaker details
hasparus Aug 29, 2025
584cdc4
Improve syntax highlighting for comments and diffs
hasparus Aug 29, 2025
40d8c12
Remove focus outline
hasparus Aug 29, 2025
f94ddd3
Extract CodeBlockLabel
hasparus Aug 29, 2025
6b1b3fa
Remove unused marked dependency
hasparus Aug 29, 2025
5e3a31e
Rename `marked` to `interactive-code-block`
hasparus Aug 29, 2025
fe79931
Update codemirror styles
hasparus Aug 29, 2025
e2c1fa0
Merge remote-tracking branch 'origin/source' into landing--try-it-now
hasparus Aug 29, 2025
f69ad01
Allow running esbuild builds
hasparus Aug 29, 2025
bc98a9e
Remove duplicate image
hasparus Aug 29, 2025
122e5c5
Format
hasparus Aug 29, 2025
b10178a
Change syntax theme names to avoid a bug
hasparus Aug 30, 2025
55b3e0c
Fix heights and properly chain handlers
hasparus Aug 30, 2025
4ddcc26
Fix tests for new editor
hasparus Aug 30, 2025
2c6d0d7
Merge branch 'source' into learn--interactive-code-blocks
hasparus Aug 30, 2025
812b8b4
Run Playwright on CI
hasparus Aug 30, 2025
a843f6b
Use the same colors for VariableEditor
hasparus Sep 1, 2025
ebd8a4d
Use the same font for interactive code blocks
hasparus Sep 1, 2025
0dfd34d
Match the coloring on t.separator [,:] between Lezer and Shiki
hasparus Sep 1, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,19 @@ jobs:

- name: Run Prettier Check
run: pnpm format:check

# per the docs: "caching browser binaries is not recommended,
# since the amount of time it takes to restore the cache is
# comparable to the time it takes to download the binaries"
- name: Install Playwright Browsers
run: npx playwright install --with-deps

- name: Run Playwright tests
run: npx playwright test

- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report
path: playwright-report/
retention-days: 30
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,5 @@ public/sitemap.xml
out/

tsconfig.tsbuildinfo

playwright-report/
25 changes: 17 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"type": "module",
"repository": "graphql/graphql.github.io website",
"private": true,
"packageManager": "pnpm@9.15.9",
"packageManager": "pnpm@10.15.0",
"scripts": {
"analyze": "ANALYZE=true next build",
"build": "next build && next-image-export-optimizer",
Expand All @@ -22,9 +22,17 @@
"validate:snippets": "node scripts/validate-snippets.js"
},
"dependencies": {
"@codemirror/autocomplete": "^6.18.6",
"@codemirror/commands": "^6.3.3",
"@codemirror/lang-json": "^6.0.1",
"@codemirror/language": "^6.10.0",
"@codemirror/lint": "^6.8.5",
"@codemirror/state": "^6.4.0",
"@codemirror/view": "^6.24.0",
"@graphql-tools/schema": "10.0.25",
"@headlessui/react": "^2.2.4",
"@igorkowalczyk/is-browser": "^5.1.0",
"@lezer/highlight": "^1.2.1",
"@next/bundle-analyzer": "^15.4.5",
"@radix-ui/react-radio-group": "^1.2.2",
"@sparticuz/chromium": "^138.0.2",
Expand All @@ -34,8 +42,7 @@
"autoprefixer": "^10.4.20",
"calendar-link": "^2.10.0",
"clsx": "^2.1.1",
"codemirror": "^5.65.19",
"codemirror-graphql": "1.3.2",
"cm6-graphql": "^0.2.1",
"date-fns": "^2.30.0",
"fast-glob": "^3.3.3",
"github-slugger": "2.0.0",
Expand All @@ -46,9 +53,8 @@
"leaflet": "^1.9.4",
"lucide-react": "^0.469.0",
"markdown-to-jsx": "^7.7.2",
"marked": "5.1.2",
"motion": "^12.11.0",
"next": "^14.2.22",
"next": "^14.2.32",
"next-image-export-optimizer": "^1.18.0",
"next-query-params": "^5.0.1",
"next-sitemap": "^4.2.3",
Expand Down Expand Up @@ -88,7 +94,7 @@
"@types/codemirror": "5.60.16",
"@types/hast": "3.0.4",
"@types/node": "^22.10.5",
"@types/react": "^18.3.18",
"@types/react": "^18.3.23",
"@types/rss": "0.0.32",
"@types/string-similarity": "^4.0.2",
"@typescript-eslint/eslint-plugin": "7.18.0",
Expand All @@ -106,7 +112,7 @@
"remark-lint-first-heading-level": "3.1.2",
"remark-lint-heading-increment": "3.1.2",
"tsx": "^4.19.4",
"typescript": "^5.8.3"
"typescript": "^5.9.2"
},
"browserslist": [
"chrome >0 and last 2.5 years",
Expand All @@ -122,6 +128,9 @@
"nextra": "patches/nextra.patch",
"nextra-theme-docs": "patches/nextra-theme-docs.patch",
"mermaid-isomorphic": "patches/mermaid-isomorphic.patch"
}
},
"onlyBuiltDependencies": [
"esbuild"
]
}
}
Loading