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 ```