History

initial export working

Paul Batchelor committed 6 years ago

Commit 71a8b511 parent 54be2ea8 files · +10 −5Browse files

Unified · Split

8 files
  1. .gitignore +2 −1
  2. Makefile +4 −1
  3. _img/osc_lerp.png +0 −0
  4. _img/osc_lerp_simp.png +0 −0
  5. _img/osc_log2.png +0 −0
  6. index.org +1 −1
  7. osc.org +3 −3
  8. weewiki.janet +3 −2
.gitignore+2−1
@@ -1,3 +1,4 @@
11 _util
22 _live
3−_site
3+_site
4+css
Makefile+4−1
@@ -16,6 +16,7 @@ export: db · 15 unmodified lines
1616 mkdir -p _site/$(WIKI_PATH)
1717 weewiki sync
1818 weewiki export
19+ rsync -rvt _img _site/$(WIKI_PATH)/
1920 mv mkdb.janet mkdb.janet.old
2021 weewiki dump mkdb.janet
2122
@@ -26,8 +27,10 @@ dump: · 4 unmodified lines
2627 weewiki dump mkdb.janet
2728
2829 transfer:
30+ $(RM) -r _live/$(WIKI_PATH)
2931 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)/
3134
3235 server:
3336 weewiki server - $(PORT)
_img/osc_lerp.png+0−0

Binary file not shown.

_img/osc_lerp_simp.png+0−0

Binary file not shown.

_img/osc_log2.png+0−0

Binary file not shown.

index.org+1−1
@@ -12,7 +12,7 @@ help explain and contextualize what every single line of · 11 unmodified lines
1212 code is doing.
1313
1414 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
1616 known as "CC0".
1717
1818 The tangled output is dual-licensed under MIT or
osc.org+3−3
@@ -188,7 +188,7 @@ number of lower bits. This value is stored in the variable · 187 unmodified lines
188188
189189 @!
190190 #$$n = log2(M/s)$$
191−(img "/res/wiki/osc/osc_log2.png")
191+(img "osc_log2.png")
192192 !@
193193
194194 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
354354 #$$
355355 #y = (1 - \alpha) x_1 + \alpha x_2
356356 #$$
357−(img "/res/wiki/osc/osc_lerp.png")
357+(img "osc_lerp.png")
358358 !@
359359
360360 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
385385 # &= x_1 + (x_2 - x_1)\alpha
386386 # }
387387 # $$
388−(img "/res/wiki/osc/osc_lerp_simp.png")
388+(img "osc_lerp_simp.png")
389389 !@
390390
391391 Which then gets translated to the following C code below.
weewiki.janet+3−2
@@ -1,5 +1,5 @@
1−(def ww-dir "_site/wiki")
2−(def webroot "/wiki")
1+(def ww-dir "_site/sndkit")
2+(def webroot "/sndkit")
33
44 (defn pgexists? (name)
55 (var db (ww-db))
@@ -42,6 +42,7 @@ · 36 unmodified lines
4242 (print
4343 (string
4444 "<img src=\""
45+ webroot "/_img/"
4546 path "\""
4647 (if-not (nil? alt) (string " alt=\"" alt "\""))
4748 ">")))

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t