diff options
| author | Marshall Lochbaum <mwlochbaum@gmail.com> | 2021-04-06 11:11:56 -0400 |
|---|---|---|
| committer | Marshall Lochbaum <mwlochbaum@gmail.com> | 2021-04-06 11:15:24 -0400 |
| commit | a93ebb94f939c1c6ab3dcd78ee17a1d882355289 (patch) | |
| tree | c862108749790fd0eca7e6dafcd4206f4a34d8fd | |
| parent | abd5b9db2c08c7c9e9e622e9e78ef5f42815b6b0 (diff) | |
Change dzref to just pass 1↓•args to the script, not execute additional code
| -rwxr-xr-x | dzref | 4 | ||||
| -rwxr-xr-x | gendocs | 2 | ||||
| -rw-r--r-- | md.bqn | 2 |
3 files changed, 5 insertions, 3 deletions
@@ -91,10 +91,10 @@ _withRef ← ˙ pre ← E_proc¨ lf((⊢-˜¬×+`)∘=⊔⊢)impl ExecFile←{ src ← E_nodef¨ •FLines 𝕩 - ⟨⟨⟩,"",(∨`⌾⌽'/'=𝕩)/𝕩⟩ Raw ∾ ∾⟜lf¨ src + ((•path⊸∾⌾⊑(2∾˜∧`⌾⌽'/'≠𝕩)⊔𝕩)∾⟨𝕨⟩) Raw ∾ ∾⟜lf¨ src } _withRef ↩ {𝔽∘E_nodef⊘(𝔽⟜E_nodef)} X↩Raw _withRef Raw ∾ ∾⟜lf¨ pre - ≠◶(X˙)‿{ExecFile ⊑𝕩}‿{ExecFile ⊑𝕩 ⋄ X 1⊑𝕩} •args + (1⊸↓ ExecFile ⊑) •args } @@ -2,4 +2,4 @@ # Generate HTML files from markdown ones # Argument gives specific files if present; otherwise convert everything -./dzref md.bqn "ConvertFile¨ (¬×+\`)⊸-∘=⟜' '⊸⊔ \"$(echo ${1-*.md */*.md} ${@:2:$#})\"" +./dzref md.bqn ${1-*.md */*.md} ${@:2:$#} @@ -659,3 +659,5 @@ ConvertFile ← { front ← head ∾○(∾⟜lf) nav ("docs/"∾fileout) •FChars front ∾ out } + +ConvertFile¨ •args |
