aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2021-04-06 11:11:56 -0400
committerMarshall Lochbaum <mwlochbaum@gmail.com>2021-04-06 11:15:24 -0400
commita93ebb94f939c1c6ab3dcd78ee17a1d882355289 (patch)
treec862108749790fd0eca7e6dafcd4206f4a34d8fd
parentabd5b9db2c08c7c9e9e622e9e78ef5f42815b6b0 (diff)
Change dzref to just pass 1↓•args to the script, not execute additional code
-rwxr-xr-xdzref4
-rwxr-xr-xgendocs2
-rw-r--r--md.bqn2
3 files changed, 5 insertions, 3 deletions
diff --git a/dzref b/dzref
index 7369415c..31a4bc37 100755
--- a/dzref
+++ b/dzref
@@ -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
}
diff --git a/gendocs b/gendocs
index 4853e624..7eb35844 100755
--- a/gendocs
+++ b/gendocs
@@ -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:$#}
diff --git a/md.bqn b/md.bqn
index a345e8c7..dd24f240 100644
--- a/md.bqn
+++ b/md.bqn
@@ -659,3 +659,5 @@ ConvertFile ← {
front ← head ∾○(∾⟜lf) nav
("docs/"∾fileout) •FChars front ∾ out
}
+
+ConvertFile¨ •args