Skip to content

Commit dcef549

Browse files
authored
Merge pull request #669 from share/fix-docs-links
📝 Fix links in interpolated documentation
2 parents 10ba551 + ccf1d54 commit dcef549

File tree

1 file changed

+33
-44
lines changed

1 file changed

+33
-44
lines changed

docs/middleware/actions.md

+33-44
Original file line numberDiff line numberDiff line change
@@ -3,40 +3,6 @@ title: Actions
33
nav_order: 2
44
layout: default
55
parent: Middleware
6-
7-
copy:
8-
submit_request_props: |-
9-
`collection` -- string
10-
> The collection of the op
11-
12-
`id` -- string
13-
> The document ID
14-
15-
`op` -- Object
16-
> The submitted op
17-
18-
`snapshot` -- [`Snapshot`]({{ site.baseurl }}{% link api/snapshot.md %})
19-
> The snapshot
20-
21-
`extra` -- Object
22-
> `extra.source` -- Object
23-
>> The submitted source when [`doc.submitSource`]({{ site.baseurl }}{% link api/doc.md %}http://localhost:4000/api/doc#submitsource--boolean) is set to `true`
24-
25-
`saveMilestoneSnapshot` -- boolean
26-
> Flag to control [saving a milestone snapshot]({{ site.baseurl }}{% link adapters/milestone.md#requesting-snapshots %})
27-
28-
`suppressPublish` -- boolean
29-
> Flag to prevent broadcasting over [pub/sub]({{ site.baseurl }}{% link pub-sub.md %})
30-
31-
`retries` -- number
32-
> The number of times the op has attempted to submit
33-
34-
`maxRetries` -- number
35-
> The maximum number of times to retry submitting the op
36-
37-
`channels` -- string[]
38-
> The [pub/sub]({{ site.baseurl }}{% link pub-sub.md %}) channels the op will publish to
39-
406
---
417

428
# Middleware actions
@@ -214,28 +180,51 @@ An operation has been submitted to the server.
214180

215181
This action has these additional `context` properties:
216182

217-
{{ page.copy.submit_request_props }}
183+
`collection` -- string
184+
> The collection of the op
185+
186+
`id` -- string
187+
> The document ID
188+
189+
`op` -- Object
190+
> The submitted op
191+
192+
`snapshot` -- [`Snapshot`]({{ site.baseurl }}{% link api/snapshot.md %})
193+
> The snapshot
194+
195+
`extra` -- Object
196+
> `extra.source` -- Object
197+
>> The submitted source when [`doc.submitSource`]({{ site.baseurl }}{% link api/doc.md %}#submitsource--boolean) is set to `true`
198+
199+
`saveMilestoneSnapshot` -- boolean
200+
> Flag to control [saving a milestone snapshot]({{ site.baseurl }}{% link adapters/milestone.md%}#requesting-snapshots)
201+
202+
`suppressPublish` -- boolean
203+
> Flag to prevent broadcasting over [pub/sub]({{ site.baseurl }}{% link pub-sub.md %})
204+
205+
`retries` -- number
206+
> The number of times the op has attempted to submit
207+
208+
`maxRetries` -- number
209+
> The maximum number of times to retry submitting the op
210+
211+
`channels` -- string[]
212+
> The [pub/sub]({{ site.baseurl }}{% link pub-sub.md %}) channels the op will publish to
218213
219214
## `'apply'`
220215

221216
An operation is about to be applied to a snapshot, before committing.
222217

223-
This action has these additional `context` properties:
224-
225-
{{ page.copy.submit_request_props }}
218+
This action has the same additional `context` properties as [`'submit'`](#submit).
226219

227220
## `'commit'`
228221

229222
An operation was applied to a snapshot, and is about to be committed to the database.
230223

231-
This action has these additional `context` properties:
232-
233-
{{ page.copy.submit_request_props }}
224+
This action has the same additional `context` properties as [`'submit'`](#submit).
234225

235226
## `'afterWrite'`
236227

237228
An operation and its updated snapshot were successfully written to the database.
238229

239-
This action has these additional `context` properties:
240-
241-
{{ page.copy.submit_request_props }}
230+
This action has the same additional `context` properties as [`'submit'`](#submit).

0 commit comments

Comments
 (0)