From 2c28579866e16196a66e357eaaf5de14d5466e76 Mon Sep 17 00:00:00 2001 From: Parth Jadhav Date: Sat, 5 Sep 2026 13:48:05 +0530 Subject: [PATCH] Connect RageLayer docs and package metadata to portfolio --- README.md | 10 +++++----- docs/.vitepress/config.ts | 24 ++++++++++++++++++++++++ package.json | 4 ++-- 3 files changed, 31 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index e7015be..2f7dcae 100644 --- a/README.md +++ b/README.md @@ -2,16 +2,16 @@ [![npm version](https://img.shields.io/npm/v/ragelayer?color=dc5a1f)](https://www.npmjs.com/package/ragelayer) [![CI](https://github.com/ParthJadhav/RageLayer/actions/workflows/ci.yml/badge.svg)](https://github.com/ParthJadhav/RageLayer/actions/workflows/ci.yml) -[![TypeScript](https://img.shields.io/badge/TypeScript-ready-3178c6)](https://parthjadhav.github.io/RageLayer/api) +[![TypeScript](https://img.shields.io/badge/TypeScript-ready-3178c6)](https://www.parthjadhav.com/products/ragelayer/docs/api) [![MIT license](https://img.shields.io/badge/license-MIT-171310)](./LICENSE) Introducing RageLayer: turn any web page into a destructible canvas. Smash, cut, corrode, burn, explode, undo, and combine effects across the page—then sweep everything back into place. [**Try the live demo**](https://parthjadhav.github.io/RageLayer/demo/) · -[Documentation](https://parthjadhav.github.io/RageLayer/) · -[Tool gallery](https://parthjadhav.github.io/RageLayer/tools) · -[API reference](https://parthjadhav.github.io/RageLayer/api) +[Documentation](https://www.parthjadhav.com/products/ragelayer/docs) · +[Tool gallery](https://www.parthjadhav.com/products/ragelayer/docs/tools) · +[API reference](https://www.parthjadhav.com/products/ragelayer/docs/api) ![A page after a RageLayer session](./docs/screenshots/aftermath.png) @@ -301,4 +301,4 @@ Inspired by the classic Windows Desktop Destroyer toy and by ## License -[MIT](./LICENSE) © Parth Jadhav +[MIT](./LICENSE) © [Parth Jadhav](https://www.parthjadhav.com/) diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index 01ef097..a619045 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -18,6 +18,30 @@ export default defineConfig({ }, ], ], + transformPageData(pageData) { + const slug = pageData.relativePath.replace(/\.md$/, ""); + const migrated = new Set([ + "accessibility", + "advanced", + "api", + "architecture", + "compatibility", + "getting-started", + "integrations", + "models", + "performance", + "toolbar", + "tools", + "troubleshooting", + "versioning", + ]); + if (!migrated.has(slug)) return; + pageData.frontmatter.head ??= []; + pageData.frontmatter.head.push([ + "link", + { rel: "canonical", href: `https://www.parthjadhav.com/products/ragelayer/docs/${slug}` }, + ]); + }, sitemap: { hostname: "https://parthjadhav.github.io/RageLayer/", }, diff --git a/package.json b/package.json index 78cc1b9..4042f99 100644 --- a/package.json +++ b/package.json @@ -3,12 +3,12 @@ "version": "2.1.3", "description": "A framework-neutral web toy that lets visitors smash, burn, cut, and physically demolish any page.", "license": "MIT", - "author": "Parth Jadhav ", + "author": "Parth Jadhav (https://www.parthjadhav.com/)", "repository": { "type": "git", "url": "git+https://github.com/ParthJadhav/RageLayer.git" }, - "homepage": "https://parthjadhav.github.io/RageLayer/", + "homepage": "https://www.parthjadhav.com/products/ragelayer", "bugs": { "url": "https://github.com/ParthJadhav/RageLayer/issues" },