From 844251b2aad0ddb1ad0297e5df9346b2a445aec7 Mon Sep 17 00:00:00 2001 From: hustcer Date: Sun, 2 Apr 2023 12:47:25 +0800 Subject: [PATCH] fix #850, make `make_docs.nu` work for nu v0.77.2+ --- make_docs.nu | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/make_docs.nu b/make_docs.nu index 0eed29f4e5b..72d256535f7 100644 --- a/make_docs.nu +++ b/make_docs.nu @@ -163,10 +163,7 @@ $"## Notes let $examples = ( $command.examples | each { |example| - let result = ( - $example.result - | try { table --expand } catch { $in } - ) + let result = (do -i { $example.result | try { table --expand } catch { $in } } ) $"($example.description) ```shell > ($example.example) @@ -243,7 +240,7 @@ def generate-category-sidebar [unique_categories] { let sidebar_path = (['.', '.vuepress', 'configs', "sidebar", "command_categories.ts"] | path join) let list_content = ( $unique_categories - | each { safe-path } + | each { || safe-path } | each { |category| $" '/commands/categories/($category).md',"} | str join (char newline) )