Skip to content

Commit fa91ff5

Browse files
authored
Feat: Add trace to deprecated shortcode warnings (#341)
1 parent fd8f77a commit fa91ff5

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

layouts/shortcodes/before-you-begin.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
"sideline" "false"
66
"content" .Inner
77
) }}
8-
{{ warnf "'<before-you-begin></before-you-begin>' is being deprecated. Use generic 'call-out' shortcode instead."}}
8+
{{ warnf "'<before-you-begin></before-you-begin>' is being deprecated. Use generic 'call-out' shortcode instead. (%s)" .Position }}

layouts/shortcodes/note.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
"sideline" "false"
66
"content" .Inner
77
) }}
8-
{{ warnf "'<note></note>' is being deprecated. Use generic 'call-out' shortcode instead."}}
8+
{{ warnf "'<note></note>' is being deprecated. Use generic 'call-out' shortcode instead. (%s)" .Position }}

layouts/shortcodes/see-also.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
"sideline" "false"
66
"content" .Inner
77
) }}
8-
{{ warnf "'<see-also></see-also>' is being deprecated. Use generic 'call-out' shortcode instead."}}
8+
{{ warnf "'<see-also></see-also>' is being deprecated. Use generic 'call-out' shortcode instead. (%s)" .Position }}

layouts/shortcodes/tip.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
"sideline" "false"
66
"content" .Inner
77
) }}
8-
{{ warnf "'<tip></tip>' is being deprecated. Use generic 'call-out' shortcode instead."}}
8+
{{ warnf "'<tip></tip>' is being deprecated. Use generic 'call-out' shortcode instead. (%s)" .Position }}

0 commit comments

Comments
 (0)