matrix-spec/layouts/shortcodes
Kévin Commaille 3af77f0cb4
Fix the table of content for room versions (#1884)
* Fix ToC for room versions pages

Like for the cs-module shortcode, use .RenderShortcodes
instead of .Content for the rver-fragment shortcode,
so the headings are detected by Hugo.

Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>

* Change the way "this version" is detected in added-in and changed-in shortcodes

Now that we use .RenderShortcodes in the rver-fragment shortcode,
we cannot remove the output of these shortcodes dynamically
because they are replaced by a temporary placeholder due to Hugo's internals.

Instead, since the `this` parameter was only used for room version,
we always use the `v` parameter and compare with the version
provided in the page's front matter.

Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>

* Add changelog

Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>

* Add version front matter for v11

Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>

* Update changelogs/room_versions/newsfragments/1884.clarification

---------

Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
Co-authored-by: Travis Ralston <travpc@gmail.com>
2024-06-20 15:47:09 +00:00
..
boxes Add CORP headers to media repo (#1197) 2022-08-09 10:44:51 -06:00
changelog Generate ToC with Hugo rather than JavaScript (#1851) 2024-06-11 22:24:23 +01:00
added-in.html Fix the table of content for room versions (#1884) 2024-06-20 15:47:09 +00:00
changed-in.html Fix the table of content for room versions (#1884) 2024-06-20 15:47:09 +00:00
cs-module.html Generate ToC with Hugo rather than JavaScript (#1851) 2024-06-11 22:24:23 +01:00
definition.html Fix generated HTML (#1880) 2024-06-20 09:42:40 +01:00
event-fields.html Simplify uses of resolve-refs partial (#1773) 2024-04-09 18:06:53 +01:00
event-group.html Fix event-group shortcode for changes in resolve-refs partial (#1754) 2024-03-19 19:02:13 +00:00
event.html Add support for $ref URIs containing fragments in OpenAPI definitions and JSON schemas (#1751) 2024-03-19 14:50:49 +00:00
http-api.html Allow to specify a prefix for generated HTML IDs of API endpoints (#1882) 2024-06-20 15:39:50 +00:00
msgtypes.html Add support for $ref URIs containing fragments in OpenAPI definitions and JSON schemas (#1751) 2024-03-19 14:50:49 +00:00
proposal-tables.html Fix tab/spaces mix 2021-08-27 19:16:42 +01:00
rver-fragment.html Fix the table of content for room versions (#1884) 2024-06-20 15:47:09 +00:00
sas-emojis.html Replace sas-emojis template 2021-01-22 14:31:39 -08:00