Skip to content

Conversation

@KianNH
Copy link
Member

@KianNH KianNH commented Jan 22, 2025

Summary

Refactors rehype plugins to be configured outside of astro.config.ts.

Removes dependency on rehype-mermaid (and by extension playwright) in favour of the minimal code we needed from that plugin for the pre-mermaid strategy.

Components or scripts that need to handle our external link icon, " ↗", can now do so by importing rehypeExternalLinksOptions from ~/plugins/rehype/external-links and accessing rehypeExternalLinksOptions.content.value or by using the external-link class.

As a user of the site, the only change is the addition of the external-link class.

@cloudflare-workers-and-pages
Copy link

Deploying cloudflare-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 188f05d
Status: ✅  Deploy successful!
Preview URL: https://e2a80188.cloudflare-docs-7ou.pages.dev
Branch Preview URL: https://kian-pcx-15463.cloudflare-docs-7ou.pages.dev

View logs

@KianNH KianNH merged commit 8e70246 into production Jan 23, 2025
12 checks passed
@KianNH KianNH deleted the kian/PCX-15463 branch January 23, 2025 17:42
deadlypants1973 pushed a commit that referenced this pull request Jan 29, 2025
* [Docs Site] Refactor rehype plugins

* fix closing tag in anchorheading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants