From 51cb8663bade17c392fcf0f8ef0c674723563535 Mon Sep 17 00:00:00 2001 From: Federico Agostini <43784886+Agos95@users.noreply.github.com> Date: Sun, 28 Aug 2022 00:25:35 +0200 Subject: [PATCH] docs: add comments to document shortcode params (#2796) --- .../wowchemy/layouts/shortcodes/audio.html | 12 ++++++ .../wowchemy/layouts/shortcodes/callout.html | 11 ++++++ .../wowchemy/layouts/shortcodes/chart.html | 12 +++++- modules/wowchemy/layouts/shortcodes/cite.html | 11 ++++++ modules/wowchemy/layouts/shortcodes/cta.html | 19 +++++++++ .../layouts/shortcodes/emoji_list.html | 4 ++ .../wowchemy/layouts/shortcodes/figure.html | 39 ++++++++++++++++++- .../wowchemy/layouts/shortcodes/gallery.html | 15 ++++++- .../wowchemy/layouts/shortcodes/gdocs.html | 9 +++++ modules/wowchemy/layouts/shortcodes/hl.html | 4 ++ modules/wowchemy/layouts/shortcodes/icon.html | 15 +++++++ .../layouts/shortcodes/list_categories.html | 4 ++ .../layouts/shortcodes/list_children.html | 9 +++++ .../layouts/shortcodes/list_tags.html | 4 ++ modules/wowchemy/layouts/shortcodes/math.html | 4 ++ .../wowchemy/layouts/shortcodes/mention.html | 9 +++++ .../wowchemy/layouts/shortcodes/spoiler.html | 13 +++++++ .../layouts/shortcodes/staticref.html | 12 +++++- .../wowchemy/layouts/shortcodes/table.html | 15 +++++++ modules/wowchemy/layouts/shortcodes/toc.html | 13 +++++++ .../wowchemy/layouts/shortcodes/video.html | 20 +++++++++- 21 files changed, 249 insertions(+), 5 deletions(-) diff --git a/modules/wowchemy/layouts/shortcodes/audio.html b/modules/wowchemy/layouts/shortcodes/audio.html index 3ef93b66..85f4dda0 100644 --- a/modules/wowchemy/layouts/shortcodes/audio.html +++ b/modules/wowchemy/layouts/shortcodes/audio.html @@ -2,6 +2,18 @@ {{/* Load audio from page dir falling back to media library at `assets/media/` and then to remote URI. */}} {{/* Supports primarily MP3 and MP4. */}} +{{/* + Docs: https://wowchemy.com/docs/content/writing-markdown-latex/#audio + + Parameters + ---------- + src : + Path to file or url for the audio file. + If a local file, first it is searched in the page directory, and then in `assets/media/` . + id : optional + Custom id "audio-{id}" to associate to the