docs(flows): DoD obligatorio con user-facing surface + abrir issues 0100-0103 (taxonomia, frontmatter migration, dev_console, work dashboard)
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -110,6 +110,41 @@ func renderTypeMarkdown(t *registry.Type) string {
|
||||
return b.String()
|
||||
}
|
||||
|
||||
// renderModuleMarkdown returns a markdown card for a Module.
|
||||
func renderModuleMarkdown(m *registry.Module) string {
|
||||
var b strings.Builder
|
||||
fmt.Fprintf(&b, "# %s (module)\n\n", m.ID)
|
||||
fmt.Fprintf(&b, "- name: %s\n", m.Name)
|
||||
fmt.Fprintf(&b, "- version: %s\n", m.Version)
|
||||
fmt.Fprintf(&b, "- lang: %s\n", m.Lang)
|
||||
if len(m.Members) > 0 {
|
||||
fmt.Fprintf(&b, "- members: %s\n", strings.Join(m.Members, ", "))
|
||||
}
|
||||
if len(m.Tags) > 0 {
|
||||
fmt.Fprintf(&b, "- tags: %s\n", strings.Join(m.Tags, ", "))
|
||||
}
|
||||
if m.DirPath != "" {
|
||||
fmt.Fprintf(&b, "- dir_path: %s\n", m.DirPath)
|
||||
}
|
||||
if m.RepoURL != "" {
|
||||
fmt.Fprintf(&b, "- repo_url: %s\n", m.RepoURL)
|
||||
}
|
||||
b.WriteString("\n")
|
||||
|
||||
if m.Description != "" {
|
||||
b.WriteString(m.Description)
|
||||
b.WriteString("\n\n")
|
||||
}
|
||||
if m.Documentation != "" {
|
||||
b.WriteString(m.Documentation)
|
||||
b.WriteString("\n\n")
|
||||
}
|
||||
if m.Notes != "" {
|
||||
fmt.Fprintf(&b, "\n## notes\n\n%s\n", m.Notes)
|
||||
}
|
||||
return b.String()
|
||||
}
|
||||
|
||||
// langFence maps registry lang codes to markdown fence labels.
|
||||
func langFence(lang string) string {
|
||||
switch lang {
|
||||
|
||||
Reference in New Issue
Block a user