refactor k to generate posters from compiled definitions

**please review**
extract constant string ```"kdoc"```?