Skip to content

Commit 0cbb64d

Browse files
committed
Changepacks publish
1 parent eee5ba7 commit 0cbb64d

5 files changed

Lines changed: 44 additions & 23 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"changes":{"packages/python/pyproject.toml":"Patch","libs/braillify/Cargo.toml":"Patch","packages/node/package.json":"Patch"},"note":"Changepacks","date":"2025-11-21T16:21:24.635216100Z"}

.github/workflows/publish.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ jobs:
145145
- host: macos-latest
146146
target: aarch64-apple-darwin
147147
build: bun run build --target aarch64-apple-darwin
148-
name: stable - ${{ matrix.settings.target }} - node@22
148+
name: Node Build - ${{ matrix.settings.target }}
149149
runs-on: ${{ matrix.settings.host }}
150150
env:
151151
DEBUG: napi:*
@@ -160,6 +160,14 @@ jobs:
160160
- uses: oven-sh/setup-bun@v2
161161
with:
162162
bun-version: latest
163+
- name: Set up Python
164+
uses: actions/setup-python@v6
165+
with:
166+
python-version: '3.14'
167+
- name: Install uv
168+
uses: astral-sh/setup-uv@v5
169+
- name: Install maturin
170+
run: uv pip install maturin --system
163171
- name: Install
164172
uses: dtolnay/rust-toolchain@stable
165173
with:
@@ -261,7 +269,7 @@ jobs:
261269
target: aarch64
262270
os: macos
263271
steps:
264-
- uses: actions/checkout@v4
272+
- uses: actions/checkout@v5
265273
- name: Build wheels
266274
uses: PyO3/maturin-action@main
267275
with:
@@ -402,7 +410,7 @@ jobs:
402410
- name: Build Rust binary
403411
run: cargo build --release --target ${{ matrix.target }} -p braillify
404412
- name: Rename binary
405-
run: mv target/${{ matrix.target }}/release/changepacks${{ matrix.os == 'windows' && '.exe' || '' }} ${{ matrix.binary_name }}
413+
run: mv target/${{ matrix.target }}/release/braillify${{ matrix.os == 'windows' && '.exe' || '' }} ${{ matrix.binary_name }}
406414

407415
- name: Upload Asset
408416
uses: owjs3901/upload-github-release-asset@main
@@ -419,7 +427,7 @@ jobs:
419427
steps:
420428
- uses: actions/checkout@v5
421429
- name: Publish to Cargo
422-
run: cargo publish --workspace
430+
run: cargo publish -p braillify
423431
env:
424432
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
425433

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/landing/src/app/docs/RightIndex.tsx

Lines changed: 29 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import { Box, css, Flex, Text, VStack } from '@devup-ui/react'
33
import Link from 'next/link'
44
import { usePathname } from 'next/navigation'
5-
import { useMemo } from 'react'
5+
import { useEffect, useState } from 'react'
66

77
function IndexMenu({
88
children,
@@ -44,25 +44,36 @@ export function RightIndex() {
4444
return <RightIndexInner key={pathname} editUrl={editUrl} />
4545
}
4646

47+
type MenuItem = {
48+
text: string
49+
sub: boolean
50+
onClick: () => void
51+
}
52+
4753
function RightIndexInner({ editUrl }: { editUrl: string }) {
48-
const menus = useMemo(() => {
49-
if (typeof document === 'undefined') return []
50-
const elements = document.querySelectorAll(
51-
'.markdown-body h1, .markdown-body h2',
52-
)
53-
const menus = []
54-
for (let i = 0; i < elements.length; i++) {
55-
const element = elements[i]
56-
const text = element.textContent!
57-
menus.push({
58-
text,
59-
sub: element.tagName === 'H2',
60-
onClick: () => {
61-
element.scrollIntoView({ behavior: 'smooth' })
62-
},
63-
})
54+
const [menus, setMenus] = useState<MenuItem[]>([])
55+
56+
useEffect(() => {
57+
const updateMenus = () => {
58+
const elements = document.querySelectorAll(
59+
'.markdown-body h1, .markdown-body h2',
60+
)
61+
const newMenus: MenuItem[] = []
62+
for (let i = 0; i < elements.length; i++) {
63+
const element = elements[i]
64+
const text = element.textContent!
65+
newMenus.push({
66+
text,
67+
sub: element.tagName === 'H2',
68+
onClick: () => {
69+
element.scrollIntoView({ behavior: 'smooth' })
70+
},
71+
})
72+
}
73+
setMenus(newMenus)
6474
}
65-
return menus
75+
76+
requestAnimationFrame(updateMenus)
6677
}, [])
6778

6879
return (

apps/landing/src/app/docs/layout.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export default function DocsLayout({
2020
color="$text"
2121
px={['16px', null, null, '60px']}
2222
py={['24px', null, null, '40px']}
23+
w="100%"
2324
>
2425
{children}
2526
</Box>

0 commit comments

Comments
 (0)