From 6ea692754a012ef68c30969290b2db03fa03e068 Mon Sep 17 00:00:00 2001 From: Hadi <112569860+anotherhadi@users.noreply.github.com> Date: Mon, 18 May 2026 21:28:09 +0200 Subject: [PATCH] move docs to root Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com> --- README.md | 2 +- docs.go | 2 +- {.github/docs => docs}/certificate.md | 0 {.github/docs => docs}/history.md | 0 {.github/docs => docs}/main.md | 0 {.github/docs => docs}/plugins.md | 0 {.github/docs => docs}/proxy.md | 0 internal/ui/docs/model.go | 2 +- 8 files changed, 3 insertions(+), 3 deletions(-) rename {.github/docs => docs}/certificate.md (100%) rename {.github/docs => docs}/history.md (100%) rename {.github/docs => docs}/main.md (100%) rename {.github/docs => docs}/plugins.md (100%) rename {.github/docs => docs}/proxy.md (100%) diff --git a/README.md b/README.md index 5dbcf22..939077c 100644 --- a/README.md +++ b/README.md @@ -94,7 +94,7 @@ On startup, you choose: ## Plugin System Spilltea supports plugins written in **Lua**. Plugins are loaded from `~/.config/spilltea/plugins/` by default and do not require recompilation or access to the source code. -For a full reference and examples, see the [plugin documentation](./.github/docs/plugins.md) or [plugin examples](./plugins/). +For a full reference and examples, see the [plugin documentation](./docs/plugins.md) or [plugin examples](./plugins/). ## Configuration diff --git a/docs.go b/docs.go index 2960569..00776d9 100644 --- a/docs.go +++ b/docs.go @@ -2,5 +2,5 @@ package spilltea import "embed" -//go:embed .github/docs +//go:embed docs var DocsFS embed.FS diff --git a/.github/docs/certificate.md b/docs/certificate.md similarity index 100% rename from .github/docs/certificate.md rename to docs/certificate.md diff --git a/.github/docs/history.md b/docs/history.md similarity index 100% rename from .github/docs/history.md rename to docs/history.md diff --git a/.github/docs/main.md b/docs/main.md similarity index 100% rename from .github/docs/main.md rename to docs/main.md diff --git a/.github/docs/plugins.md b/docs/plugins.md similarity index 100% rename from .github/docs/plugins.md rename to docs/plugins.md diff --git a/.github/docs/proxy.md b/docs/proxy.md similarity index 100% rename from .github/docs/proxy.md rename to docs/proxy.md diff --git a/internal/ui/docs/model.go b/internal/ui/docs/model.go index 621f281..50b2227 100644 --- a/internal/ui/docs/model.go +++ b/internal/ui/docs/model.go @@ -19,7 +19,7 @@ import ( ) func readDoc(name string) string { - b, _ := spilltea.DocsFS.ReadFile(".github/docs/" + name) + b, _ := spilltea.DocsFS.ReadFile("./docs/" + name) return string(b) }