small updates

This commit is contained in:
2025-11-22 10:31:45 -05:00
parent 2ecad5f439
commit edfb8f03c9
3 changed files with 4 additions and 3 deletions

1
TODO
View File

@@ -1 +1,2 @@
Make this static ( cannot find core.std everywhere )
Add hotreloading

View File

@@ -6,7 +6,7 @@ M.__index = M
function M.site_builder(header, footer)
local config = {}
local site_config = {}
local fes_mod = package.loaded.fes
if fes_mod and fes_mod.config then
config = fes_mod.config
@@ -14,7 +14,7 @@ function M.site_builder(header, footer)
site_config = config.site
end
end
local self = {
version = site_config.version or "",
title = site_config.title or "Document",

View File

@@ -32,7 +32,7 @@ function docs:func(fn, signature, desc)
return self
end
docs:func("site_builder", "fes.site_builder()", "returns a site object, a required element for this framework.")
docs:func("site_builder", "fes.site_builder() -> site", "returns a site object, a required element for this framework.")
docs:func("custom", "site:custom(content)", "adds a raw string into the site object")
docs:func("h1", "site:h1(content)", "adds a h1 tag to the site object.")
docs:func("h2", "site:h2(content)", "adds a h2 tag to the site object.")