From 7fbf491e6fc4122af87c05781d74417c17726763 Mon Sep 17 00:00:00 2001
From: Reynaldi Chernando <12949382+reynaldichernando@users.noreply.github.com>
Date: Tue, 21 Jul 2026 16:43:00 +0700
Subject: [PATCH] Update docs meta tags and description (#3416)
* Update docs meta tags and description
* Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
---------
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
---
src/docs/build.js | 31 ++++++++++++++++---------------
src/docs/src/index.md | 4 ++--
2 files changed, 18 insertions(+), 17 deletions(-)
diff --git a/src/docs/build.js b/src/docs/build.js
index 0a3432436..9c9dd2113 100644
--- a/src/docs/build.js
+++ b/src/docs/build.js
@@ -292,14 +292,11 @@ function generateDocsHTML (filePath, rootDir, page, isIndex = false) {
html += '
';
html += '';
// Title
- if ( isIndex ) {
- html += 'Puter.js: Free, Serverless, Cloud and AI Powered by Puter.';
- html += '';
- }
- else {
- html += `${removeTags(page.title_tag ?? page.title)}`;
- html += ``;
- }
+ const docTitle = isIndex
+ ? 'Puter.js Documentation'
+ : `${removeTags(page.title_tag ?? page.title)} - Puter.js Docs`;
+ html += `${docTitle}`;
+ html += ``;
// Self referencing canonical
let canonicalUrl = new URL(page.path, site).href;
if (!canonicalUrl.endsWith('/')) {
@@ -310,21 +307,21 @@ function generateDocsHTML (filePath, rootDir, page, isIndex = false) {
html += '';
// Description
if ( isIndex ) {
- html += '';
+ html += '';
}
else if ( frontMatter.description ) {
html += ``;
}
// Social Media
- html += ``;
- html += '';
+ html += ``;
+ html += '';
html += '';
// Robot tag
html += '';
// Site name
- html += '';
+ html += '';
// favicons
html += `
@@ -357,8 +354,12 @@ function generateDocsHTML (filePath, rootDir, page, isIndex = false) {
{
"@context":"https://schema.org",
"@type":"WebSite",
- "name":"Puter.js",
- "url":"${site}"
+ "@id": "https://docs.puter.com/#website",
+ "name":"Puter.js Docs",
+ "alternateName": "Puter.js Documentation",
+ "url":"${site}",
+ "about": { "@id": "https://developer.puter.com/#puterjs" },
+ "publisher": { "@id": "https://puter.com/#organization" }
}
`;
@@ -551,7 +552,7 @@ function findMdFiles (rootDir) {
//index page
const indexPath = path.join(rootDir, 'index.md');
const indexChild = {
- title: 'Puter.js',
+ title: 'Puter.js Documentation',
path: '',
next: sidebar[0].children[0],
};
diff --git a/src/docs/src/index.md b/src/docs/src/index.md
index bb8e89a3a..39523ea9b 100755
--- a/src/docs/src/index.md
+++ b/src/docs/src/index.md
@@ -1,6 +1,6 @@
-Puter.js brings free, serverless, Cloud and AI directly to your frontend JavaScript with no backend code or API keys required. Use the `@heyputer/puter.js` npm module or drop in a single `