From 0c0da1bdf8f0b9bc3e90b1426595d0d5c9222685 Mon Sep 17 00:00:00 2001 From: NotTheDr01ds <32344964+NotTheDr01ds@users.noreply.github.com> Date: Wed, 1 Jan 2025 08:39:30 -0500 Subject: [PATCH 1/2] Frontmatter to disable GitHub on command pages --- make_docs.nu | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/make_docs.nu b/make_docs.nu index 6885de7923d..d3421b4294e 100644 --- a/make_docs.nu +++ b/make_docs.nu @@ -75,6 +75,8 @@ def make_docs [ # Various commands for working with bits. # usage: | # Various commands for working with bits. +# editLink: false # turns off the "Edit this page in GitHub for commands" +# contributors: false # turns off the contributors list since it is not accurate for commands # --- # ``` # - the `dfr min` command in `commands/docs/dfr_min.md` @@ -92,6 +94,8 @@ def make_docs [ # usage: | # Creates a min expression # Aggregates columns to their min value +# editLink: false +# contributors: false # --- # ``` def command-frontmatter [commands_group, command_name] { @@ -130,6 +134,8 @@ version: ($nu_version) ($category_matter) usage: | ($indented_usage) +editLink: false +contributors: false ---" } @@ -375,7 +381,12 @@ def generate-category [category] { let safe_name = ($category | safe-path) let doc_path = (['.', 'commands', 'categories', $'($safe_name).md'] | path join) -$"# ($category | str title-case) +$"--- +editLink: false +contributors: false +--- + +# ($category | str title-case)
Command | -Description | -
---|---|
{{ command.title }} | -{{ command.frontmatter.usage }} | -
Command | +Description | +
{{ command.title }} | +{{ command.frontmatter.usage }} | +