From 2258d8631b4c29c5dd3e481c422d50630504ff79 Mon Sep 17 00:00:00 2001 From: William Melody Date: Sat, 12 Oct 2024 16:39:40 -0700 Subject: [PATCH] Show `browse` support link by default when there are more than 40 notebooks. --- README.md | 4 ++-- docs/index.markdown | 4 ++-- nb | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index dd81f5f1..19cd7e4a 100644 --- a/README.md +++ b/README.md @@ -9284,9 +9284,9 @@ Supported Values: 'accept', 'bash', 'nc', 'ncat', netcat', 'socat' ##### `$NB_BROWSE_SUPPORT_LINKS` ```text -Default: '0' +Default: '1' -Set to '1' to show the 'Donate' and 'Sponsor' links in `nb browse`. +Set to '0' to show the 'Donate' and 'Sponsor' links in `nb browse`. Supported Values: '0' '1' ``` diff --git a/docs/index.markdown b/docs/index.markdown index d889842f..6186ac4f 100644 --- a/docs/index.markdown +++ b/docs/index.markdown @@ -9290,9 +9290,9 @@ Supported Values: 'accept', 'bash', 'nc', 'ncat', netcat', 'socat' ##### `$NB_BROWSE_SUPPORT_LINKS` ```text -Default: '0' +Default: '1' -Set to '1' to show the 'Donate' and 'Sponsor' links in `nb browse`. +Set to '0' to show the 'Donate' and 'Sponsor' links in `nb browse`. Supported Values: '0' '1' ``` diff --git a/nb b/nb index fb4c04a6..2311af8b 100755 --- a/nb +++ b/nb @@ -21292,8 +21292,8 @@ HEREDOC cat - if ((${NB_BROWSE_SUPPORT_LINKS:-0})) && - ((${#_notebook_names[@]} - 20)) + if ((${NB_BROWSE_SUPPORT_LINKS:-1})) && + ((${#_notebook_names[@]} - 40)) then printf "
" printf "Sponsor\\n"