doc: first

This commit is contained in:
2025-12-14 19:40:55 -05:00
parent 3cfc9b4aed
commit 1427d0d780
5 changed files with 507 additions and 45 deletions

View File

@@ -6,6 +6,7 @@ import (
)
var Core embed.FS
var Doc string
var Port *int
var Color *bool

View File

@@ -1,6 +1,7 @@
package doc
import (
"fes/src/config"
"fmt"
"os"
"path/filepath"
@@ -12,12 +13,8 @@ func Open() error {
fmt.Println("Opening documentation in browser")
tmpFile := filepath.Join(os.TempDir(), "doc.html")
content := `<html><body><pre>
This feature is not implemented yet. It will be once the doc site
is up and running, for now read through the core/ files and examples.
</pre></body></html>`
if err := os.WriteFile(tmpFile, []byte(content), 0644); err != nil {
if err := os.WriteFile(tmpFile, []byte(config.Doc), 0644); err != nil {
return err
}