Skip to content

docs: organize WasmEdge guides by user task - #333

Merged
hydai merged 6 commits into
mainfrom
feat/task-based-docs-navigation
Dec 3, 2026
Merged

hydai merged 6 commits into
mainfrom
feat/task-based-docs-navigation

Conversation

@hydai

@hydai hydai commented Dec 2, 2026

Copy link
Copy Markdown
Member

Explanation

The navigation gives a reader with a .wasm file no clear starting point for running it with a plug-in. The Podman guide appears under “Deploy WasmEdge apps in Kubernetes” even for readers running workloads locally. This PR organizes the homepage and navigation around what readers want to do and preserves existing documentation URLs and heading anchors.

Related issue

Related to #123 for the Docker Desktop guidance.

What type of PR is this

/kind documentation

Proposed Changes

  • Give the homepage three primary entries for running Wasm from the CLI, embedding WasmEdge with the C API or a language SDK, and using WasmEdge with containers or Kubernetes. Keep writing Wasm applications and contributing to WasmEdge visible as separate entries.
  • Add a CLI quick start and a plug-in guide that walks through running inference with WASI-NN. Link to the plug-in catalogue so readers can check package availability for their platform.
  • Group the C API, C++, Rust, and Go guides under one embedding entry. Show C and C++ readers how to call the same Wasm function in interpreter and AOT modes.
  • Link directly to Docker, Podman, crun, and Kubernetes. Give Kubernetes users separate starting points for deploying a Pod to a prepared cluster and configuring the runtime on cluster nodes.
  • Use the same task names in the navbar, sidebar, and breadcrumbs, and update the Simplified Chinese guides and navigation to match.

Validation

  • Ran npm run build for en, zh, and zh-TW, along with npm run lint:ci, tsc --noEmit, and git diff --check.
  • Compared the production sites before and after the change. All 744 existing page URLs and 4,626 heading anchors remain. Checked 30,850 internal link and fragment references. The number of unresolved source–target pairs fell from 150 to 141, with no new failures.
  • Ran the WASI-NN inference example on macOS arm64 with WasmEdge 0.18.1. The C and C++ examples each returned fib(32) = 3524578 in both interpreter and AOT modes.
  • Followed the CLI, embedding, container, and contributor paths in a browser and checked mobile navigation and search. Container validation covered the documentation paths only.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

Active documentation issues remain, including malformed admonition fences and broken localized links that need correction.

4 open issues
What changed in this PR

Reorganizes WasmEdge documentation around user tasks, adding clearer CLI, embedding, container, Kubernetes, and contribution entry points while updating Simplified Chinese navigation.

Changes:

  • Reworks homepage, navigation, and sidebar organization.
  • Adds CLI, plug-in, embedding, and deployment guidance.
  • Updates Simplified Chinese documentation and metadata.
