diff --git a/config/board_sample.md b/config/board_sample.md index bc01850..0e35339 100644 --- a/config/board_sample.md +++ b/config/board_sample.md @@ -22,6 +22,7 @@ check it out: https://github.com/boolean-maybe/tiki - [x] AI native - [x] rich **Markdown** format +![Markdown](markdown.png) ## Git managed `tikis` (short for tickets) are just **Markdown** files in your repository diff --git a/config/index.md b/config/index.md index d8316d1..5b0ed37 100644 --- a/config/index.md +++ b/config/index.md @@ -18,6 +18,8 @@ Press `Tab/Shift-Tab` to select below links and `Enter` to open: - [Tables](#tables) - [Task Lists](#task-lists) +![Markdown Support](markdown.png) + ## Introduction This is a wiki-style documentation called `doki` saved as Markdown files alongside the project diff --git a/config/markdown.png b/config/markdown.png new file mode 100644 index 0000000..c845f7f Binary files /dev/null and b/config/markdown.png differ diff --git a/config/system.go b/config/system.go index 176a61a..ccff9e7 100644 --- a/config/system.go +++ b/config/system.go @@ -41,6 +41,9 @@ var dokiLinked string //go:embed default_workflow.yaml var defaultWorkflowYAML string +//go:embed markdown.png +var markdownPNG []byte + // GenerateRandomID generates a 6-character random alphanumeric ID (lowercase) func GenerateRandomID() string { const alphabet = "abcdefghijklmnopqrstuvwxyz0123456789" @@ -131,6 +134,20 @@ func BootstrapSystem() error { } createdFiles = append(createdFiles, linkedPath) + // Copy markdown.png to doki directory + dokiMarkdownPNGPath := filepath.Join(dokiDir, "markdown.png") + if err := os.WriteFile(dokiMarkdownPNGPath, markdownPNG, 0644); err != nil { + return fmt.Errorf("write doki markdown.png: %w", err) + } + createdFiles = append(createdFiles, dokiMarkdownPNGPath) + + // Copy markdown.png to task directory + tikiMarkdownPNGPath := filepath.Join(taskDir, "markdown.png") + if err := os.WriteFile(tikiMarkdownPNGPath, markdownPNG, 0644); err != nil { + return fmt.Errorf("write tiki markdown.png: %w", err) + } + createdFiles = append(createdFiles, tikiMarkdownPNGPath) + // Write default config.yaml defaultConfig := `logging: level: error