update: Example exchanged for outputting folder structure.
This commit is contained in:
parent
0a33147adf
commit
81b44d8b3d
1 changed files with 6 additions and 6 deletions
|
|
@ -37,15 +37,15 @@ drawio -x -f png -b 10 -o <output>.png <file>.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
|
||||
| |-images
|
||||
| |-diagrams
|
||||
| |-scripts
|
||||
|-know-how
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue