You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is an idea that we develop a plugin for DocuSaurus that automatically fetches and renders Open Graph (OG) images from external links included in markdown files.
Use case
Content is critical for our SEO and overall marketing success. A convenient way to include existing sequence diagram on pages/articles is useful.
We have said we will support one way to include diagram which is using code block like below:
```
A.method
```
With this one, it is easy to compose.
This proposal is for a different use case - to include an existing diagram from our diagram gallery. The extra benefit is that it can link back to the original diagram on our site which is useful to build an SEO network.
Proposed Functionality
Link Scanning: Automatically scan markdown files for links from our gallery during the build process.
OG Image Fetching: For each link, make an HTTP request to fetch the HTML content and parse it to extract the OG image URL (from og:image meta tags).
Image Storage: Download these images and include them in the build artifacts.
Image Rendering: Modify the page rendering logic to display these images alongside their respective links.
Performance Optimization: Implement caching mechanisms to prevent repeated downloads of the same image and consider image optimization for faster loading.
Error Handling: Robust error handling for scenarios where an OG image is not available or cannot be fetched.
The text was updated successfully, but these errors were encountered:
MrCoder
changed the title
Fetch and render OG images for pages
Fetch and render OG images for links on pages
Nov 13, 2023
It is an idea that we develop a plugin for DocuSaurus that automatically fetches and renders Open Graph (OG) images from external links included in markdown files.
Use case
Content is critical for our SEO and overall marketing success. A convenient way to include existing sequence diagram on pages/articles is useful.
We have said we will support one way to include diagram which is using code block like below:
With this one, it is easy to compose.
This proposal is for a different use case - to include an existing diagram from our diagram gallery. The extra benefit is that it can link back to the original diagram on our site which is useful to build an SEO network.
Proposed Functionality
The text was updated successfully, but these errors were encountered: