Unified · Split
| @@ -1,3 +1,4 @@ | |||
| 1 | _util | 1 | _util |
| 2 | _live | 2 | _live |
| 3 | _site | 3 | _site |
| 4 | css | ||
| @@ -16,6 +16,7 @@ export: db · 15 unmodified lines | |||
| 16 | mkdir -p _site/$(WIKI_PATH) | 16 | mkdir -p _site/$(WIKI_PATH) |
| 17 | weewiki sync | 17 | weewiki sync |
| 18 | weewiki export | 18 | weewiki export |
| 19 | rsync -rvt _img _site/$(WIKI_PATH)/ | ||
| 19 | mv mkdb.janet mkdb.janet.old | 20 | mv mkdb.janet mkdb.janet.old |
| 20 | weewiki dump mkdb.janet | 21 | weewiki dump mkdb.janet |
| 21 | 22 | ||
| @@ -26,8 +27,10 @@ dump: · 4 unmodified lines | |||
| 26 | weewiki dump mkdb.janet | 27 | weewiki dump mkdb.janet |
| 27 | 28 | ||
| 28 | transfer: | 29 | transfer: |
| 30 | $(RM) -r _live/$(WIKI_PATH) | ||
| 29 | mkdir -p _live/$(WIKI_PATH) | 31 | mkdir -p _live/$(WIKI_PATH) |
| 30 | cp -r _site/$(WIKI_PATH)/* _live/$(WIKI_PATH) | 32 | rsync -rvt _site/$(WIKI_PATH)/* _live/$(WIKI_PATH) |
| 33 | rsync -rvt _img _live/$(WIKI_PATH)/ | ||
| 31 | 34 | ||
| 32 | server: | 35 | server: |
| 33 | weewiki server - $(PORT) | 36 | weewiki server - $(PORT) |
Binary file not shown.
Binary file not shown.
Binary file not shown.
| @@ -12,7 +12,7 @@ help explain and contextualize what every single line of · 11 unmodified lines | |||
| 12 | code is doing. | 12 | code is doing. |
| 13 | 13 | ||
| 14 | The text in this wiki is licensed under the | 14 | The text in this wiki is licensed under the |
| 15 | [[https://creativecommons.org/share-your-work/public-domain/cc0/][Creatives Commons Zero]] license, otherwise | 15 | [[https://creativecommons.org/share-your-work/public-domain/cc0/][Creative Commons Zero]] license, otherwise |
| 16 | known as "CC0". | 16 | known as "CC0". |
| 17 | 17 | ||
| 18 | The tangled output is dual-licensed under MIT or | 18 | The tangled output is dual-licensed under MIT or |
| @@ -188,7 +188,7 @@ number of lower bits. This value is stored in the variable · 187 unmodified lines | |||
| 188 | 188 | ||
| 189 | @! | 189 | @! |
| 190 | #$$n = log2(M/s)$$ | 190 | #$$n = log2(M/s)$$ |
| 191 | (img "/res/wiki/osc/osc_log2.png") | 191 | (img "osc_log2.png") |
| 192 | !@ | 192 | !@ |
| 193 | 193 | ||
| 194 | Where =n= is the number of lower bits, =M= is the maximum | 194 | Where =n= is the number of lower bits, =M= is the maximum |
| @@ -354,7 +354,7 @@ linear interpolation is commonly shown as: · 159 unmodified lines | |||
| 354 | #$$ | 354 | #$$ |
| 355 | #y = (1 - \alpha) x_1 + \alpha x_2 | 355 | #y = (1 - \alpha) x_1 + \alpha x_2 |
| 356 | #$$ | 356 | #$$ |
| 357 | (img "/res/wiki/osc/osc_lerp.png") | 357 | (img "osc_lerp.png") |
| 358 | !@ | 358 | !@ |
| 359 | 359 | ||
| 360 | Where $x_1$ and $x_2$ are two values, and $\alpha$ is a | 360 | Where $x_1$ and $x_2$ are two values, and $\alpha$ is a |
| @@ -385,7 +385,7 @@ shave off a multiply operation. · 24 unmodified lines | |||
| 385 | # &= x_1 + (x_2 - x_1)\alpha | 385 | # &= x_1 + (x_2 - x_1)\alpha |
| 386 | # } | 386 | # } |
| 387 | # $$ | 387 | # $$ |
| 388 | (img "/res/wiki/osc/osc_lerp_simp.png") | 388 | (img "osc_lerp_simp.png") |
| 389 | !@ | 389 | !@ |
| 390 | 390 | ||
| 391 | Which then gets translated to the following C code below. | 391 | Which then gets translated to the following C code below. |
| @@ -1,5 +1,5 @@ | |||
| 1 | (def ww-dir "_site/wiki") | 1 | (def ww-dir "_site/sndkit") |
| 2 | (def webroot "/wiki") | 2 | (def webroot "/sndkit") |
| 3 | 3 | ||
| 4 | (defn pgexists? (name) | 4 | (defn pgexists? (name) |
| 5 | (var db (ww-db)) | 5 | (var db (ww-db)) |
| @@ -42,6 +42,7 @@ · 36 unmodified lines | |||
| 42 | 42 | ||
| 43 | (string | 43 | (string |
| 44 | "<img src=\"" | 44 | "<img src=\"" |
| 45 | webroot "/_img/" | ||
| 45 | path "\"" | 46 | path "\"" |
| 46 | (if-not (nil? alt) (string " alt=\"" alt "\"")) | 47 | (if-not (nil? alt) (string " alt=\"" alt "\"")) |
| 47 | ">"))) | 48 | ">"))) |