Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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/)
24 changes: 24 additions & 0 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}` },

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Exclude migrated pages from the legacy sitemap

When the GitHub Pages build runs, the existing sitemap configuration still emits https://parthjadhav.github.io/RageLayer/<slug> for every migrated page while this new tag declares the portfolio URL canonical. These conflicting indexing signals can keep the legacy copies indexed or cause crawlers to disregard the intended canonical migration. Filter the migrated slugs out of the GitHub Pages sitemap, while retaining entries for the unmigrated pages.

Useful? React with 👍 / 👎.

]);
},
sitemap: {
hostname: "https://parthjadhav.github.io/RageLayer/",
},
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 <jadhavparth99@gmail.com>",
"author": "Parth Jadhav <jadhavparth99@gmail.com> (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"
},
Expand Down