Conversation
There was a problem hiding this comment.
Pull request overview
This PR refreshes the docs-gesture-handler site by introducing a large set of “raw” markdown documentation artifacts (likely for downstream processing/LLM indexing), updating the Docusaurus setup to use the @swmansion/t-rex-ui preset, and migrating MDX pages to use the new Badges component instead of the removed local HeaderWithBadges.
Changes:
- Add extensive new documentation content under
static/raw/**plus anllms.txtindex. - Replace local theme/component re-export wrappers with the
@swmansion/t-rex-ui/presetand exposeBadgesglobally viasrc/theme/MDXComponents.js. - Update docs site dependencies/config and introduce new CSS variables for copy-button/badges styling.
Reviewed changes
Copilot reviewed 113 out of 115 changed files in this pull request and generated 16 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/docs-gesture-handler/static/raw/under-the-hood/state.md | Adds raw “handler state machine” documentation. |
| packages/docs-gesture-handler/static/raw/under-the-hood/how-does-it-work.md | Adds raw under-the-hood platform behavior documentation. |
| packages/docs-gesture-handler/static/raw/legacy-gestures/touch-events.md | Adds raw legacy touch event attribute reference. |
| packages/docs-gesture-handler/static/raw/legacy-gestures/tap-gesture.md | Adds raw legacy Tap gesture documentation. |
| packages/docs-gesture-handler/static/raw/legacy-gestures/state-manager.md | Adds raw legacy state manager docs. |
| packages/docs-gesture-handler/static/raw/legacy-gestures/rotation-gesture.md | Adds raw legacy Rotation gesture docs. |
| packages/docs-gesture-handler/static/raw/legacy-gestures/pinch-gesture.md | Adds raw legacy Pinch gesture docs. |
| packages/docs-gesture-handler/static/raw/legacy-gestures/pan-gesture.md | Adds raw legacy Pan gesture docs. |
| packages/docs-gesture-handler/static/raw/legacy-gestures/native-gesture.md | Adds raw legacy Native gesture docs. |
| packages/docs-gesture-handler/static/raw/legacy-gestures/manual-gesture.md | Adds raw legacy Manual gesture docs. |
| packages/docs-gesture-handler/static/raw/legacy-gestures/long-press-gesture.md | Adds raw legacy Long Press gesture docs. |
| packages/docs-gesture-handler/static/raw/legacy-gestures/hover-gesture.md | Adds raw legacy Hover gesture docs. |
| packages/docs-gesture-handler/static/raw/legacy-gestures/gesture.md | Adds raw legacy Gesture builder overview. |
| packages/docs-gesture-handler/static/raw/legacy-gestures/gesture-detector.md | Adds raw legacy GestureDetector docs. |
| packages/docs-gesture-handler/static/raw/legacy-gestures/gesture-composition.md | Adds raw legacy gesture composition docs. |
| packages/docs-gesture-handler/static/raw/legacy-gestures/force-touch-gesture.md | Adds raw legacy ForceTouch docs (deprecated). |
| packages/docs-gesture-handler/static/raw/legacy-gestures/fling-gesture.md | Adds raw legacy Fling gesture docs. |
| packages/docs-gesture-handler/static/raw/legacy-gestures/composed-gestures.md | Adds raw legacy composed gestures overview. |
| packages/docs-gesture-handler/static/raw/legacy-gestures/_shared/v2-info.md | Adds shared warning block for legacy RNGH2 docs. |
| packages/docs-gesture-handler/static/raw/legacy-gestures/_shared/gesture-detector-functional1.md | Adds shared example snippet for legacy detector usage. |
| packages/docs-gesture-handler/static/raw/legacy-gestures/_shared/base-gesture-event-data.md | Adds shared legacy base event data content. |
| packages/docs-gesture-handler/static/raw/legacy-gestures/_shared/base-gesture-config.md | Adds shared legacy base config content. |
| packages/docs-gesture-handler/static/raw/legacy-gestures/_shared/base-gesture-callbacks.md | Adds shared legacy base callbacks content. |
| packages/docs-gesture-handler/static/raw/legacy-gestures/_shared/base-continuous-gesture-config.md | Adds shared legacy continuous-gesture config content. |
| packages/docs-gesture-handler/static/raw/legacy-gestures/_shared/base-continuous-gesture-callbacks.md | Adds shared legacy continuous-gesture callbacks content. |
| packages/docs-gesture-handler/static/raw/guides/upgrading-to-3.md | Adds raw upgrade guide from RNGH2 to RNGH3 hook API. |
| packages/docs-gesture-handler/static/raw/guides/troubleshooting.md | Adds raw troubleshooting guide content. |
| packages/docs-gesture-handler/static/raw/guides/testing.md | Adds raw Jest/testing guide content. |
| packages/docs-gesture-handler/static/raw/guides/swipe-and-scroll.md | Adds raw web swipe/scroll interop note. |
| packages/docs-gesture-handler/static/raw/guides/quickstart/index.md | Adds raw quickstart guide content. |
| packages/docs-gesture-handler/static/raw/guides/quickstart/_steps/step5.md | Adds raw quickstart step snippet. |
| packages/docs-gesture-handler/static/raw/guides/quickstart/_steps/step4.md | Adds raw quickstart step snippet. |
| packages/docs-gesture-handler/static/raw/guides/quickstart/_steps/step3.md | Adds raw quickstart step snippet. |
| packages/docs-gesture-handler/static/raw/guides/quickstart/_steps/step2.md | Adds raw quickstart step snippet. |
| packages/docs-gesture-handler/static/raw/guides/quickstart/_steps/step1.md | Adds raw quickstart step snippet. |
| packages/docs-gesture-handler/static/raw/gestures/use-tap-gesture.md | Adds raw RNGH3 hook gesture reference (Tap). |
| packages/docs-gesture-handler/static/raw/gestures/use-rotation-gesture.md | Adds raw RNGH3 hook gesture reference (Rotation). |
| packages/docs-gesture-handler/static/raw/gestures/use-pinch-gesture.md | Adds raw RNGH3 hook gesture reference (Pinch). |
| packages/docs-gesture-handler/static/raw/gestures/use-pan-gesture.md | Adds raw RNGH3 hook gesture reference (Pan). |
| packages/docs-gesture-handler/static/raw/gestures/use-native-gesture.md | Adds raw RNGH3 hook gesture reference (Native). |
| packages/docs-gesture-handler/static/raw/gestures/use-manual-gesture.md | Adds raw RNGH3 hook gesture reference (Manual) + walkthrough. |
| packages/docs-gesture-handler/static/raw/gestures/use-long-press-gesture.md | Adds raw RNGH3 hook gesture reference (LongPress). |
| packages/docs-gesture-handler/static/raw/gestures/use-hover-gesture.md | Adds raw RNGH3 hook gesture reference (Hover). |
| packages/docs-gesture-handler/static/raw/gestures/use-fling-gesture.md | Adds raw RNGH3 hook gesture reference (Fling). |
| packages/docs-gesture-handler/static/raw/gestures/_shared/shared-value-info.md | Adds shared note about SharedValue-configurable props. |
| packages/docs-gesture-handler/static/raw/gestures/_shared/mouse-button.md | Adds shared mouseButton docs snippet (RNGH3). |
| packages/docs-gesture-handler/static/raw/gestures/_shared/base-gesture-event-data.md | Adds shared base gesture event data snippet (RNGH3). |
| packages/docs-gesture-handler/static/raw/gestures/_shared/base-gesture-config.md | Adds shared base gesture config snippet (RNGH3). |
| packages/docs-gesture-handler/static/raw/gestures/_shared/base-gesture-callbacks.md | Adds shared base gesture callbacks snippet (RNGH3). |
| packages/docs-gesture-handler/static/raw/gestures/_shared/base-continuous-gesture-config.md | Adds shared continuous gesture config snippet (RNGH3). |
| packages/docs-gesture-handler/static/raw/gestures/_shared/base-continuous-gesture-callbacks.md | Adds shared continuous gesture callbacks snippet (RNGH3). |
| packages/docs-gesture-handler/static/raw/gestures/_manual_gesture_steps/step7.md | Adds raw manual-gesture tutorial step snippet. |
| packages/docs-gesture-handler/static/raw/gestures/_manual_gesture_steps/step6.md | Adds raw manual-gesture tutorial step snippet. |
| packages/docs-gesture-handler/static/raw/gestures/_manual_gesture_steps/step5.md | Adds raw manual-gesture tutorial step snippet. |
| packages/docs-gesture-handler/static/raw/gestures/_manual_gesture_steps/step4.md | Adds raw manual-gesture tutorial step snippet. |
| packages/docs-gesture-handler/static/raw/gestures/_manual_gesture_steps/step3.md | Adds raw manual-gesture tutorial step snippet. |
| packages/docs-gesture-handler/static/raw/gestures/_manual_gesture_steps/step2.md | Adds raw manual-gesture tutorial step snippet. |
| packages/docs-gesture-handler/static/raw/gestures/_manual_gesture_steps/step1.md | Adds raw manual-gesture tutorial step snippet. |
| packages/docs-gesture-handler/static/raw/fundamentals/state-manager.md | Adds raw RNGH3 state manager docs. |
| packages/docs-gesture-handler/static/raw/fundamentals/root-view.md | Adds raw GestureHandlerRootView docs. |
| packages/docs-gesture-handler/static/raw/fundamentals/reanimated-interactions.md | Adds raw Reanimated integration docs. |
| packages/docs-gesture-handler/static/raw/fundamentals/introduction.md | Adds raw introduction/overview docs. |
| packages/docs-gesture-handler/static/raw/fundamentals/installation.md | Adds raw installation/setup docs. |
| packages/docs-gesture-handler/static/raw/fundamentals/gesture-detector.md | Adds raw gesture detector docs (incl. virtual detectors). |
| packages/docs-gesture-handler/static/raw/fundamentals/gesture-composition.md | Adds raw gesture composition docs (RNGH3 hooks/relations). |
| packages/docs-gesture-handler/static/raw/fundamentals/callbacks-events.md | Adds raw callbacks/events docs. |
| packages/docs-gesture-handler/static/raw/fundamentals/animated-interactions.md | Adds raw Animated API integration docs. |
| packages/docs-gesture-handler/static/raw/components/touchables.md | Adds raw Touchables docs (deprecation note). |
| packages/docs-gesture-handler/static/raw/components/reanimated-drawer-layout.md | Adds raw ReanimatedDrawerLayout docs. |
| packages/docs-gesture-handler/static/raw/components/reanimated_swipeable.md | Adds raw ReanimatedSwipeable docs. |
| packages/docs-gesture-handler/static/raw/components/pressable.md | Adds raw Pressable docs. |
| packages/docs-gesture-handler/static/raw/components/buttons.md | Adds raw Buttons docs. |
| packages/docs-gesture-handler/static/llms.txt | Adds an LLM-oriented index of docs URLs. |
| packages/docs-gesture-handler/src/theme/TOCItems/Tree.js | Removes local re-export wrapper (t-rex-ui preset now used). |
| packages/docs-gesture-handler/src/theme/TOCCollapsible/index.js | Removes local re-export wrapper (t-rex-ui preset now used). |
| packages/docs-gesture-handler/src/theme/SearchPage/index.js | Removes local re-export wrapper (t-rex-ui preset now used). |
| packages/docs-gesture-handler/src/theme/PaginatorNavLink/index.js | Removes local re-export wrapper (t-rex-ui preset now used). |
| packages/docs-gesture-handler/src/theme/MDXComponents/styles.module.css | Removes custom details styling CSS. |
| packages/docs-gesture-handler/src/theme/MDXComponents/DetailsStyling.tsx | Removes custom Details component implementation. |
| packages/docs-gesture-handler/src/theme/MDXComponents/Details.js | Removes custom Details MDX component wrapper. |
| packages/docs-gesture-handler/src/theme/MDXComponents.js | Exposes Badges (t-rex-ui) via global MDX components mapping. |
| packages/docs-gesture-handler/src/theme/Footer/index.js | Removes local re-export wrapper (t-rex-ui preset now used). |
| packages/docs-gesture-handler/src/theme/DocSidebarItems/index.js | Removes local re-export wrapper (t-rex-ui preset now used). |
| packages/docs-gesture-handler/src/theme/DocSidebarItem/index.js | Removes local re-export wrapper (t-rex-ui preset now used). |
| packages/docs-gesture-handler/src/theme/DocItem/TOC/Mobile/index.js | Removes local re-export wrapper (t-rex-ui preset now used). |
| packages/docs-gesture-handler/src/theme/DocItem/Metadata/index.js | Removes local re-export wrapper (t-rex-ui preset now used). |
| packages/docs-gesture-handler/src/theme/DocCard/index.js | Removes local re-export wrapper (t-rex-ui preset now used). |
| packages/docs-gesture-handler/src/theme/Admonition/index.js | Removes local re-export wrapper (t-rex-ui preset now used). |
| packages/docs-gesture-handler/src/css/colors.css | Adds CSS variables for markdown copy button + badges. |
| packages/docs-gesture-handler/src/components/HeaderWithBadges/styles.module.css | Removes local badges styling (superseded by t-rex-ui Badges). |
| packages/docs-gesture-handler/src/components/HeaderWithBadges/index.tsx | Removes local HeaderWithBadges component (replaced by Badges). |
| packages/docs-gesture-handler/package.json | Updates Docusaurus/t-rex-ui deps and adds clipboard dependency. |
| packages/docs-gesture-handler/docusaurus.config.js | Adds t-rex-ui preset + JS babel-loader rule in webpack config. |
| packages/docs-gesture-handler/docs/gestures/use-tap-gesture.mdx | Removes HeaderWithBadges usage/imports (Badges now global). |
| packages/docs-gesture-handler/docs/gestures/use-rotation-gesture.mdx | Removes redundant imports (Badges now global). |
| packages/docs-gesture-handler/docs/gestures/use-pan-gesture.mdx | Replaces HeaderWithBadges sections with Badges. |
| packages/docs-gesture-handler/docs/gestures/use-native-gesture.mdx | Replaces HeaderWithBadges sections with Badges. |
| packages/docs-gesture-handler/docs/gestures/use-long-press-gesture.mdx | Removes HeaderWithBadges usage/imports (Badges now global). |
| packages/docs-gesture-handler/docs/gestures/use-hover-gesture.mdx | Replaces HeaderWithBadges sections with Badges. |
| packages/docs-gesture-handler/docs/gestures/use-fling-gesture.mdx | Removes HeaderWithBadges usage/imports (Badges now global). |
| packages/docs-gesture-handler/docs/gestures/_shared/mouse-button.mdx | Switches platform header block to Badges. |
| packages/docs-gesture-handler/docs/gestures/_shared/base-gesture-event-data.mdx | Removes redundant import (uses global MDX components). |
| packages/docs-gesture-handler/docs/gestures/_shared/base-gesture-config.mdx | Switches platform header blocks to Badges. |
| packages/docs-gesture-handler/docs/fundamentals/state-manager.mdx | Removes redundant import (uses global MDX components). |
| packages/docs-gesture-handler/docs/fundamentals/reanimated-interactions.mdx | Removes redundant import (uses global MDX components). |
| packages/docs-gesture-handler/docs/fundamentals/gesture-detector.mdx | Switches platform header blocks to Badges and removes old imports. |
| packages/docs-gesture-handler/docs/fundamentals/gesture-composition.mdx | Removes redundant import (uses global MDX components). |
| packages/docs-gesture-handler/docs/fundamentals/callbacks-events.mdx | Removes redundant import (uses global MDX components). |
| packages/docs-gesture-handler/docs/fundamentals/animated-interactions.mdx | Removes redundant import (uses global MDX components). |
| packages/docs-gesture-handler/docs/components/reanimated-drawer-layout.mdx | Switches platform header blocks to Badges. |
| packages/docs-gesture-handler/docs/components/reanimated_swipeable.mdx | Switches platform header blocks to Badges. |
| packages/docs-gesture-handler/docs/components/pressable.mdx | Switches platform header blocks to Badges. |
| packages/docs-gesture-handler/docs/components/buttons.mdx | Switches platform header blocks to Badges. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
packages/docs-gesture-handler/static/raw/fundamentals/gesture-detector.md
Outdated
Show resolved
Hide resolved
packages/docs-gesture-handler/static/raw/legacy-gestures/gesture-detector.md
Outdated
Show resolved
Hide resolved
packages/docs-gesture-handler/static/raw/legacy-gestures/native-gesture.md
Outdated
Show resolved
Hide resolved
packages/docs-gesture-handler/static/raw/legacy-gestures/tap-gesture.md
Outdated
Show resolved
Hide resolved
packages/docs-gesture-handler/static/raw/fundamentals/gesture-composition.md
Outdated
Show resolved
Hide resolved
packages/docs-gesture-handler/static/raw/under-the-hood/how-does-it-work.md
Outdated
Show resolved
Hide resolved
packages/docs-gesture-handler/static/raw/gestures/use-pan-gesture.md
Outdated
Show resolved
Hide resolved
packages/docs-gesture-handler/static/raw/legacy-gestures/pan-gesture.md
Outdated
Show resolved
Hide resolved
packages/docs-gesture-handler/docs/gestures/use-pan-gesture.mdx
Outdated
Show resolved
Hide resolved
|
@m-bert ready for review 🍓 lmk if I should change all of copilot docs related grammar issues as well |
IMO we can leave that for other PR - this is already quite big. |
m-bert
left a comment
There was a problem hiding this comment.
I think that badges could be positioned a bit higher. It looks strange that gap between badge and code is smaller than gap between header and code (cc @j-piasecki)
Description
Note
For now it contains
"resolutions": { "webpackbar": "^7.0.0" },, a without it build failsTest plan