add images to init docs

This commit is contained in:
booleanmaybe 2026-03-06 22:13:14 -05:00
parent d9c996f303
commit 2b0d3c9544
4 changed files with 20 additions and 0 deletions

View file

@ -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

View file

@ -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

BIN
config/markdown.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

View file

@ -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