@@ -75,6 +75,8 @@ def make_docs [
75
75
# Various commands for working with bits.
76
76
# usage: |
77
77
# Various commands for working with bits.
78
+ # editLink: false # turns off the "Edit this page in GitHub for commands"
79
+ # contributors: false # turns off the contributors list since it is not accurate for commands
78
80
# ---
79
81
# ```
80
82
# - the `dfr min` command in `commands/docs/dfr_min.md`
@@ -92,6 +94,8 @@ def make_docs [
92
94
# usage: |
93
95
# Creates a min expression
94
96
# Aggregates columns to their min value
97
+ # editLink: false
98
+ # contributors: false
95
99
# ---
96
100
# ```
97
101
def command-frontmatter [commands_group , command_name ] {
@@ -130,6 +134,8 @@ version: ($nu_version)
130
134
($category_matter )
131
135
usage: |
132
136
($indented_usage )
137
+ editLink: false
138
+ contributors: false
133
139
---"
134
140
}
135
141
@@ -375,7 +381,12 @@ def generate-category [category] {
375
381
let safe_name = ($category | safe-path )
376
382
let doc_path = ([' .' , ' commands' , ' categories' , $' ($safe_name ).md' ] | path join )
377
383
378
- $" # ($category | str title-case )
384
+ $" ---
385
+ editLink: false
386
+ contributors: false
387
+ ---
388
+
389
+ # ($category | str title-case )
379
390
380
391
<script>
381
392
import pages from '@temp/pages'
@@ -392,14 +403,18 @@ $"# ($category | str title-case)
392
403
</script>
393
404
394
405
<table>
395
- <tr>
396
- <th>Command</th>
397
- <th>Description</th>
398
- </tr>
399
- <tr v-for=\" command in commands\" >
400
- <td><a :href=\" $withBase\( command.path\)\" >{{ command.title }}</a></td>
401
- <td style=\" white-space: pre-wrap;\" >{{ command.frontmatter.usage }}</td>
402
- </tr>
406
+ <thead>
407
+ <tr>
408
+ <th>Command</th>
409
+ <th>Description</th>
410
+ </tr>
411
+ </thead>
412
+ <tbody>
413
+ <tr v-for=\" command in commands\" >
414
+ <td><a :href=\" $withBase\( command.path\)\" >{{ command.title }}</a></td>
415
+ <td style=\" white-space: pre-wrap;\" >{{ command.frontmatter.usage }}</td>
416
+ </tr>
417
+ </tbody>
403
418
</table>
404
419
"
405
420
| save -- raw -- force $doc_path
0 commit comments