Skip to content

Commit 4605fbd

Browse files
authored
Merge pull request #492 from code-hike/next
✨ Update website ✨
2 parents e0c0dea + f9781e0 commit 4605fbd

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

.github/workflows/pr-merged.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: PR Merged
22

33
on:
4-
pull_request:
4+
pull_request_target:
55
types: [closed]
66
branches:
77
- next
@@ -21,6 +21,8 @@ jobs:
2121
steps:
2222
- name: Checkout code
2323
uses: actions/checkout@v4
24+
with:
25+
ref: "${{ github.event.pull_request.merge_commit_sha }}"
2426

2527
- name: Install pnpm
2628
uses: pnpm/action-setup@v4

.github/workflows/pr-updated.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: PR Updated
22

33
on:
4-
pull_request:
4+
pull_request_target:
55
branches:
66
- next
77

@@ -21,6 +21,8 @@ jobs:
2121
steps:
2222
- name: Checkout code
2323
uses: actions/checkout@v4
24+
with:
25+
ref: "${{ github.event.pull_request.head.sha }}"
2426

2527
- name: Install pnpm
2628
uses: pnpm/action-setup@v4

apps/web/demos/focus/code.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ export function CodeContainer({ code }: { code: HighlightedCode }) {
3535
}}
3636
handlers={[focus]}
3737
/>
38-
<div className="p-2 mt-auto font-light text-center">
38+
<div className="p-2 mt-auto font-light text-center text-white">
3939
You can also change the focus annotations on a rendered codeblock:
4040
</div>
41-
<div className="flex justify-center gap-2 pb-4">
41+
<div className="flex justify-center gap-2 pb-4 text-white">
4242
<button
4343
onClick={() => setFocused("lorem")}
4444
disabled={focused === "lorem"}

apps/web/demos/hover/page.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export default function Page() {
1616

1717
function HoverContainer(props: { children: React.ReactNode }) {
1818
return (
19-
<div className="bg-zinc-900/80 px-2 rounded hover-container">
19+
<div className="bg-zinc-900/80 px-2 rounded hover-container text-white">
2020
{props.children}
2121
</div>
2222
)

0 commit comments

Comments
 (0)