aboutsummaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2026-02-24 00:35:05 +0800
committerLi Jin <dragon-fly@qq.com>2026-02-24 00:35:05 +0800
commit50221313c577a2e9f01a3a6b12c8e54594f13126 (patch)
treec2e45b3a7d2392d6cbb5aea9b7de4e2d35b03f69 /spec
parent52974cf6d560c123ecfcb20963e60e6caac87828 (diff)
downloadyuescript-50221313c577a2e9f01a3a6b12c8e54594f13126.tar.gz
yuescript-50221313c577a2e9f01a3a6b12c8e54594f13126.tar.bz2
yuescript-50221313c577a2e9f01a3a6b12c8e54594f13126.zip
Updated all-in-one docs.v0.33.2
Diffstat (limited to 'spec')
-rw-r--r--spec/inputs/compile_doc.yue6
-rw-r--r--spec/outputs/compile_doc.lua2
2 files changed, 6 insertions, 2 deletions
diff --git a/spec/inputs/compile_doc.yue b/spec/inputs/compile_doc.yue
index 161c077..c26fced 100644
--- a/spec/inputs/compile_doc.yue
+++ b/spec/inputs/compile_doc.yue
@@ -61,5 +61,9 @@ for [compiledFile, docFile, docFiles] in *docs
61 close output = with io.open "#{outputFolder}/#{compiledFile}", "w+" 61 close output = with io.open "#{outputFolder}/#{compiledFile}", "w+"
62 \write table.concat codes 62 \write table.concat codes
63 close output2 = with io.open "#{docFolder}/#{docFile}", "w+" 63 close output2 = with io.open "#{docFolder}/#{docFile}", "w+"
64 \write table.concat docTexts, "\n" 64 \write (table
65 .concat docTexts, "\n"
66 \gsub "<img .-/>\n\n", ""
67 \gsub "%-%-%-.-%-%-%-\n\n", ""
68 \gsub "<YueDisplay>.-</YueDisplay>\n\n", "")
65 69
diff --git a/spec/outputs/compile_doc.lua b/spec/outputs/compile_doc.lua
index ad1b065..e8fd719 100644
--- a/spec/outputs/compile_doc.lua
+++ b/spec/outputs/compile_doc.lua
@@ -120,7 +120,7 @@ for _index_0 = 1, #docs do
120 local _close_0 <close> = output 120 local _close_0 <close> = output
121 local output2 121 local output2
122 local _with_0 = io.open(tostring(docFolder) .. "/" .. tostring(docFile), "w+") 122 local _with_0 = io.open(tostring(docFolder) .. "/" .. tostring(docFile), "w+")
123 _with_0:write(table.concat(docTexts, "\n")) 123 _with_0:write((table.concat(docTexts, "\n"):gsub("<img .-/>\n\n", ""):gsub("%-%-%-.-%-%-%-\n\n", ""):gsub("<YueDisplay>.-</YueDisplay>\n\n", "")))
124 output2 = _with_0 124 output2 = _with_0
125 local _close_1 <close> = output2 125 local _close_1 <close> = output2
126end 126end