small updates
This commit is contained in:
1
TODO
1
TODO
@@ -1 +1,2 @@
|
|||||||
Make this static ( cannot find core.std everywhere )
|
Make this static ( cannot find core.std everywhere )
|
||||||
|
Add hotreloading
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ M.__index = M
|
|||||||
function M.site_builder(header, footer)
|
function M.site_builder(header, footer)
|
||||||
local config = {}
|
local config = {}
|
||||||
local site_config = {}
|
local site_config = {}
|
||||||
|
|
||||||
local fes_mod = package.loaded.fes
|
local fes_mod = package.loaded.fes
|
||||||
if fes_mod and fes_mod.config then
|
if fes_mod and fes_mod.config then
|
||||||
config = fes_mod.config
|
config = fes_mod.config
|
||||||
@@ -14,7 +14,7 @@ function M.site_builder(header, footer)
|
|||||||
site_config = config.site
|
site_config = config.site
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
local self = {
|
local self = {
|
||||||
version = site_config.version or "",
|
version = site_config.version or "",
|
||||||
title = site_config.title or "Document",
|
title = site_config.title or "Document",
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ function docs:func(fn, signature, desc)
|
|||||||
return self
|
return self
|
||||||
end
|
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("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("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.")
|
docs:func("h2", "site:h2(content)", "adds a h2 tag to the site object.")
|
||||||
|
|||||||
Reference in New Issue
Block a user