From 4ab78c65e3e153391f5f59ac21f74b0b08d2fd8e Mon Sep 17 00:00:00 2001 From: Mahmoud-Emad Date: Wed, 22 Oct 2025 21:41:47 +0300 Subject: [PATCH 1/4] refactor: Update library paths - Remove `lib/hero` - Add `lib/hero/heromodels` --- test_basic.vsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test_basic.vsh b/test_basic.vsh index ff16ebbc..e6a7ed1b 100755 --- a/test_basic.vsh +++ b/test_basic.vsh @@ -169,7 +169,7 @@ lib/lang lib/clients lib/core lib/develop -// lib/hero +lib/hero/heromodels // lib/vfs The vfs folder is not exists on the development branch, so we need to uncomment it after merging this PR https://github.com/incubaid/herolib/pull/68 // lib/crypt ' From c99831ee9b9d4884ce5fd29a486b2d530548605b Mon Sep 17 00:00:00 2001 From: Mahmoud-Emad Date: Wed, 22 Oct 2025 21:46:57 +0300 Subject: [PATCH 2/4] feat: Add virt/kubernetes directory - Add virt/kubernetes directory - Initialize Kubernetes integration setup --- test_basic.vsh | 1 + 1 file changed, 1 insertion(+) diff --git a/test_basic.vsh b/test_basic.vsh index e6a7ed1b..b5c5dd64 100755 --- a/test_basic.vsh +++ b/test_basic.vsh @@ -194,6 +194,7 @@ rust_test.v rclone/ qdrant/ sshagent_test.v +virt/kubernetes/ ' if in_github_actions() { From 53b5ee950f72a33758e5b0a9acbe13c1972db5f5 Mon Sep 17 00:00:00 2001 From: Mahmoud-Emad Date: Thu, 23 Oct 2025 17:43:38 +0300 Subject: [PATCH 3/4] fix: Mark action element as processed - Set action element to processed after content update --- lib/data/doctree/process_includes.v | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/data/doctree/process_includes.v b/lib/data/doctree/process_includes.v index de3373ec..2ebf127a 100644 --- a/lib/data/doctree/process_includes.v +++ b/lib/data/doctree/process_includes.v @@ -45,6 +45,7 @@ pub fn (mut tree Tree) process_includes() ! { mut include_page := tree.get_page_with_pointer(page_pointer) or { continue } page.set_element_content_no_reparse(element.id, include_page.get_markdown()!)! + page.set_action_element_to_processed(element.id)! } // update indegree From 521596b29bf8e4bdd9d960da1a6b688799e32bb0 Mon Sep 17 00:00:00 2001 From: Mahmoud-Emad Date: Thu, 23 Oct 2025 17:45:33 +0300 Subject: [PATCH 4/4] refactor: Remove unused saved_content variable - Remove redundant variable `saved_content` - Simplify text concatenation logic - Comment out unused '*' character handling --- lib/data/markdown/elements/parser_paragraph.v | 22 +++++++++---------- 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/lib/data/markdown/elements/parser_paragraph.v b/lib/data/markdown/elements/parser_paragraph.v index 17816a25..dbd7f906 100644 --- a/lib/data/markdown/elements/parser_paragraph.v +++ b/lib/data/markdown/elements/parser_paragraph.v @@ -24,13 +24,12 @@ fn (mut paragraph Paragraph) paragraph_parse() ! { if mut llast is Def { if (char_ == '' || char_ == ' ' || char_ == '\n') && parser.char_prev() != '*' { if llast.content.len < 3 { - saved_content := llast.content paragraph.children.pop() mut llast2 := paragraph.children.last() if mut llast2 is Text { - llast2.content += saved_content + char_ + llast2.content += llast.content + char_ } else { - paragraph.text_new(mut paragraph.parent_doc(), saved_content + char_) + paragraph.text_new(mut paragraph.parent_doc(), llast.content + char_) } parser.next() char_ = '' @@ -47,16 +46,15 @@ fn (mut paragraph Paragraph) paragraph_parse() ! { } else if !(texttools.is_upper_text(char_) || char_ == '_') { // this means it wasn't a def, we need to add text // console.print_debug(' -- no def: ${char_}') - saved_content := llast.content paragraph.children.pop() // console.print_debug(' -- no def: ${paragraph.children.last()}') mut llast2 := paragraph.children.last() if mut llast2 is Text { llast2_content := llast2.content - llast2.content = llast2_content + saved_content + char_ + llast2.content = llast2_content + llast.content + char_ // llast2.content += llast.content + char_ } else { - paragraph.text_new(mut paragraph.parent_doc(), saved_content + char_) + paragraph.text_new(mut paragraph.parent_doc(), llast.content + char_) } parser.next() char_ = '' @@ -141,12 +139,12 @@ fn (mut paragraph Paragraph) paragraph_parse() ! { if mut llast is Text { if char_ != '' { - if char_ == '*' { - paragraph.def_new(mut paragraph.parent_doc(), '*') - parser.next() - char_ = '' - continue - } + // if char_ == '*' { + // paragraph.def_new(mut paragraph.parent_doc(), '*') + // parser.next() + // char_ = '' + // continue + // } // check for comments start for totry in ['