doc: first
This commit is contained in:
@@ -6,6 +6,7 @@ import (
|
||||
)
|
||||
|
||||
var Core embed.FS
|
||||
var Doc string
|
||||
var Port *int
|
||||
var Color *bool
|
||||
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user