Commit 25b02747 authored by jan.koester's avatar jan.koester
Browse files

test

parent 8a2e8022
Loading
Loading
Loading
Loading
+10 −0
Changes for debian/changelog: 10 added lines, 0 removed lines.
Original line number Diff line number Diff line
blogi (20260707+4) unstable; urgency=medium

  * blogi-editor: temporary debug logging in loadDocumentTreeFromXml/
    loadChildrenFromXml/collectLlmsBlocks to diagnose why the "computer"
    static page's llms.txt only ever captures the first top-level widget's
    text, despite the same document's rendered HTML being complete —
    to be reverted once root cause is found.

 -- Jan Koester <jan.koester@tuxist.de>  Tue, 07 Jul 2026 19:15:00 +0200

blogi (20260707+3) unstable; urgency=medium

  * blogi-editor: move llms.txt generation from a central tag-name dispatch
+9 −0
Changes for editor/src/webedit_api.cpp: 9 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -479,6 +479,9 @@ void webedit::Api::loadDocumentTreeFromXml(DocumentState &doc, const std::string
        auto *el = createPluginByName(typeName,
                                      doc,
                                      typeIdAttr ? std::string(typeIdAttr) : std::string());
        std::cerr << "[llms-debug] load TOP <" << typeName << "> type_id="
                  << (typeIdAttr ? typeIdAttr : "(none)")
                  << " -> " << (el ? "OK" : "FAILED, skipped") << std::endl;
        if (!el)
            continue;

@@ -4712,6 +4715,9 @@ namespace {
    // have its children walked (e.g. Accordion's panel content).
    void collectLlmsBlocks(const blogi::webedit::EditPlugin *el, std::vector<std::string> &blocks) {
        for (const blogi::webedit::EditPlugin *cur = el; cur; cur = cur->nextElement()) {
            std::cerr << "[llms-debug] visit " << cur->getName()
                      << " child=" << (cur->getChildElement() ? "yes" : "no")
                      << " next=" << (cur->nextElement() ? "yes" : "no") << std::endl;
            if (auto block = cur->toLlmsBlock())
                appendBlock(blocks, *block);
            if (const blogi::webedit::EditPlugin *child = cur->getChildElement())
@@ -4877,6 +4883,9 @@ void webedit::Api::loadChildrenFromXml(tinyxml2::XMLElement *parentXml,
        auto *childEl = createPluginByName(typeName,
                           doc,
                           typeIdAttr ? std::string(typeIdAttr) : std::string());
        std::cerr << "[llms-debug] load child <" << typeName << "> type_id="
                  << (typeIdAttr ? typeIdAttr : "(none)")
                  << " -> " << (childEl ? "OK" : "FAILED, skipped") << std::endl;
        if (!childEl) continue;

        childEl->fromXmlObject(childXml);