Skip to content

[Docs] Fix build warnings (code block languages) #22085

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 30, 2025

Conversation

pedrosousa
Copy link
Contributor

Summary

Fixes the following build warnings:

09:16:55 [WARN] [astro-expressive-code] Error while highlighting code block using language "sdp" in document "/home/runner/work/cloudflare-docs/cloudflare-docs/src/content/docs/realtime/simulcast.mdx". The language could not be found. Using "txt" instead. Ensure that all required languages are either part of the bundle or custom languages provided in the "langs" config option.
09:17:05 [WARN] [astro-expressive-code] Error while highlighting code block using language "curl" in document "/home/runner/work/cloudflare-docs/cloudflare-docs/src/content/docs/d1/best-practices/read-replication.mdx". The language could not be found. Using "txt" instead. Ensure that all required languages are either part of the bundle or custom languages provided in the "langs" config option.
09:17:05 [WARN] [astro-expressive-code] Error while highlighting code block using language "curl" in document "/home/runner/work/cloudflare-docs/cloudflare-docs/src/content/docs/d1/best-practices/read-replication.mdx". The language could not be found. Using "txt" instead. Ensure that all required languages are either part of the bundle or custom languages provided in the "langs" config option.
09:17:05 [WARN] [astro-expressive-code] Error while highlighting code block using language "curl" in document "/home/runner/work/cloudflare-docs/cloudflare-docs/src/content/docs/d1/best-practices/read-replication.mdx". The language could not be found. Using "txt" instead. Ensure that all required languages are either part of the bundle or custom languages provided in the "langs" config option.
09:17:51 [WARN] [astro-expressive-code] Error while highlighting code block using language "output" in document "/home/runner/work/cloudflare-docs/cloudflare-docs/src/content/docs/pipelines/tutorials/query-data-with-motherduck/index.mdx". The language could not be found. Using "txt" instead. Ensure that all required languages are either part of the bundle or custom languages provided in the "langs" config option.
09:17:51 [WARN] [astro-expressive-code] Error while highlighting code block using language "output" in document "/home/runner/work/cloudflare-docs/cloudflare-docs/src/content/docs/pipelines/tutorials/query-data-with-motherduck/index.mdx". The language could not be found. Using "txt" instead. Ensure that all required languages are either part of the bundle or custom languages provided in the "langs" config option.
09:17:51 [WARN] [astro-expressive-code] Error while highlighting code block using language "output" in document "/home/runner/work/cloudflare-docs/cloudflare-docs/src/content/docs/pipelines/tutorials/send-data-from-client/index.mdx". The language could not be found. Using "txt" instead. Ensure that all required languages are either part of the bundle or custom languages provided in the "langs" config option.
09:17:51 [WARN] [astro-expressive-code] Error while highlighting code block using language "output" in document "/home/runner/work/cloudflare-docs/cloudflare-docs/src/content/docs/pipelines/tutorials/send-data-from-client/index.mdx". The language could not be found. Using "txt" instead. Ensure that all required languages are either part of the bundle or custom languages provided in the "langs" config option.
09:17:58 [WARN] [astro-expressive-code] Error while highlighting code block using language "title=".assetsignore"" in document "/home/runner/work/cloudflare-docs/cloudflare-docs/src/content/docs/workers/frameworks/framework-guides/astro.mdx". The language could not be found. Using "txt" instead. Ensure that all required languages are either part of the bundle or custom languages provided in the "langs" config option.
09:18:05 [WARN] [astro-expressive-code] Error while highlighting code block using language "jsonata" in document "/home/runner/work/cloudflare-docs/cloudflare-docs/src/content/docs/cloudflare-one/applications/configure-apps/saas-apps/generic-saml-saas.mdx". The language could not be found. Using "txt" instead. Ensure that all required languages are either part of the bundle or custom languages provided in the "langs" config option.
09:18:05 [WARN] [astro-expressive-code] Error while highlighting code block using language "jsonata" in document "/home/runner/work/cloudflare-docs/cloudflare-docs/src/content/docs/cloudflare-one/applications/configure-apps/saas-apps/generic-saml-saas.mdx". The language could not be found. Using "txt" instead. Ensure that all required languages are either part of the bundle or custom languages provided in the "langs" config option.
09:18:05 [WARN] [astro-expressive-code] Error while highlighting code block using language "jsonata" in document "/home/runner/work/cloudflare-docs/cloudflare-docs/src/content/docs/cloudflare-one/applications/configure-apps/saas-apps/generic-saml-saas.mdx". The language could not be found. Using "txt" instead. Ensure that all required languages are either part of the bundle or custom languages provided in the "langs" config option.
09:18:05 [WARN] [astro-expressive-code] Error while highlighting code block using language "jsonata" in document "/home/runner/work/cloudflare-docs/cloudflare-docs/src/content/docs/cloudflare-one/applications/configure-apps/saas-apps/generic-saml-saas.mdx". The language could not be found. Using "txt" instead. Ensure that all required languages are either part of the bundle or custom languages provided in the "langs" config option.
09:18:21 [WARN] [vite] src/content/docs/agents/concepts/human-in-the-loop.mdx (38:16): "Note" is not exported by "src/components/index.ts", imported by "src/content/docs/agents/concepts/human-in-the-loop.mdx".

@github-actions github-actions bot added product:agents Build and deploy AI-powered Agents on Cloudflare that can act autonomously. product:cloudflare-one product:d1 D1: https://developers.cloudflare.com/d1/ product:pipelines product:realtime product:workers Related to Workers product size/s labels Apr 30, 2025
Copy link
Contributor

hyperlint-ai bot commented Apr 30, 2025

Howdy and thanks for contributing to our repo. The Cloudflare team reviews new, external PRs within two (2) weeks. If it's been two weeks or longer without any movement, please tag the PR Assignees in a comment.

We review internal PRs within 1 week. If it's something urgent or has been sitting without a comment, start a thread in the Developer Docs space internally.


PR Change Summary

Resolved build warnings related to code block language highlighting by updating language identifiers in documentation files.

  • Updated code block language identifiers from unsupported languages to 'txt' or 'sh' where applicable.
  • Removed unused imports in the human-in-the-loop documentation.
  • Ensured consistency in code block formatting across multiple documentation files.

Modified Files

  • src/content/docs/agents/concepts/human-in-the-loop.mdx
  • src/content/docs/cloudflare-one/applications/configure-apps/saas-apps/generic-saml-saas.mdx
  • src/content/docs/d1/best-practices/read-replication.mdx
  • src/content/docs/pipelines/tutorials/query-data-with-motherduck/index.mdx
  • src/content/docs/pipelines/tutorials/send-data-from-client/index.mdx
  • src/content/docs/realtime/simulcast.mdx
  • src/content/docs/workers/frameworks/framework-guides/astro.mdx

How can I customize these reviews?

Check out the Hyperlint AI Reviewer docs for more information on how to customize the review.

If you just want to ignore it on this PR, you can add the hyperlint-ignore label to the PR. Future changes won't trigger a Hyperlint review.

Note specifically for link checks, we only check the first 30 links in a file and we cache the results for several hours (for instance, if you just added a page, you might experience this). Our recommendation is to add hyperlint-ignore to the PR to ignore the link check for this PR.

Copy link
Contributor

Preview URL: https://5ae6f797.preview.developers.cloudflare.com
Preview Branch URL: https://pedro-2025-04-30-fix-blocks-language.preview.developers.cloudflare.com

Files with changes (up to 15)

Original Link Updated Link
https://developers.cloudflare.com/cloudflare-one/applications/configure-apps/saas-apps/generic-saml-saas/ https://pedro-2025-04-30-fix-blocks-language.preview.developers.cloudflare.com/cloudflare-one/applications/configure-apps/saas-apps/generic-saml-saas/
https://developers.cloudflare.com/d1/best-practices/read-replication/ https://pedro-2025-04-30-fix-blocks-language.preview.developers.cloudflare.com/d1/best-practices/read-replication/
https://developers.cloudflare.com/pipelines/tutorials/query-data-with-motherduck/ https://pedro-2025-04-30-fix-blocks-language.preview.developers.cloudflare.com/pipelines/tutorials/query-data-with-motherduck/
https://developers.cloudflare.com/pipelines/tutorials/send-data-from-client/ https://pedro-2025-04-30-fix-blocks-language.preview.developers.cloudflare.com/pipelines/tutorials/send-data-from-client/
https://developers.cloudflare.com/realtime/simulcast/ https://pedro-2025-04-30-fix-blocks-language.preview.developers.cloudflare.com/realtime/simulcast/
https://developers.cloudflare.com/agents/concepts/human-in-the-loop/ https://pedro-2025-04-30-fix-blocks-language.preview.developers.cloudflare.com/agents/concepts/human-in-the-loop/
https://developers.cloudflare.com/workers/frameworks/framework-guides/astro/ https://pedro-2025-04-30-fix-blocks-language.preview.developers.cloudflare.com/workers/frameworks/framework-guides/astro/

@pedrosousa pedrosousa merged commit 6ba2eb9 into production Apr 30, 2025
14 checks passed
@pedrosousa pedrosousa deleted the pedro/2025-04-30-fix-blocks-language branch April 30, 2025 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
product:agents Build and deploy AI-powered Agents on Cloudflare that can act autonomously. product:cloudflare-one product:d1 D1: https://developers.cloudflare.com/d1/ product:pipelines product:realtime product:workers Related to Workers product size/s
Projects
None yet
Development

Successfully merging this pull request may close these issues.