File Description
src/​pages/​index.tsx Adds the task-oriented homepage layout.
src/​pages/​index.module.css Styles the redesigned homepage.
src/​components/​HomepageFeatures/​styles.module.css Styles homepage task cards.
src/​components/​HomepageFeatures/​index.tsx Adds homepage task cards.
sidebars.js Defines the task-oriented documentation sidebar.
i18n/​zh/​docusaurus-theme-classic/​navbar.json Updates Simplified Chinese navbar labels.
i18n/​zh/​docusaurus-theme-classic/​footer.json Updates Simplified Chinese footer labels.
i18n/​zh/​docusaurus-plugin-content-docs/​current/​start/​wasmedge/​extensions/​plugins.md Updates the Chinese plug-in catalogue.
i18n/​zh/​docusaurus-plugin-content-docs/​current/​start/​use-plugins.md Adds the Chinese plug-in usage guide.
i18n/​zh/​docusaurus-plugin-content-docs/​current/​start/​troubleshooting_guide.md Updates Chinese troubleshooting guidance.
i18n/​zh/​docusaurus-plugin-content-docs/​current/​start/​overview.md Reframes the Chinese start overview around user tasks.
i18n/​zh/​docusaurus-plugin-content-docs/​current/​start/​install.md Updates Chinese installation guidance.
i18n/​zh/​docusaurus-plugin-content-docs/​current/​start/​getting-started/​quick_start.md Updates the Chinese CLI quick start.
i18n/​zh/​docusaurus-plugin-content-docs/​current/​start/​getting-started/​quick_start_docker.md Updates the Chinese Docker quick start.
i18n/​zh/​docusaurus-plugin-content-docs/​current/​start/​getting-started/​_category_.json Updates Chinese quick-start category metadata.
i18n/​zh/​docusaurus-plugin-content-docs/​current/​start/​cli-quickstart.md Adds the Chinese CLI quick start.
i18n/​zh/​docusaurus-plugin-content-docs/​current/​start/​build-and-run/​docker_wasm.md Updates the Chinese Docker guide.
i18n/​zh/​docusaurus-plugin-content-docs/​current/​start/​build-and-run/​cli.md Updates Chinese CLI reference links.
i18n/​zh/​docusaurus-plugin-content-docs/​current/​start/​build-and-run/​_category_.json Updates Chinese CLI category metadata.
i18n/​zh/​docusaurus-plugin-content-docs/​current/​embed/​use-case/​plugin/​_category_.json Updates Chinese plug-in SDK category metadata.
i18n/​zh/​docusaurus-plugin-content-docs/​current/​embed/​rust/​_category_.json Updates Chinese Rust SDK category metadata.
i18n/​zh/​docusaurus-plugin-content-docs/​current/​embed/​quick-start/​install.md Updates Chinese SDK installation guidance.
i18n/​zh/​docusaurus-plugin-content-docs/​current/​embed/​quick-start/​_category_.json Updates Chinese embedding quick-start metadata.
i18n/​zh/​docusaurus-plugin-content-docs/​current/​embed/​overview.md Updates the Chinese embedding overview.
i18n/​zh/​docusaurus-plugin-content-docs/​current/​embed/​go/​reference/​_category_.json Updates Chinese Go reference metadata.
i18n/​zh/​docusaurus-plugin-content-docs/​current/​embed/​go/​intro.md Updates Chinese Go SDK setup guidance.
i18n/​zh/​docusaurus-plugin-content-docs/​current/​embed/​go/​_category_.json Updates Chinese Go SDK category metadata.
i18n/​zh/​docusaurus-plugin-content-docs/​current/​embed/​c++/​intro.md Updates the Chinese C++ embedding example.
i18n/​zh/​docusaurus-plugin-content-docs/​current/​embed/​c++/​_category_.json Updates Chinese C++ category metadata.
i18n/​zh/​docusaurus-plugin-content-docs/​current/​embed/​c/​reference/​_category_.json Updates Chinese C API reference metadata.
i18n/​zh/​docusaurus-plugin-content-docs/​current/​embed/​c/​intro.md Updates the Chinese C embedding example.
i18n/​zh/​docusaurus-plugin-content-docs/​current/​embed/​c/​_category_.json Updates Chinese C API category metadata.
i18n/​zh/​docusaurus-plugin-content-docs/​current/​develop/​rust/​wasinn/​llm_inference.md Updates the Chinese LLM inference guide.
i18n/​zh/​docusaurus-plugin-content-docs/​current/​develop/​overview.md Updates the Chinese development overview.
i18n/​zh/​docusaurus-plugin-content-docs/​current/​develop/​deploy/​podman.md Updates the Chinese Podman guide.
i18n/​zh/​docusaurus-plugin-content-docs/​current/​develop/​deploy/​oci-runtime/​crun.md Updates the Chinese crun guide.
i18n/​zh/​docusaurus-plugin-content-docs/​current/​develop/​deploy/​oci-runtime/​_category_.json Updates Chinese OCI runtime metadata.
i18n/​zh/​docusaurus-plugin-content-docs/​current/​develop/​deploy/​kubernetes/​overview.md Updates the Chinese Kubernetes overview.
i18n/​zh/​docusaurus-plugin-content-docs/​current/​develop/​deploy/​kubernetes/​kubernetes-cri-o.md Updates Chinese CRI-O guidance.
i18n/​zh/​docusaurus-plugin-content-docs/​current/​develop/​deploy/​kubernetes/​kubernetes-containerd-runwasi.md Updates Chinese containerd runwasi guidance.
i18n/​zh/​docusaurus-plugin-content-docs/​current/​develop/​deploy/​kubernetes/​_category_.json Updates Chinese Kubernetes category metadata.
i18n/​zh/​docusaurus-plugin-content-docs/​current/​develop/​deploy/​intro.md Updates the Chinese deployment overview.
i18n/​zh/​docusaurus-plugin-content-docs/​current/​develop/​deploy/​docker_wasm.md Updates the Chinese Docker deployment guide.
i18n/​zh/​docusaurus-plugin-content-docs/​current/​develop/​deploy/​cri-runtime/​_category_.json Updates Chinese CRI runtime metadata.
i18n/​zh/​docusaurus-plugin-content-docs/​current/​develop/​deploy/​_category_.json Updates Chinese deployment category metadata.
i18n/​zh/​docusaurus-plugin-content-docs/​current/​contribute/​overview.md Updates the Chinese contribution overview.
i18n/​zh/​code.json Adds Simplified Chinese homepage translations.
docusaurus.config.js Updates global navigation links.
docs/​start/​wasmedge/​extensions/​plugins.md Adds the plug-in compatibility catalogue.
docs/​start/​use-plugins.md Adds the CLI plug-in usage guide.
docs/​start/​troubleshooting_guide.md Updates plug-in troubleshooting links.
docs/​start/​overview.md Reframes the start page around user tasks.
docs/​start/​install.md Updates installation and plug-in guidance.
docs/​start/​getting-started/​quick_start.md Updates CLI quick-start guidance.
docs/​start/​getting-started/​quick_start_docker.md Updates Docker quick-start guidance.
docs/​start/​getting-started/​_category_.json Updates quick-start category metadata.
docs/​start/​cli-quickstart.md Adds the CLI quick start.
docs/​start/​build-and-run/​docker_wasm.md Updates Docker guidance.
docs/​start/​build-and-run/​cli.md Updates CLI reference navigation.
docs/​start/​build-and-run/​_category_.json Updates CLI category metadata.
docs/​embed/​use-case/​plugin/​_category_.json Updates plug-in SDK category metadata.
docs/​embed/​rust/​_category_.json Updates Rust SDK category metadata.
docs/​embed/​quick-start/​install.md Updates SDK installation guidance.
docs/​embed/​quick-start/​_category_.json Updates embedding quick-start metadata.
docs/​embed/​overview.md Updates the embedding overview.
docs/​embed/​go/​reference/​_category_.json Updates Go reference metadata.
docs/​embed/​go/​intro.md Updates Go SDK setup guidance.
docs/​embed/​go/​_category_.json Updates Go SDK category metadata.
docs/​embed/​c++/​intro.md Updates the C++ embedding example.
docs/​embed/​c++/​_category_.json Updates C++ category metadata.
docs/​embed/​c/​reference/​_category_.json Updates C API reference metadata.
docs/​embed/​c/​intro.md Updates the C embedding example.
docs/​embed/​c/​_category_.json Updates C API category metadata.
docs/​develop/​rust/​wasinn/​llm_inference.md Updates the LLM inference guide.
docs/​develop/​overview.md Updates the development overview.
docs/​develop/​deploy/​podman.md Updates the Podman guide.
docs/​develop/​deploy/​oci-runtime/​crun.md Updates the crun guide.
docs/​develop/​deploy/​oci-runtime/​_category_.json Updates OCI runtime category metadata.
docs/​develop/​deploy/​kubernetes/​overview.md Updates the Kubernetes overview.
docs/​develop/​deploy/​kubernetes/​kubernetes-cri-o.md Updates CRI-O guidance.
docs/​develop/​deploy/​kubernetes/​kubernetes-containerd-runwasi.md Updates containerd runwasi guidance.
docs/​develop/​deploy/​kubernetes/​_category_.json Updates Kubernetes category metadata.
docs/​develop/​deploy/​intro.md Updates the deployment overview.
docs/​develop/​deploy/​docker_wasm.md Updates the Docker deployment guide.
docs/​develop/​deploy/​cri-runtime/​_category_.json Updates CRI runtime category metadata.
docs/​develop/​deploy/​_category_.json Updates deployment category metadata.
docs/​contribute/​overview.md Updates the contribution overview.

Review effort: Lite (adaptive)

Comment thread docs/start/install.md Resolved

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔵 Needs a closer look

The deployment examples overwrite an explicitly verified crun-wasm path, potentially selecting a non-Wasm-enabled binary in both documentation versions.

No open issues 🎉

2 previously missed issues

In code that hasn't changed since last review

Medium severity Preserve the verified crun-wasm path

docs/​develop/​deploy/​podman.md:30

This assignment discards the crun-wasm path the preceding instructions tell Fedora users to verify, so the example always selects crun from PATH and may run a non-Wasm-enabled binary. Preserve an explicitly supplied path and only fall back to command -v crun when it is unset.

Medium severity Preserve the verified crun-wasm path

i18n/​zh/​docusaurus-plugin-content-docs/​current/​develop/​deploy/​podman.md:30

This assignment discards the crun-wasm path the preceding instructions tell Fedora users to verify, so the example always selects crun from PATH and may run a non-Wasm-enabled binary. Preserve an explicitly supplied path and only fall back to command -v crun when it is unset.

4 resolved since last review

Review effort: Lite (adaptive)

hydai added 5 commits December 3, 2026 13:16
Signed-off-by: hydai <z54981220@gmail.com>
Signed-off-by: hydai <z54981220@gmail.com>
Signed-off-by: hydai <z54981220@gmail.com>
Signed-off-by: hydai <z54981220@gmail.com>
Signed-off-by: hydai <z54981220@gmail.com>
@hydai
hydai force-pushed the feat/task-based-docs-navigation branch from e92dc53 to bef4cce Compare December 3, 2026 05:23
Signed-off-by: hydai <z54981220@gmail.com>
@hydai
hydai requested a review from q82419 December 3, 2026 05:45
@hydai
hydai merged commit c6e9213 into main Dec 3, 2026
6 checks passed
@hydai
hydai deleted the feat/task-based-docs-navigation branch December 3, 2026 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants