-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
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.
Metadata
Metadata
Assignees
Labels
No labels