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 `