mirror of
https://github.com/boolean-maybe/tiki
synced 2026-04-21 13:37:20 +00:00
add images to init docs
This commit is contained in:
parent
d9c996f303
commit
2b0d3c9544
4 changed files with 20 additions and 0 deletions
|
|
@ -22,6 +22,7 @@ check it out: https://github.com/boolean-maybe/tiki
|
|||
- [x] AI native
|
||||
- [x] rich **Markdown** format
|
||||
|
||||

|
||||
## Git managed
|
||||
|
||||
`tikis` (short for tickets) are just **Markdown** files in your repository
|
||||
|
|
|
|||
|
|
@ -18,6 +18,8 @@ Press `Tab/Shift-Tab` to select below links and `Enter` to open:
|
|||
- [Tables](#tables)
|
||||
- [Task Lists](#task-lists)
|
||||
|
||||

|
||||
|
||||
## Introduction
|
||||
|
||||
This is a wiki-style documentation called `doki` saved as Markdown files alongside the project
|
||||
|
|
|
|||
BIN
config/markdown.png
Normal file
BIN
config/markdown.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 30 KiB |
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue