You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/content/introduction/releasenotes/8/3.en.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,3 +22,5 @@ weight = -3
22
22
To activate it set `urlExternalCheck=true` in the your `hugo.toml``params` section.
23
23
24
24
The name of option `ignoreerror` was changed to `urlIgnoreError` in that matter. You can leave your config unchanged but will see warnings if you are using the deprecated name.
25
+
26
+
- {{% badge style="new" %}}New{{% /badge %}} The [`tree` shortcode] learned to also [format output of the `tree` command](shortcodes/tree/#tree-command-output) of your favorite operating system.
|_**<content>**_|_<empty>_| Your list as Markdown. |
64
+
|_**<content>**_|_<empty>_| Your list as Markdown or from your favorite `tree` commandline tool. |
65
65
66
66
### Item Syntax
67
67
@@ -85,46 +85,76 @@ The **NAME** can be followed by an optional pipe (`|`) to define an **ICON** and
85
85
86
86
## Examples
87
87
88
-
### Bigger example
88
+
### `tree` Command Output
89
+
90
+
Use the `tree` command of your favorite operating system and dump it right into the shortcode. Note, that the directory marker (here `C:.`) is removed if present.
91
+
92
+
````md
93
+
```tree
94
+
C:.
95
+
│ featured.png
96
+
│ index.en.md
97
+
│ index.pir.md
98
+
│ MaybeTreasure.en.txt
99
+
│ MaybeTreasure.pir.txt
100
+
│ NoTreasure.en.txt
101
+
│ Treasure.pir.txt
102
+
│
103
+
└───subdir
104
+
hugo.png
105
+
```
106
+
````
107
+
108
+
````tree
109
+
C:.
110
+
│ featured.png
111
+
│ index.en.md
112
+
│ index.pir.md
113
+
│ MaybeTreasure.en.txt
114
+
│ MaybeTreasure.pir.txt
115
+
│ NoTreasure.en.txt
116
+
│ Treasure.pir.txt
117
+
│
118
+
└───subdir
119
+
hugo.png
120
+
````
121
+
122
+
### Markdown List with Styled Items
89
123
90
124
Every possible combination
91
125
92
126
````md
93
127
```tree
94
-
- [just name](http://example.com) | folder
95
-
- Documents
96
-
- My Documents
128
+
- just names
129
+
- Document
130
+
- My Document
131
+
- [My linked Document](http://example.com)
97
132
- simple icons | folder
98
-
- Documents | folder
99
-
- My Documents | folder
100
-
- not so simple icons | file-alt | secondary
101
-
- a.png | file-alt
102
-
- a with border.png | file-alt
103
-
- mindblowing icons | fa-fw fab fa-markdown | accent
104
-
- text.md | fa-fw fab fa-markdown
105
-
- alternative text.md | fa-fw fab fa-markdown
106
-
- and now with color | fa-fw fab fa-php
133
+
- Document | file
134
+
- My Document | file
135
+
- mindblowing icons
136
+
- index.md | fa-fw fab fa-markdown
137
+
- index.html | fa-fw fab fa-html5
138
+
- and now with color
107
139
- script.php | fa-fw fab fa-markdown | purple
108
140
- alt script.php | fa-fw fab fa-markdown | #888cc4
109
141
- magic.php | fa-fw fab fa-markdown | magic
110
142
```
111
143
````
112
144
113
145
````tree
114
-
- [just name](http://example.com) | folder
115
-
- Documents
116
-
- My Documents
146
+
- just names
147
+
- Document
148
+
- My Document
149
+
- [My linked Document](http://example.com)
117
150
- simple icons | folder
118
-
- Documents | folder
119
-
- My Documents | folder
120
-
- not so simple icons | file-alt | secondary
121
-
- a.png | file-alt
122
-
- a with border.png | file-alt
123
-
- mindblowing icons | fa-fw fab fa-markdown | accent
124
-
- text.md | fa-fw fab fa-markdown
125
-
- alternative text.md | fa-fw fab fa-markdown
126
-
- and now with color | fa-fw fab fa-php
127
-
- script.php | fa-fw fab fa-php | purple
128
-
- alt script.php | fa-fw fab fa-php | #888cc4
129
-
- magic.php | fa-fw fab fa-php | magic
151
+
- Document | file
152
+
- My Document | file
153
+
- mindblowing icons
154
+
- index.md | fa-fw fab fa-markdown
155
+
- index.html | fa-fw fab fa-html5
156
+
- and now with color
157
+
- script.php | fa-fw fab fa-markdown | purple
158
+
- alt script.php | fa-fw fab fa-markdown | #888cc4
0 commit comments