From 50221313c577a2e9f01a3a6b12c8e54594f13126 Mon Sep 17 00:00:00 2001 From: Li Jin Date: Tue, 24 Feb 2026 00:35:05 +0800 Subject: Updated all-in-one docs. --- spec/inputs/compile_doc.yue | 6 +++++- spec/outputs/compile_doc.lua | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'spec') 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 close output = with io.open "#{outputFolder}/#{compiledFile}", "w+" \write table.concat codes close output2 = with io.open "#{docFolder}/#{docFile}", "w+" - \write table.concat docTexts, "\n" + \write (table + .concat docTexts, "\n" + \gsub "\n\n", "" + \gsub "%-%-%-.-%-%-%-\n\n", "" + \gsub ".-\n\n", "") 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 local _close_0 = output local output2 local _with_0 = io.open(tostring(docFolder) .. "/" .. tostring(docFile), "w+") - _with_0:write(table.concat(docTexts, "\n")) + _with_0:write((table.concat(docTexts, "\n"):gsub("\n\n", ""):gsub("%-%-%-.-%-%-%-\n\n", ""):gsub(".-\n\n", ""))) output2 = _with_0 local _close_1 = output2 end -- cgit v1.2.3-55-g6feb