change "hide" to "unlisted"
Marco Andronaco andronacomarco@gmail.com
Fri, 04 Oct 2024 10:11:26 +0200
4 files changed,
5 insertions(+),
5 deletions(-)
M
config/config.go
→
config/config.go
@@ -13,8 +13,8 @@ Repo struct {
ScanPath string `yaml:"scanPath"` Readme []string `yaml:"readme"` MainBranch []string `yaml:"mainBranch"` - Hide []string `yaml:"hide,omitempty"` Ignore []string `yaml:"ignore,omitempty"` + Unlisted []string `yaml:"unlisted,omitempty"` } `yaml:"repo"` Dirs struct { Templates string `yaml:"templates"`
M
readme
→
readme
@@ -60,8 +60,8 @@ traverse subdirs yet.
• dirs: use this to override the default templates and static assets. • repo.readme: readme files to look for. • repo.mainBranch: main branch names to look for. -• repo.hide: repos to hide, relative to scanPath. • repo.ignore: repos to ignore, relative to scanPath. +• repo.unlisted: repos to hide, relative to scanPath. • server.name: used for go-import meta tags and clone URLs.
M
routes/routes.go
→
routes/routes.go
@@ -41,7 +41,7 @@ infos := []info{}
for _, dir := range dirs { name := dir.Name() - if !dir.IsDir() || d.isIgnored(name) || d.isHidden(name) { + if !dir.IsDir() || d.isIgnored(name) || d.isUnlisted(name) { continue }
M
routes/util.go
→
routes/util.go
@@ -30,8 +30,8 @@ }
return } -func (d *deps) isHidden(name string) bool { - for _, i := range d.c.Repo.Hide { +func (d *deps) isUnlisted(name string) bool { + for _, i := range d.c.Repo.Unlisted { if name == i { return true }