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: README.md
+31-1Lines changed: 31 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -167,9 +167,39 @@ By default, drafts are the preferred status and can't be changed at the source s
167
167
168
168
Oftentimes the communication Distributor attempts to make across sites using the REST API will be flagged by various security plugins and surreptitiously blocked. If you run into an issue like this, please reach out to the support for your security plugin and ask about getting Distributor unblocked ([here is an example for doing so with Wordfence](https://wordpress.org/support/topic/distributor-plugin-being-blocked/)).
169
169
170
+
## Building and Running Documentation Site
171
+
172
+
The Distributor documentation site is built using [WP Hooks Documentor](https://github.com/10up/wp-hooks-documentor). Follow these steps to build and run the documentation site locally:
173
+
174
+
### 1. Build Documentation
175
+
Node.js >= 20.0 and PHP >= 8.3 will be needed in your development environment.
176
+
177
+
```bash
178
+
# Install dependencies and build the plugin
179
+
npm i && npm run build:docs
180
+
```
181
+
182
+
This will:
183
+
- Install all required dependencies
184
+
- Process all hook documentation from the codebase
185
+
- Generate the documentation site in the `./docs-built` directory
186
+
187
+
### 2. Run Documentation Site Locally
188
+
189
+
```bash
190
+
# Navigate to docs-built directory and start the server
191
+
cd ./docs-built && npm run serve
192
+
```
193
+
194
+
The documentation site will be available at [http://localhost:3000](http://localhost:3000).
195
+
196
+
### 3. Deployment
197
+
198
+
The documentation site will automatically deploy to GitHub Pages when changes are merged into the `trunk` branch. You can view the live documentation at [https://10up.github.io/distributor/](https://10up.github.io/distributor/).
199
+
170
200
## Developers
171
201
172
-
See [Distributor Developer Documentation](https://10up.github.io/distributor/#developers).
202
+
See [Distributor Developer Documentation](https://10up.github.io/distributor/get-started/developers).
0 commit comments