You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+57-4Lines changed: 57 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -52,6 +52,63 @@ If you have been assigned to fix an issue or develop a new feature, please follo
52
52
- Git stage your required changes and commit (see below commit guidelines).
53
53
- Submit PR for review.
54
54
55
+
### Editing the docs locally and previewing the changes
56
+
57
+
The documentations forall the TanStack projects are hosted on [tanstack.com](https://tanstack.com), which is a TanStack Start application (https://github.com/TanStack/tanstack.com). You need to run this app locally to preview your changesin the `TanStack/query` docs.
58
+
59
+
> [!NOTE]
60
+
> The website fetches the doc pages from GitHub in production, and searches forthem at `../query/docs`in development. Your local clone of `TanStack/query` needs to be in the same directory as the local clone of `TansStack/tanstack.com`.
61
+
62
+
You can follow these steps to set up the docs forlocal development:
63
+
64
+
1. Make a new directory called `tanstack`.
65
+
66
+
```sh
67
+
mkdir tanstack
68
+
```
69
+
70
+
2. Enter that directory and clone the [`TanStack/query`](https://github.com/TanStack/query) and [`TanStack/tanstack.com`](https://github.com/TanStack/tanstack.com) repos.
71
+
72
+
```sh
73
+
cd tanstack
74
+
git clone git@github.com:TanStack/query.git
75
+
# We probably don't need all the branches and commit history
76
+
# from the `tanstack.com` repo, so let's just create a shallow
77
+
# clone of the latest version of the `main` branch.
- Make sure you've installed the dependencies in the repo's root directory.
@@ -72,10 +129,6 @@ If you have been assigned to fix an issue or develop a new feature, please follo
72
129
pnpm run dev
73
130
```
74
131
75
-
#### Note on `examples/react-native`
76
-
77
-
React Native example requires Expo to work. Please follow the instructions from example's README.md file to learn more.
78
-
79
132
#### Note on standalone execution
80
133
81
134
If you want to run an example without installing dependencies for the whole repo, just follow instructions from the example's README.md file. It will be then run against the latest TanStack Query release.
0 commit comments