Skip to content

Conversation

@jtvdez
Copy link
Contributor

@jtvdez jtvdez commented Oct 24, 2025

Adds an entry in shortcodes for <!--more--> and information on when to use it in the section over contributing to what's new.

@jtvdez jtvdez self-assigned this Oct 24, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Oct 24, 2025

Readability report

File AutomatedReadability ColemanLiau FleschKincaid FleschReadingEase GunningFog LIX SMOG
docs/sources/contribute/release-notes/index.md $${8.20\space\color{green}(Δ-0.03)}$$ $${9.58\space\color{green}(Δ-0.02)}$$ $${8.66\space\color{green}(Δ-0.02)}$$ $${60.65\space\color{green}(Δ+0.06)}$$ $${10.46\space\color{green}(Δ-0.01)}$$ $${37.82\space\color{green}(Δ-0.08)}$$ $${11.26\space\color{green}(Δ-0.02)}$$
View metric targets
Metric Range Ideal score
AutomatedReadability 6 (very easy read) to 14 (extremely difficult read) 8 or less
ColemanLiau 6 (very easy read) to 17 (extremely difficult read) 9 or less
FleschKincaid 6 (very easy read) to 17 (extremely difficult read) 8 or less
FleschReadingEase 100 (very easy read) to 0 (extremely difficult read) 70 or more
GunningFog 6 (very easy read) to 17 (extremely difficult read) 10 or less
LIX 20 (very easy read) to 60+ (extremely difficult read) 35 or less
SMOG 6 (very easy read) to 17 (extremely difficult read) 10 or less

@github-actions
Copy link
Contributor

github-actions bot commented Oct 24, 2025

💻 Deploy preview available (Add information about the more shortcode):


## More

The `<!--more-->` shortcode determines a custom cutoff for the preview of indidivudal What's New posts in list views everywhere, such as the internal feed, https://grafana.com/whats-new/, or a given releases "What's new in Grafana" post. Anything after the `<!--more-->` shortcode is only visibile after clicking the **Read More** button from the list view or by otherwise manually going to that What's New post's full URL.

Check failure

Code scanning / Vale

Did you really mean 'indidivudal'? The Grafana dictionary might not know of this word yet

Did you really mean 'indidivudal'? The Grafana dictionary might not know of this word yet

## More

The `<!--more-->` shortcode determines a custom cutoff for the preview of indidivudal What's New posts in list views everywhere, such as the internal feed, https://grafana.com/whats-new/, or a given releases "What's new in Grafana" post. Anything after the `<!--more-->` shortcode is only visibile after clicking the **Read More** button from the list view or by otherwise manually going to that What's New post's full URL.

Check failure

Code scanning / Vale

Did you really mean 'visibile'? The Grafana dictionary might not know of this word yet

Did you really mean 'visibile'? The Grafana dictionary might not know of this word yet
@jtvdez
Copy link
Contributor Author

jtvdez commented Oct 24, 2025

@jdbaldry using <!--more--> in it's description breaks the preview I get from make docs locally somewhat (getting rid of the backticks around the first instance of it actually leaves the rest of the note fairly intact but then there's a weird line break and you can't see the initial instance at all. Any suggestions? 😄 also I doubt we'd consider this properly a shortcode, more of a tag really, but this seemed like the best place to tell people that we can use it in what's new posts? Happy to make adjustments as needed, could even be contained wholly within the contributing to what's new section, but I didn't wanna go off the rails with explanation there if it can be avoided

@jtvdez
Copy link
Contributor Author

jtvdez commented Oct 24, 2025

So in response to my initial comment:

I've removed the description from shortcodes entirely and am focusing on a succinct description as a step in the contributing to what's new section (see latest commit). But the initial thing I mentioned is still happening. Leaving it as is right now until somebody can have a look but worth mentioning that it still behaves this way whether i use backticks or try to put it in a codeblock

@jdbaldry jdbaldry changed the title Add information about the more shortcode Add information about the more HTML comment Oct 27, 2025
HTML comments are stripped out of the source

Signed-off-by: Jack Baldry <[email protected]>
@jdbaldry
Copy link
Collaborator

Leaving it as is right now until somebody can have a look but worth mentioning that it still behaves this way whether i use backticks or try to put it in a codeblock

Yeah, the HTML rendering strips HTML comments out so we have to indirect them in some way. In this case, I used a front matter lookup with the param shortcode.

@github-actions
Copy link
Contributor

💻 Deploy preview available (Add information about the more HTML comment):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants