Skip to content

fix(docs): use relearn notice shortcode instead of unsupported alert#10206

Merged
mudler merged 1 commit into
masterfrom
fix/docs-alert-shortcode
Jun 6, 2026
Merged

fix(docs): use relearn notice shortcode instead of unsupported alert#10206
mudler merged 1 commit into
masterfrom
fix/docs-alert-shortcode

Conversation

@localai-bot

Copy link
Copy Markdown
Collaborator

What

The "Deploy docs to GitHub Pages" workflow is failing on master at the Build site step:

failed to extract shortcode: template for shortcode "alert" not found
docs/content/features/distributed-mode.md:136

Why

distributed-mode.md used a {{%/* alert */%}} shortcode (Docsy/Bootstrap syntax), but the Hugo hugo-theme-relearn theme does not provide one. Every other doc in the repo uses the theme's {{%/* notice */%}} shortcode — this was a one-off that broke the deploy.

Fix

Convert the warning block to the theme-supported {{%/* notice warning */%}} shortcode. The warning notice already renders with warning styling/icon, so the intent is preserved. Grepped the whole docs/content/ tree to confirm no other alert shortcodes remain.

Assisted-by: Claude:claude-opus-4-8 [Claude Code]

The Hugo relearn theme does not provide an "alert" shortcode, so the
docs deploy failed at the Build site step:

  failed to extract shortcode: template for shortcode "alert" not found
  docs/content/features/distributed-mode.md:136

Convert the warning block to the theme-supported notice shortcode used
everywhere else in the docs.

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
@mudler mudler force-pushed the fix/docs-alert-shortcode branch from 38724ae to 1385cad Compare June 6, 2026 22:29
@mudler mudler merged commit cd2bf95 into master Jun 6, 2026
57 checks passed
@mudler mudler deleted the fix/docs-alert-shortcode branch June 6, 2026 22:37
@localai-bot localai-bot added the bug Something isn't working label Jun 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants