[PR #13] [MERGED] Added Dynamic OG image generation, Auto Collapse inactive folders and much more #79

Closed
opened 2026-02-23 17:19:37 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anythingllm-docs/pull/13
Author: @ShadowArcanist
Created: 5/8/2024
Status: Merged
Merged: 5/8/2024
Merged by: @timothycarambat

Base: mainHead: master


📝 Commits (5)

  • fbe104f 🐛 Fixed a typo on readme
  • 9def410 Added Dynamic OG image generation
  • 0dd231a Added Auto-collapse inactive folders on sidebar
  • 924f5d3 Added 'Scroll to top' feature
  • ab97d2f Added Overview page for AnythingLLM cloud

📊 Changes

12 files changed (+269 additions, -23 deletions)

View changed files

📝 README.md (+1 -1)
📝 package.json (+2 -1)
pages/anythingllm-cloud/_meta.json (+29 -0)
📝 pages/anythingllm-cloud/error-502.mdx (+0 -0)
📝 pages/anythingllm-cloud/overview.mdx (+1 -1)
pages/api/Inter-SemiBold.otf (+0 -0)
pages/api/og.jsx (+82 -0)
📝 pages/index.mdx (+2 -2)
📝 public/images/cloud/thumbnail.png (+0 -0)
public/images/home/private-instance.png (+0 -0)
📝 theme.config.tsx (+10 -17)
📝 yarn.lock (+142 -1)

📄 Description

Pull Request Type

  • feat

What is in this change?

Added Dynamic OG image generation

When sharing any links to our docs pages on social media
it won't show any OG image, it only shows title & description.

I have fixed this OG image issue by adding Vercel's OG library
which auto-generates OG image based on the title of the page.

This OG generation uses Vercel Edge runtime.

Added Auto-collapse inactive folders on sidebar

We can open as many folders as we want on the left side of the screen.

But if we open too many, it gets messy. We have to close them one by one.

So, I have implemented an automatic collapse feature for inactive
folders, so that only one folder remains open at any given time.

Added 'Scroll to top' feature

If we are at the bottom of any page on docs then we have to manually
scroll to reach the to the top.

So I have added the feature 'Scroll to top' on the right sidebar
below the option 'Edit this page'

Added Overview page for AnythingLLM cloud

Added a Overview page and Updated the img directory for anythingllm cloud thumbnail
and updated the src links on the pages where the image is used.

🐛 Fixed a typo on readme

Additional Information

  • https://docs.useanything.com/ is used on theme.config.tsx for dynamic OG so if you share any pages to our docs that is not on the url https://docs.useanything.com/ the OG image won't show.

  • All the above changes can be found on https://anything-llm-docs.vercel.app/ for you to preview it

Validations

  • Ensured updated documentation pass spell check
  • Updated or added relevant links as needed
  • Reviewed the changes for clarity and accuracy
  • Successfully ran the code locally without encountering errors

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Mintplex-Labs/anythingllm-docs/pull/13 **Author:** [@ShadowArcanist](https://github.com/ShadowArcanist) **Created:** 5/8/2024 **Status:** ✅ Merged **Merged:** 5/8/2024 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `main` ← **Head:** `master` --- ### 📝 Commits (5) - [`fbe104f`](https://github.com/Mintplex-Labs/anythingllm-docs/commit/fbe104f05683dbe1b4a275630b22ce92751d295e) 🐛 Fixed a typo on readme - [`9def410`](https://github.com/Mintplex-Labs/anythingllm-docs/commit/9def410fbce4b3432cee168db491c76082d5bfa4) ✨ Added Dynamic OG image generation - [`0dd231a`](https://github.com/Mintplex-Labs/anythingllm-docs/commit/0dd231aebe60fbd57b1439609b78a0d426845e75) ✨ Added Auto-collapse inactive folders on sidebar - [`924f5d3`](https://github.com/Mintplex-Labs/anythingllm-docs/commit/924f5d32dccdc715160b9bdb92d1d1a3908adcd4) ✨ Added 'Scroll to top' feature - [`ab97d2f`](https://github.com/Mintplex-Labs/anythingllm-docs/commit/ab97d2f1471bbc0ba31237650aa832f557c37d16) ✨ Added Overview page for AnythingLLM cloud ### 📊 Changes **12 files changed** (+269 additions, -23 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+1 -1) 📝 `package.json` (+2 -1) ➕ `pages/anythingllm-cloud/_meta.json` (+29 -0) 📝 `pages/anythingllm-cloud/error-502.mdx` (+0 -0) 📝 `pages/anythingllm-cloud/overview.mdx` (+1 -1) ➕ `pages/api/Inter-SemiBold.otf` (+0 -0) ➕ `pages/api/og.jsx` (+82 -0) 📝 `pages/index.mdx` (+2 -2) 📝 `public/images/cloud/thumbnail.png` (+0 -0) ➖ `public/images/home/private-instance.png` (+0 -0) 📝 `theme.config.tsx` (+10 -17) 📝 `yarn.lock` (+142 -1) </details> ### 📄 Description ### Pull Request Type - [x] ✨ feat ### What is in this change? #### ✨ Added Dynamic OG image generation > When sharing any links to our docs pages on social media it won't show any OG image, it only shows title & description. > > I have fixed this OG image issue by adding Vercel's OG library which auto-generates OG image based on the title of the page. > > This OG generation uses Vercel Edge runtime. #### ✨ Added Auto-collapse inactive folders on sidebar > We can open as many folders as we want on the left side of the screen. > > But if we open too many, it gets messy. We have to close them one by one. > > So, I have implemented an automatic collapse feature for inactive folders, so that only one folder remains open at any given time. #### ✨ Added 'Scroll to top' feature > If we are at the bottom of any page on docs then we have to manually scroll to reach the to the top. > > So I have added the feature 'Scroll to top' on the right sidebar below the option 'Edit this page' #### ✨ Added Overview page for AnythingLLM cloud > Added a Overview page and Updated the img directory for anythingllm cloud thumbnail and updated the src links on the pages where the image is used. #### 🐛 Fixed a typo on readme ### Additional Information - `https://docs.useanything.com/` is used on `theme.config.tsx` for dynamic OG so if you share any pages to our docs that is not on the url `https://docs.useanything.com/` the OG image won't show. - All the above changes can be found on https://anything-llm-docs.vercel.app/ for you to preview it ### Validations <!-- All of the applicable items should be checked. --> - [x] Ensured updated documentation pass spell check - [x] Updated or added relevant links as needed - [x] Reviewed the changes for clarity and accuracy - [x] Successfully ran the code locally without encountering errors --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-23 17:19:37 -05:00
yindo closed this issue 2026-02-23 17:19:37 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anythingllm-docs#79