large changes

This commit is contained in:
2025-12-26 10:06:23 -05:00
parent 9d7dbc31ca
commit e4eb7d62e4
15 changed files with 119 additions and 90 deletions

22
modules/doc/doc.go Normal file
View File

@@ -0,0 +1,22 @@
package doc
import (
"fes/modules/config"
"fmt"
"os"
"path/filepath"
"github.com/pkg/browser"
)
func Open() error {
fmt.Println("Opening documentation in browser")
tmpFile := filepath.Join(os.TempDir(), "doc.html")
if err := os.WriteFile(tmpFile, []byte(config.Doc), 0644); err != nil {
return err
}
return browser.OpenFile(tmpFile)
}