small updates
This commit is contained in:
1
TODO
1
TODO
@@ -1 +1,2 @@
|
||||
Make this static ( cannot find core.std everywhere )
|
||||
Add hotreloading
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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.")
|
||||
|
||||
Reference in New Issue
Block a user