Skip to content

Commit 9cd7e16

Browse files
authored
fix #850, make make_docs.nu work for nu v0.77.2+ (#851)
1 parent 5dff2a1 commit 9cd7e16

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

make_docs.nu

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,7 @@ $"## Notes
163163
let $examples = (
164164
$command.examples
165165
| each { |example|
166-
let result = (
167-
$example.result
168-
| try { table --expand } catch { $in }
169-
)
166+
let result = (do -i { $example.result | try { table --expand } catch { $in } } )
170167
$"($example.description)
171168
```shell
172169
> ($example.example)
@@ -243,7 +240,7 @@ def generate-category-sidebar [unique_categories] {
243240
let sidebar_path = (['.', '.vuepress', 'configs', "sidebar", "command_categories.ts"] | path join)
244241
let list_content = (
245242
$unique_categories
246-
| each { safe-path }
243+
| each { || safe-path }
247244
| each { |category| $" '/commands/categories/($category).md',"}
248245
| str join (char newline)
249246
)

0 commit comments

Comments
 (0)