- Add complete dark mode system with theme context and toggle - Implement dark mode toggle component in navigation menu - Add client-side routing with SSR-safe signal handling - Fix language selector styling for better dark mode compatibility - Add documentation system with mdBook integration - Improve navigation menu with proper external/internal link handling - Add comprehensive project documentation and configuration - Enhance theme system with localStorage persistence - Fix arena panic issues during server-side rendering - Add proper TypeScript configuration and build optimizations 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1.1 KiB
1.1 KiB
Pre-commit Hook (.git/hooks/pre-commit)
- Runs
cargo +nightly fmtbefore every commit - Checks if the formatting made any changes
- If changes were made, it prevents the commit and asks you to add the changes and commit again
- If no changes were needed, the commit proceeds normally
Pre-push Hook (.git/hooks/pre-push)
- Runs
cargo +nightly fmtbefore every push - Checks if the formatting made any changes
- If changes were made, it prevents the push and asks you to commit the changes and push again
- If no changes were needed, the push proceeds normally
Both hooks are now executable and will automatically run when you perform git commits and pushes.
Testing the Hooks
You can test the hooks by:
- Making a small change to a Rust file
- Running
git add .andgit commit -m "test"to see the pre-commit hook in action - Running
git pushto see the pre-push hook in action
Prerequisites
Make sure you have the nightly Rust toolchain installed:
rustup install nightly
The hooks will now ensure that your code is always formatted with cargo +nightly fmt before commits and pushes!