From e3cc1c1688320f502bd7e45277a433023b1d88c2 Mon Sep 17 00:00:00 2001 From: "N0\\A" Date: Sun, 8 Mar 2026 14:18:45 +0100 Subject: [PATCH] Some fixes, .kewtignore, .kewtpreserve and .kewthide --- README.md | 10 ++++ awk/generate_sidebar.awk | 5 +- awk/headers.awk | 74 +++++++++++++---------- awk/paragraphs.awk | 2 +- kewt.sh | 126 +++++++++++++++++++++++++++++++++++---- markdown.sh | 12 ++-- site/index.md | 10 ++++ 7 files changed, 189 insertions(+), 50 deletions(-) diff --git a/README.md b/README.md index ccdb056..2b1ebdd 100644 --- a/README.md +++ b/README.md @@ -39,6 +39,8 @@ dir_indexes = true single_file_index = true flatten = false order = "" +home_name = "Home" +show_home_in_nav = true footer = "made with kewt" logo = "" display_logo = false @@ -53,6 +55,8 @@ favicon = "" - `single_file_index` if a directory has one markdown file and no `index.md`, use that file as `index.html` - `flatten` flatten sidebar directory levels - `order` comma separated file/directory name list to order the sidebar (alphabetical by default) +- `home_name` text for the home link in navigation (default: "Home") +- `show_home_in_nav` show home link in navigation (default: true) - `footer` footer html/text shown at the bottom of pages - `logo` logo image path (used in header if enabled) - `display_logo` show logo in header @@ -60,6 +64,12 @@ favicon = "" - `logo_as_favicon` use `logo` as favicon - `favicon` explicit favicon path (used when `logo_as_favicon` is false or no logo is set) +## Ignores + +- `.kewtignore`: Files/directories to ignore. If empty, the whole directory gets ignored +- `.kewthide`: Files/directories to hide from navigation but still process. Same empty rules as with ignore +- `.kewtpreserve`: Files/directories to copy but not convert markdown to html. Same empty rules again + ## Embeds - `\![link]`: diff --git a/awk/generate_sidebar.awk b/awk/generate_sidebar.awk index 50ab4b3..ee9bead 100644 --- a/awk/generate_sidebar.awk +++ b/awk/generate_sidebar.awk @@ -80,8 +80,9 @@ END { } print "