Skip to content

Commit

Permalink
docs: update WebAssembly introduction with slug and add client redire…
Browse files Browse the repository at this point in the history
…cts plugin
  • Loading branch information
Pradumnasaraf committed Dec 27, 2024
1 parent 348cf23 commit 06f5b38
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 2 deletions.
2 changes: 2 additions & 0 deletions docs/webassembly/introduction.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
sidebar_position: 1
title: WebAssembly Introduction
slug: /webassembly

---

In simple terms WebAssembly (Wasm) is a binary instruction format. With WebAssembly, you can write code in languages like C, C++, and Rust, and run it in the browser at near-native speed. It is design to run alongside JavaScript, allowing both to work together.
Expand Down
14 changes: 14 additions & 0 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,20 @@ const config = {
darkTheme: prismThemes.dracula,
},
}),

plugins: [
[
'@docusaurus/plugin-client-redirects',
{
redirects: [
{
from: ['/webassembly'], // Old paths
to: '/webassembly/introduction', // Target path
},
],
},
],
],
};

export default config;
29 changes: 27 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
},
"dependencies": {
"@docusaurus/core": "^3.6.3",
"@docusaurus/plugin-client-redirects": "^3.6.3",
"@docusaurus/preset-classic": "^3.6.3",
"@mdx-js/react": "^3.1.0",
"clsx": "^2.1.1",
Expand Down

0 comments on commit 06f5b38

Please sign in to comment.