Skip to content

Conversation

@kimyouknow
Copy link
Collaborator

@kimyouknow kimyouknow commented Feb 10, 2026

Summary

  • Restructure mobile package utils into individual folders
  • Add English and Korean documentation for 9 utils
  • Improve generateDocs script

Changes

1. Script Improvements

  • Add fallback to use JSDoc first line when @description tag is missing
  • Fix dotenv loading by explicitly specifying .env path
  • Change translation model (gpt-4o → gpt-3.5-turbo)

2. Utils Folder Restructure

Before After
bodyScrollLock.ts enableBodyScrollLock/, disableBodyScrollLock/
device/device.ts isIOS/, isAndroid/
keyboard/*.ts getKeyboardHeight/, isKeyboardVisible/, subscribeKeyboardHeight/
safeArea/*.ts getSafeAreaInset/
isServer.ts isServer/

3. Documentation Added (18 files)

  • English: 9 files
  • Korean: 9 files

4. VitePress Configuration

  • Add utils section to mobile sidebar
  • Add rewrite rules for mobile utils

Test plan

  • yarn typecheck passes
  • yarn test passes (174 tests)
  • yarn docs:dev - documentation renders correctly
image image

…sePageVisibility, and useScrollDirection hooks

- Refined descriptions and examples for clarity and consistency.
- Improved parameter and return value sections across all hooks.
- Removed outdated examples and notes to streamline documentation.
- Enhanced Korean translations for useNetworkStatus and usePageVisibility hooks.
- Updated hero text to better describe the library as a "Lightweight and powerful React utility library."
- Revised features section to include clearer titles and detailed descriptions, emphasizing zero dependencies, test coverage, and comprehensive documentation.
- Added new logo and symbol SVG images to improve visual branding.
- Changed code block syntax from single backticks to triple backticks for better rendering.
- Ensured consistency across examples in useBodyScrollLock, useNetworkStatus, usePageVisibility, and useScrollDirection documentation.
- Add fallback to use JSDoc first line when @description tag is missing
- Fix dotenv loading by explicitly specifying .env path
- Change translation model from gpt-4o to gpt-3.5-turbo
- Split bodyScrollLock into enableBodyScrollLock and disableBodyScrollLock
- Split device into isIOS and isAndroid
- Move keyboard utils to individual folders
- Move safeArea utils to individual folder
- Move isServer to individual folder
- Add English and Korean documentation for 9 utils
- isServer, enableBodyScrollLock, disableBodyScrollLock
- isIOS, isAndroid, getKeyboardHeight
- isKeyboardVisible, subscribeKeyboardHeight, getSafeAreaInset
@github-actions
Copy link
Contributor

github-actions bot commented Feb 10, 2026

Size Change: 0 B 🆕

Total Size: 0 B

compressed-size-action

Base automatically changed from chore/docs to main February 10, 2026 14:47
@kimyouknow kimyouknow marked this pull request as ready for review February 10, 2026 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant