From cec3861cc9df042d45c98824aeef5491b9c463cb Mon Sep 17 00:00:00 2001 From: tony-xlh Date: Wed, 24 Jun 2026 13:18:08 +0800 Subject: [PATCH 1/2] Create copy_markdown.rb --- _plugins/copy_markdown.rb | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 _plugins/copy_markdown.rb diff --git a/_plugins/copy_markdown.rb b/_plugins/copy_markdown.rb new file mode 100644 index 00000000..982c522c --- /dev/null +++ b/_plugins/copy_markdown.rb @@ -0,0 +1,14 @@ +Jekyll::Hooks.register :site, :post_write do |site| + site.collections.each do |label, collection| + next unless label == 'articles' + collection.docs.each do |doc| + source_path = File.join(site.source, doc.relative_path) + next unless File.exist?(source_path) + + dest_path = doc.destination(site.dest).sub(/\.html$/, '.md') + dest_dir = File.dirname(dest_path) + FileUtils.mkdir_p(dest_dir) + FileUtils.cp(source_path, dest_path) + end + end +end From f0b8fc86cebbf39df315a6d07df64056652a9035 Mon Sep 17 00:00:00 2001 From: tony-xlh Date: Wed, 24 Jun 2026 13:21:34 +0800 Subject: [PATCH 2/2] use md files in llms.txt --- llms.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llms.txt b/llms.txt index d6fe83c5..253a61dd 100644 --- a/llms.txt +++ b/llms.txt @@ -7,7 +7,7 @@ sitemap: false ## Docs -{% for article in site.articles %}- [{{article.title}}](https://www.dynamsoft.com{{ article.url | relative_url }}): {{ article.description }} +{% for article in site.articles %}- [{{article.title}}](https://www.dynamsoft.com{{ article.url | relative_url | replace: '.html', '.md' }}): {{ article.description }} {% endfor %} ## Samples