merodi
A markdown-based static site generator.
git clone https://git.pi66.xyz/merodi
About | Files | Commits | Refs | License
refactor(lua): rename Build.HTMLPath to DocPath (html_path -> document_path)
Author: pi66
Date: 2026-09-22 00:31
commit: abc41c3c
Stat
| M | src/core/lua/build.go | 8 | +4 | -4 |
Diff
diff --git a/src/core/lua/build.go b/src/core/lua/build.go
index 46e138f..5edad0a 100644
--- a/src/core/lua/build.go
+++ b/src/core/lua/build.go
@@ -7,7 +7,7 @@ import (
type Build struct {
MDPath string
- HTMLPath string
+ DocPath string
Content string
Mode config.Mode
}
@@ -27,9 +27,9 @@ func (self *Lua) registerBuild() {
func() string { return self.Build.MDPath },
func(v string) { self.Build.MDPath = v },
))
- dataTable.RawSetString("html_path", self.makeGetSetTable(
- func() string { return self.Build.HTMLPath },
- func(v string) { self.Build.HTMLPath = v },
...
Show all
Show less
diff --git a/src/core/lua/build.go b/src/core/lua/build.go
index 46e138f..5edad0a 100644
--- a/src/core/lua/build.go
+++ b/src/core/lua/build.go
@@ -7,7 +7,7 @@ import (
type Build struct {
MDPath string
- HTMLPath string
+ DocPath string
Content string
Mode config.Mode
}
@@ -27,9 +27,9 @@ func (self *Lua) registerBuild() {
func() string { return self.Build.MDPath },
func(v string) { self.Build.MDPath = v },
))
- dataTable.RawSetString("html_path", self.makeGetSetTable(
- func() string { return self.Build.HTMLPath },
- func(v string) { self.Build.HTMLPath = v },
...
diff --git a/src/core/lua/build.go b/src/core/lua/build.go
index 46e138f..5edad0a 100644
--- a/src/core/lua/build.go
+++ b/src/core/lua/build.go
@@ -7,7 +7,7 @@ import (
type Build struct {
MDPath string
- HTMLPath string
+ DocPath string
Content string
Mode config.Mode
}
@@ -27,9 +27,9 @@ func (self *Lua) registerBuild() {
func() string { return self.Build.MDPath },
func(v string) { self.Build.MDPath = v },
))
- dataTable.RawSetString("html_path", self.makeGetSetTable(
- func() string { return self.Build.HTMLPath },
- func(v string) { self.Build.HTMLPath = v },
+ dataTable.RawSetString("document_path", self.makeGetSetTable(
+ func() string { return self.Build.DocPath },
+ func(v string) { self.Build.DocPath = v },
))
self.Merodi.RawSetString("build", dataTable)