From 81b44d8b3d1c38f06a5afd604f22ccce7ce8f408 Mon Sep 17 00:00:00 2001 From: Jan Jambor Date: Thu, 10 Oct 2024 14:19:12 +0200 Subject: [PATCH] update: Example exchanged for outputting folder structure. --- documentation-guidelines.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/documentation-guidelines.md b/documentation-guidelines.md index 670ac91..53ca485 100644 --- a/documentation-guidelines.md +++ b/documentation-guidelines.md @@ -37,15 +37,15 @@ drawio -x -f png -b 10 -o .png .drawio If you want to add an optional folder structure to your documentation, you can use the following command to generate a tree-like structure. ```bash -ls -R | grep ":$" | sed -e 's/:$//' -e 's/[^-][^\/]*\//--/g' -e 's/^/ /' -e 's/-/|/' +find . -type d ! -path '*/.*' | sed -e "s/[^-][^\/]*\// |/g" -e "s/|\([^ ]\)/|-\1/" ``` Example output: ```text - |-know-how - |-resources - |---diagrams - |---images - |---scripts + |-resources + | |-images + | |-diagrams + | |-scripts + |-know-how ```