This commit is contained in:
2025-12-01 20:53:20 +01:00
parent 88680f1954
commit 690af291b5
185 changed files with 466 additions and 849 deletions

View File

@@ -1,7 +1,7 @@
module meta
import incubaid.herolib.web.doctree.client as doctree_client
import incubaid.herolib.data.markdown.tools as markdowntools
// Page represents a single documentation page
pub struct Page {
@@ -9,24 +9,6 @@ pub mut:
id string // Unique identifier: "collection:page_name"
title string // Display title (optional, extracted from markdown if empty)
description string // Brief description for metadata
questions []Question
}
pub struct Question {
pub mut:
question string
answer string
}
pub fn (mut p Page) content(client doctree_client.DocTreeClient) !string {
mut c := client.get_page_content(p.id)!
if p.title == '' {
p.title = markdowntools.extract_title(c)
}
// TODO in future should do AI
if p.description == '' {
p.description = p.title
}
return c
}

View File

@@ -1,2 +0,0 @@
module meta