Skip to content

Commit 0c0da1b

Browse files
committed
Frontmatter to disable GitHub on command pages
1 parent aaaf6fe commit 0c0da1b

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

make_docs.nu

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ def make_docs [
7575
# Various commands for working with bits.
7676
# usage: |
7777
# 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
7880
# ---
7981
# ```
8082
# - the `dfr min` command in `commands/docs/dfr_min.md`
@@ -92,6 +94,8 @@ def make_docs [
9294
# usage: |
9395
# Creates a min expression
9496
# Aggregates columns to their min value
97+
# editLink: false
98+
# contributors: false
9599
# ---
96100
# ```
97101
def command-frontmatter [commands_group, command_name] {
@@ -130,6 +134,8 @@ version: ($nu_version)
130134
($category_matter)
131135
usage: |
132136
($indented_usage)
137+
editLink: false
138+
contributors: false
133139
---"
134140
}
135141

@@ -375,7 +381,12 @@ def generate-category [category] {
375381
let safe_name = ($category | safe-path)
376382
let doc_path = (['.', 'commands', 'categories', $'($safe_name).md'] | path join)
377383

378-
$"# ($category | str title-case)
384+
$"---
385+
editLink: false
386+
contributors: false
387+
---
388+
389+
# ($category | str title-case)
379390
380391
<script>
381392
import pages from '@temp/pages'

0 commit comments

Comments
 (0)