Skip to content

Commit 4ada5d3

Browse files
committed
work on announce
1 parent 643bc4b commit 4ada5d3

5 files changed

Lines changed: 33 additions & 17 deletions

File tree

ark/docs/components/AutoplayDemo.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@ export const AutoplayDemo = (props: AutoplayDemoProps) => {
6464
ref={videoRef}
6565
autoPlay
6666
loop
67-
controls={true}
67+
controls
6868
playsInline
6969
muted
70-
disablePictureInPicture={true}
70+
disablePictureInPicture
7171
style={{ width: "100%", display: "block", margin: "0 auto" }}
7272
{...props}
7373
/>

ark/docs/content/docs/blog/arkregex.mdx

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,16 @@ However, that concision comes at a cost. Complex expressions can be hard to unde
1111

1212
**Introducing `arkregex`, a type-safe wrapper of `new RegExp()`.**
1313

14+
<video
15+
autoPlay
16+
loop
17+
controls
18+
playsInline
19+
muted
20+
disablePictureInPicture
21+
src="https://private-user-images.githubusercontent.com/10645823/506446535-73cf79b1-ef0e-4870-86ce-c57af490c8aa.mp4?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NjE2NDE3NzksIm5iZiI6MTc2MTY0MTQ3OSwicGF0aCI6Ii8xMDY0NTgyMy81MDY0NDY1MzUtNzNjZjc5YjEtZWYwZS00ODcwLTg2Y2UtYzU3YWY0OTBjOGFhLm1wND9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTEwMjglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUxMDI4VDA4NTExOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTJmYTgyN2NhZGQ4NGU5NTA3MDg0NWU4NDU1NjhiMGNkNjJkNmIzM2ZhZmQ0NTRjZTVhY2Q5MjEzZGY2MDQ3MDQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.pkDrLsKvjvxuMBk55GUBHiYX-q-rVP9CIZW7_Hs-_lo"
22+
/>
23+
1424
The `regex` function creates a `Regex` instance with types for `.test()`, `.exec()` and more, statically parsed from native JS syntax:
1525

1626
```ts
@@ -59,13 +69,11 @@ const complexPattern = regex.cast<`pattern-${string}`, { captures: [string] }>(
5969

6070
If anything not covered by the other FAQs is not behaving how you'd expect, please don't hesitate to [create an issue](https://github.com/arktypeio/arktype/issues/new).
6171

62-
#### How can I get syntax highlighting for `regex`?
72+
#### How can I get syntax highlighting for my expressions?
6373

6474
The [ArkType extension](https://marketplace.visualstudio.com/items?itemName=arktypeio.arkdark) can be installed to add syntax highlighting to `regex` calls.
6575

66-
<MainAutoplayDemo />
67-
68-
[Starting coding](/docs/intro/setup)
76+
### Useful links
6977

7078
[Check out the project on GitHub](https://github.com/arktypeio/arktype)
7179

ark/docs/content/docs/blog/index.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ title: Posts
33
---
44

55
<LinkCard
6-
title="Announcing arkregex"
7-
description="Optimized pattern matching from type syntax"
6+
title="Introducing arkregex"
7+
description="A drop-in replacement for new RegExp() with types"
88
href="/docs/blog/arkregex"
9-
date="October 27, 2025"
9+
date="October 28, 2025"
1010
/>
1111

1212
<LinkCard

ark/docs/content/docs/blog/meta.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"title": "Blog",
33
"defaultOpen": true,
44
"pages": [
5-
"[Introducing arkregex](/docs/blog/arkregex)",
5+
"[arkregex Intro](/docs/blog/arkregex)",
66
"[2.1 Announcement](/docs/blog/2.1)",
77
"[2.0 Announcement](/docs/blog/2.0)"
88
]

ark/docs/public/llms.txt

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,16 @@ However, that concision comes at a cost. Complex expressions can be hard to unde
362362

363363
**Introducing `arkregex`, a type-safe wrapper of `new RegExp()`.**
364364

365+
<video
366+
autoPlay
367+
loop
368+
controls
369+
playsInline
370+
muted
371+
disablePictureInPicture
372+
src="https://private-user-images.githubusercontent.com/10645823/506446535-73cf79b1-ef0e-4870-86ce-c57af490c8aa.mp4?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NjE2NDE3NzksIm5iZiI6MTc2MTY0MTQ3OSwicGF0aCI6Ii8xMDY0NTgyMy81MDY0NDY1MzUtNzNjZjc5YjEtZWYwZS00ODcwLTg2Y2UtYzU3YWY0OTBjOGFhLm1wND9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTEwMjglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUxMDI4VDA4NTExOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTJmYTgyN2NhZGQ4NGU5NTA3MDg0NWU4NDU1NjhiMGNkNjJkNmIzM2ZhZmQ0NTRjZTVhY2Q5MjEzZGY2MDQ3MDQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.pkDrLsKvjvxuMBk55GUBHiYX-q-rVP9CIZW7_Hs-_lo"
373+
/>
374+
365375
The `regex` function creates a `Regex` instance with types for `.test()`, `.exec()` and more, statically parsed from native JS syntax:
366376

367377
```ts
@@ -410,13 +420,11 @@ const complexPattern = regex.cast<`pattern-${string}`, { captures: [string] }>(
410420

411421
If anything not covered by the other FAQs is not behaving how you'd expect, please don't hesitate to [create an issue](https://github.com/arktypeio/arktype/issues/new).
412422

413-
#### How can I get syntax highlighting for `regex`?
423+
#### How can I get syntax highlighting for my expressions?
414424

415425
The [ArkType extension](https://marketplace.visualstudio.com/items?itemName=arktypeio.arkdark) can be installed to add syntax highlighting to `regex` calls.
416426

417-
<MainAutoplayDemo />
418-
419-
⚡ [Starting coding](/docs/intro/setup)
427+
### Useful links
420428

421429
⭐ [Check out the project on GitHub](https://github.com/arktypeio/arktype)
422430

@@ -432,10 +440,10 @@ title: Posts
432440
---
433441

434442
<LinkCard
435-
title="Announcing arkregex"
436-
description="Optimized pattern matching from type syntax"
443+
title="Introducing arkregex"
444+
description="A drop-in replacement for new RegExp() with types"
437445
href="/docs/blog/arkregex"
438-
date="October 27, 2025"
446+
date="October 28, 2025"
439447
/>
440448

441449
<LinkCard

0 commit comments

Comments
 (0)