spliced content into another repo

This commit is contained in:
UndeadMaelys 2022-05-05 11:29:09 +02:00
parent 0154cc5e1b
commit d4577b988c
4 changed files with 9 additions and 5 deletions

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "heonian-content"]
path = heonian-content
url = git@ssh.succubi.services:lustlion/heonian-content.git

1
heonian-content Submodule

@ -0,0 +1 @@
Subproject commit 19de5190c0876edbeb307f09b540a2c4d111b783

View File

@ -21,9 +21,9 @@ end
function lesson(number) function lesson(number)
number = tonumber(number) number = tonumber(number)
local t = scandir(dir.."/lessons/") local t = scandir(dir.."/content/lessons/")
if t[number] then if t[number] then
dofile("lessons/"..t[number]) dofile("content/lessons/"..t[number])
else else
print("lesson not found") print("lesson not found")
end end

View File

@ -18,8 +18,8 @@ require "add_word"
require "edit_word" require "edit_word"
require "lessons" require "lessons"
data_get = "words.lua" data_get = "content/words.lua"
data_output = "words.lua" data_output = "content/words.lua"
words = dofile(data_get) words = dofile(data_get)
@ -123,7 +123,7 @@ Parameters:
else else
if arg[2] then lesson(arg[2]) if arg[2] then lesson(arg[2])
else else
print("specify a lesson",table.unpack(getFormattedLessonNames(dir.."/lessons/"))) print("specify a lesson",table.unpack(getFormattedLessonNames(dir.."/content/lessons/")))
end end
end end
return return