on master help sign in
Merge pull request #6 from urbit/src-data-path
5623de7Galen Wolfe-Pauly
docs/about.md+1−1
@@ -4,4 +4,4 @@ sort: 1
4
4
5# About
5# About
6
6
7−<list dataPath="docs/about"></list>
7+<list />
docs/programming.md+1−1
@@ -4,4 +4,4 @@ sort: 3
4
4
5# Programming
5# Programming
6
6
7−<list dataPath="docs/programming"></list>
7+<list />
docs/programming/reference.md+1−1
@@ -6,4 +6,4 @@ sort: 4
6
6
7Background information on Nock, Hoon, Arvo,
7Background information on Nock, Hoon, Arvo,
8
8
9−<list dataPath="docs/programming/reference"></list>
9+<list />
docs/programming/reference/runes.md+13−13
@@ -13,72 +13,72 @@ Runes
13
13
14## `$ buc` (molds)
14## `$ buc` (molds)
15
15
16−<list dataPath="docs/system/hoon/runes/bc" dataPreview="true" className="runes" childIsFragment="true"></list>
16+<list src="bc" dataPreview="true" className="runes" childIsFragment="true"></list>
17
17
18---
18---
19
19
20## `| bar` (cores)
20## `| bar` (cores)
21
21
22−<list dataPath="docs/system/hoon/runes/br" dataPreview="true" className="runes" childIsFragment="true"></list>
22+<list src="br" dataPreview="true" className="runes" childIsFragment="true"></list>
23
23
24---
24---
25
25
26## `: col` (tuples)
26## `: col` (tuples)
27
27
28−<list dataPath="docs/system/hoon/runes/cl" dataPreview="true" className="runes" childIsFragment="true"></list>
28+<list src="cl" dataPreview="true" className="runes" childIsFragment="true"></list>
29
29
30---
30---
31
31
32## `% cen` (invocations)
32## `% cen` (invocations)
33
33
34−<list dataPath="docs/system/hoon/runes/cn" dataPreview="true" className="runes" childIsFragment="true"></list>
34+<list src="cn" dataPreview="true" className="runes" childIsFragment="true"></list>
35
35
36---
36---
37
37
38## `. dot` (nock)
38## `. dot` (nock)
39
39
40−<list dataPath="docs/system/hoon/runes/dt" dataPreview="true" className="runes" childIsFragment="true"></list>
40+<list src="dt" dataPreview="true" className="runes" childIsFragment="true"></list>
41
41
42---
42---
43
43
44## `# hax` (printing)
44## `# hax` (printing)
45
45
46−<list dataPath="docs/system/hoon/runes/hx" dataPreview="true" className="runes" childIsFragment="true"></list>
46+<list src="hx" dataPreview="true" className="runes" childIsFragment="true"></list>
47
47
48---
48---
49
49
50## `^ ket` (casting)
50## `^ ket` (casting)
51
51
52−<list dataPath="docs/system/hoon/runes/kt" dataPreview="true" className="runes" childIsFragment="true"></list>
52+<list src="kt" dataPreview="true" className="runes" childIsFragment="true"></list>
53
53
54---
54---
55
55
56## `~ sig` (hints)
56## `~ sig` (hints)
57
57
58−<list dataPath="docs/system/hoon/runes/sg" dataPreview="true" className="runes" childIsFragment="true"></list>
58+<list src="sg" dataPreview="true" className="runes" childIsFragment="true"></list>
59
59
60---
60---
61
61
62## `; sem` (composition)
62## `; sem` (composition)
63
63
64−<list dataPath="docs/system/hoon/runes/sm" dataPreview="true" className="runes" childIsFragment="true"></list>
64+<list src="sm" dataPreview="true" className="runes" childIsFragment="true"></list>
65
65
66---
66---
67
67
68## `= tis` (subject modifiers)
68## `= tis` (subject modifiers)
69
69
70−<list dataPath="docs/system/hoon/runes/ts" dataPreview="true" className="runes" childIsFragment="true"></list>
70+<list src="ts" dataPreview="true" className="runes" childIsFragment="true"></list>
71
71
72---
72---
73
73
74## `? wut` (conditional)
74## `? wut` (conditional)
75
75
76−<list dataPath="docs/system/hoon/runes/wt" dataPreview="true" className="runes" childIsFragment="true"></list>
76+<list src="wt" dataPreview="true" className="runes" childIsFragment="true"></list>
77
77
78---
78---
79
79
80## `! zap` (special)
80## `! zap` (special)
81
81
82−<list dataPath="docs/system/hoon/runes/zp" dataPreview="true" className="runes" childIsFragment="true"></list>
82+<list src="zp" dataPreview="true" className="runes" childIsFragment="true"></list>
83
83
84−</div>
84+</div>
docs/programming/reference/runes/bc.md+2−2
@@ -6,6 +6,6 @@ sort: 2
6
6
7##### Molds are types, but we don't have types.
7##### Molds are types, but we don't have types.
8
8
9−<list dataPath="docs/system/hoon/runes/bc" dataPreview="true" className="runes" linkToFragments="true"></list>
9+<list dataPreview="true" className="runes" linkToFragments="true"></list>
10
10
11−<kids dataPath="docs/system/hoon/runes/bc" className="runes"></kids>
11+<kids className="runes"></kids>
docs/programming/reference/runes/br.md+2−2
@@ -6,6 +6,6 @@ sort: 1
6
6
7##### Cores are sort of like objects, but not quite.
7##### Cores are sort of like objects, but not quite.
8
8
9−<list dataPath="docs/system/hoon/runes/br" dataPreview="true" className="runes" linkToFragments="true"></list>
9+<list dataPreview="true" className="runes" linkToFragments="true"></list>
10
10
11−<kids dataPath="docs/system/hoon/runes/br" className="runes"></kids>
11+<kids className="runes"></kids>
docs/programming/reference/runes/cl.md+2−2
@@ -6,6 +6,6 @@ sort: 3
6
6
7##### Tuples are easy.
7##### Tuples are easy.
8
8
9−<list dataPath="docs/system/hoon/runes/cl" dataPreview="true" className="runes" linkToFragments="true"></list>
9+<list dataPreview="true" className="runes" linkToFragments="true"></list>
10
10
11−<kids dataPath="docs/system/hoon/runes/cl" className="runes"></kids>
11+<kids className="runes"></kids>
docs/programming/reference/runes/cn.md+2−2
@@ -6,6 +6,6 @@ sort: 4
6
6
7##### Calls, but not.
7##### Calls, but not.
8
8
9−<list dataPath="docs/system/hoon/runes/cn" dataPreview="true" className="runes" linkToFragments="true"></list>
9+<list dataPreview="true" className="runes" linkToFragments="true"></list>
10
10
11−<kids dataPath="docs/system/hoon/runes/cn" className="runes"></kids>
11+<kids className="runes"></kids>
docs/programming/reference/runes/dt.md+2−2
@@ -6,6 +6,6 @@ sort: 5
6
6
7##### Run some nock.
7##### Run some nock.
8
8
9−<list dataPath="docs/system/hoon/runes/dt" dataPreview="true" className="runes" linkToFragments="true"></list>
9+<list dataPreview="true" className="runes" linkToFragments="true"></list>
10
10
11−<kids dataPath="docs/system/hoon/runes/dt" className="runes"></kids>
11+<kids className="runes"></kids>
docs/programming/reference/runes/hx.md+2−2
@@ -6,6 +6,6 @@ sort: 6
6
6
7##### Want to print something? Fine.
7##### Want to print something? Fine.
8
8
9−<list dataPath="docs/system/hoon/runes/hx" dataPreview="true" className="runes" linkToFragments="true"></list>
9+<list dataPreview="true" className="runes" linkToFragments="true"></list>
10
10
11−<kids dataPath="docs/system/hoon/runes/hx" className="runes"></kids>
11+<kids className="runes"></kids>
docs/programming/reference/runes/kt.md+2−2
@@ -6,6 +6,6 @@ sort: 7
6
6
7##### Go ahead, recast that.
7##### Go ahead, recast that.
8
8
9−<list dataPath="docs/system/hoon/runes/kt" dataPreview="true" className="runes" linkToFragments="true"></list>
9+<list dataPreview="true" className="runes" linkToFragments="true"></list>
10
10
11−<kids dataPath="docs/system/hoon/runes/kt" className="runes"></kids>
11+<kids className="runes"></kids>
docs/programming/reference/runes/sg.md+2−2
@@ -6,6 +6,6 @@ sort: 8
6
6
7##### Give the compiler a little help.
7##### Give the compiler a little help.
8
8
9−<list dataPath="docs/system/hoon/runes/sg" dataPreview="true" className="runes" linkToFragments="true"></list>
9+<list dataPreview="true" className="runes" linkToFragments="true"></list>
10
10
11−<kids dataPath="docs/system/hoon/runes/sg" className="runes"></kids>
11+<kids className="runes"></kids>
docs/programming/reference/runes/sm.md+2−2
@@ -6,6 +6,6 @@ sort: 10
6
6
7##### Compose at will.
7##### Compose at will.
8
8
9−<list dataPath="docs/system/hoon/runes/sm" dataPreview="true" className="runes" linkToFragments="true"></list>
9+<list dataPreview="true" className="runes" linkToFragments="true"></list>
10
10
11−<kids dataPath="docs/system/hoon/runes/sm" className="runes"></kids>
11+<kids className="runes"></kids>
docs/programming/reference/runes/ts.md+2−2
@@ -6,6 +6,6 @@ sort: 9
6
6
7##### Feel free to change the subject.
7##### Feel free to change the subject.
8
8
9−<list dataPath="docs/system/hoon/runes/ts" dataPreview="true" className="runes" linkToFragments="true"></list>
9+<list dataPreview="true" className="runes" linkToFragments="true"></list>
10
10
11−<kids dataPath="docs/system/hoon/runes/ts" className="runes"></kids>
11+<kids className="runes"></kids>
docs/programming/reference/runes/wt.md+2−2
@@ -6,6 +6,6 @@ sort: 11
6
6
7##### If this then what?
7##### If this then what?
8
8
9−<list dataPath="docs/system/hoon/runes/wt" dataPreview="true" className="runes" linkToFragments="true"></list>
9+<list dataPreview="true" className="runes" linkToFragments="true"></list>
10
10
11−<kids dataPath="docs/system/hoon/runes/wt" className="runes"></kids>
11+<kids className="runes"></kids>
docs/programming/reference/runes/zp.md+2−2
@@ -6,6 +6,6 @@ sort: 12
6
6
7##### Pow, zap, bam.
7##### Pow, zap, bam.
8
8
9−<list dataPath="docs/system/hoon/runes/zp" dataPreview="true" className="runes" linkToFragments="true"></list>
9+<list dataPreview="true" className="runes" linkToFragments="true"></list>
10
10
11−<kids dataPath="docs/system/hoon/runes/zp" className="runes"></kids>
11+<kids className="runes"></kids>
docs/using.md+1−1
@@ -4,4 +4,4 @@ sort: 2
4
4
5# Using
5# Using
6
6
7−<list dataPath="docs/using"></list>
7+<list />
docs/using/setup.md+2−2
@@ -85,8 +85,8 @@ which indicates the command was processed.
85
85
86We go into much greater detail about using each of these components in our walkthroughs:
86We go into much greater detail about using each of these components in our walkthroughs:
87
87
88−<list dataPath="/docs/walkthroughs"></list>
88+<list src="."></list>
89
89
90With your Urbit up and running you know enough to start learning to program:
90With your Urbit up and running you know enough to start learning to program:
91
91
92−<list dataPath="/docs/deep-dives"></list>
92+<list src="../programming/deep"></list>
docs/using/web.md+7−7
@@ -42,7 +42,7 @@ Now modify `/home/web/test.md` to list the children using the `<list/>` JSX:
42
42
43 This is a simple markdown file.
43 This is a simple markdown file.
44
44
45− <div><list /></div>
45+ <div><list / />
46
46
47To view your file as raw `md`:
47To view your file as raw `md`:
48
48
@@ -148,31 +148,31 @@ For those familiar with React / Flux each JSX tag corresponds to a component in
148
148
149### `<list>`
149### `<list>`
150
150
151−Example: `<list dataPath="/posts" titlesOnly="true"></list>`
151+Example: `<list src="/posts" titlesOnly="true" />`
152
152
153Creates a list of children at a path. Defaults to the current path.
153Creates a list of children at a path. Defaults to the current path.
154
154
155Optional properties:
155Optional properties:
156
156
157−- `dataPath`: Path to load kids from.
157+- `src`: Path to load kids from.
158- `titlesOnly`: Only show the 'title' which is either the filename or the first h1.
158- `titlesOnly`: Only show the 'title' which is either the filename or the first h1.
159- `sortBy`: Can be `date` if items have a `date` YAML.
159- `sortBy`: Can be `date` if items have a `date` YAML.
160- `className`: Class to be assigned to the container.
160- `className`: Class to be assigned to the container.
161
161
162### `<kids>`
162### `<kids>`
163
163
164−Example: `<kids dataPath="/posts"></kids>`
164+Example: `<kids src="/posts" />`
165
165
166Includes all the children at the specified path separated by `<hr>` tags.
166Includes all the children at the specified path separated by `<hr>` tags.
167
167
168Optional properties:
168Optional properties:
169
169
170−- `dataPath`: Path to load kids from.
170+- `src`: Path to load kids from.
171- `className`: Class to be assigned to the container.
171- `className`: Class to be assigned to the container.
172
172
173### `<toc>`
173### `<toc>`
174
174
175−Example: `<toc noHeader="true"></toc>`
175+Example: `<toc noHeader="true" />`
176
176
177Creates a table of contents from the `h1` - `h6` tags on the page.
177Creates a table of contents from the `h1` - `h6` tags on the page.
178
178
@@ -244,7 +244,7 @@ Talk, for example, looks like this:
244 <script src="/~~/~/at/lib/js/urb.js" />
244 <script src="/~~/~/at/lib/js/urb.js" />
245 <script src="/talk/main.js" />
245 <script src="/talk/main.js" />
246 <link href="/talk/main.css" rel="stylesheet" />
246 <link href="/talk/main.css" rel="stylesheet" />
247− <talk></talk>
247+ <talk />
248</module>
248</module>
249```
249```
250
250