@@ -8,14 +8,7 @@ This documents contains practical examples of a number of Jael's `task`s.
88
99General documentation of the `task`s demonstrated here can be found in the [API Reference](@/docs/arvo/jael/tasks.md) document, and details of the data types mentioned can be found in the [Data Types](@/docs/arvo/jael/data-types.md) document.
1010
11−# Contents
12−
13−- [%private-keys](#private-keys)
14−- [%public-keys and %nuke](#public-keys-and-nuke)
15−- [%turf](#turf)
16−- [%step](#step)
17−
18−# `%private-keys`
11+## `%private-keys`
1912
2013Here we'll look at subscribing to private key updates from Jael. We'll use a thread to pass Jael a `%private-keys` `task`, take the `%private-keys` `gift` it returns, debug print it to the terminal and finally unsubscribe with a `%nuke` `task`.
2114
@@ -63,7 +56,7 @@ You should see the `%private-key` `gift` it returns in the Dojo:
6356
6457At this point our thread unsubscribes again with a `%nuke` `task` but without that it would send a new `%private-key` `gift` each time the private keys were changed.
6558
66−# `%public-keys` and `%nuke`
59+## `%public-keys` and `%nuke`
6760
6861Here we'll look at both subscribing and unsubscribing to updates of a ship's public keys in Jael. We'll subscribe by sending Jael a `%public-keys` `task`, take the `%public-keys` `gift` it responds with, print it to the terminal, scry for the `set` of `duct`s subscribed to the ship in question, print them to the terminal, and finally send Jael a `%nuke` `task` to unsubscribe.
6962
@@ -178,7 +171,7 @@ At this point our thread will send a `%nuke` `task` like `[%nuke (silt ~[~dopzod
178171
179172As you can see the `set` is now empty, so we know the `%nuke` succeeded and Jael will no longer send us pubkey updates for `~dopzod`. One thing to note about `%nuke` is that it _must_ come from the same `duct` as the original subscription. You can't unsubscribe another app, ship, thread or what have you, so if we'd tried `%nuke`ing the subscription from a separate thread it wouldn't have worked.
180173
181−# `%turf`
174+## `%turf`
182175
183176Here we'll look at using a `%turf` `task` to get Jael's list of domains. Note on a fake ship the list will be empty, so you may with to run it on a comet or moon.
184177
@@ -213,7 +206,7 @@ Save in in the `/ted` directory of your ship and `|commit %home`. Next, let's tr
213206
214207As you see, the `%turf` `gift` contains `urbit.org` as `~['org' 'urbit']`.
215208
216−# `%step`
209+## `%step`
217210
218211Here we'll look at changing the web login code with a `%step` task.
219212