From 9befc5c0f3d7233c9788faf791c279d57ef6eaad Mon Sep 17 00:00:00 2001 From: Yulong Wang <7679871+fs-eire@users.noreply.github.com> Date: Mon, 19 Feb 2024 15:52:51 -0800 Subject: [PATCH] fix 404 --- docs/get-started/with-javascript/index.md | 8 ++++---- docs/get-started/with-javascript/web.md | 2 +- docs/tutorials/web/build-web-app.md | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/get-started/with-javascript/index.md b/docs/get-started/with-javascript/index.md index 62438b7975a8b..c62d8a5c87705 100644 --- a/docs/get-started/with-javascript/index.md +++ b/docs/get-started/with-javascript/index.md @@ -11,7 +11,7 @@ nav_order: 6 ONNX Runtime JavaScript API is the unified interface used by [ONNX Runtime Node.js binding](https://github.com/microsoft/onnxruntime/tree/main/js/node), [ONNX Runtime Web](https://github.com/microsoft/onnxruntime/tree/main/js/web), and [ONNX Runtime for React Native](https://github.com/microsoft/onnxruntime/tree/main/js/react_native). -See [how to choose the right package](../tutorials/web/build-web-app#options-for-deployment-target) for your JavaScript application. +See [how to choose the right package](../../tutorials/web/build-web-app#options-for-deployment-target) for your JavaScript application. ## Contents {: .no_toc } @@ -32,13 +32,13 @@ See [how to choose the right package](../tutorials/web/build-web-app#options-for |Web|[onnxruntime-web](https://www.npmjs.com/package/onnxruntime-web)|CPU and GPU|Chromium Browsers (Chrome, Edge): wasm, webgl, webgpu, webnn
Safari: wasm, webgl
Other Browsers: wasm
Node.js: wasm| |React Native|[onnxruntime-react-native](https://www.npmjs.com/package/onnxruntime-react-native)|CPU|Android, iOS| -- For Web, pre-built binaries are published in NPM package as well as served in CDNs. See [Deploy ONNX Runtime Web](TBD) for more details. If you want to use a custom build, you can [build ONNX Runtime Web from source](../build/web.md). -- For Node.js binding, to use on platforms without pre-built binaries, you can [build Node.js binding from source](../build/inferencing.md#apis-and-language-bindings) and consume using `npm install /js/node/`. +- For Web, pre-built binaries are published in NPM package as well as served in CDNs. If you want to use a custom build, you can [build ONNX Runtime Web from source](../../build/web.md). +- For Node.js binding, to use on platforms without pre-built binaries, you can [build Node.js binding from source](../../build/inferencing.md#apis-and-language-bindings) and consume using `npm install /js/node/`. - Explore a simple web application to [classify images with ONNX Runtime Web](https://onnxruntime.ai/docs/tutorials/web/classify-images-nextjs-github-template.html). ## API Reference -See [ONNX Runtime JavaScript API](../api/js/index.html){:target="_blank"} for API reference. +See [ONNX Runtime JavaScript API](../../api/js/index.html){:target="_blank"} for API reference. See also: diff --git a/docs/get-started/with-javascript/web.md b/docs/get-started/with-javascript/web.md index 4ebcc4ffe767f..fd7c8e5638f27 100644 --- a/docs/get-started/with-javascript/web.md +++ b/docs/get-started/with-javascript/web.md @@ -54,7 +54,7 @@ For a complete table for importing, see [Conditional Importing](https://github.c ## Documentation -See [Tutorial: Web](../tutorials/web/index.md) for more details. Please also check the following links: +See [Tutorial: Web](../../tutorials/web/index.md) for more details. Please also check the following links: - [Tensor](https://github.com/microsoft/onnxruntime-inference-examples/blob/main/js/api-usage_tensor) - a demonstration of basic usage of Tensor. - [Tensor <--> Image conversion](https://github.com/microsoft/onnxruntime-inference-examples/blob/main/js/api-usage-tensor-image) - a demonstration of conversions from Image elements to and from Tensor. - [InferenceSession](https://github.com/microsoft/onnxruntime-inference-examples/blob/main/js/api-usage_inference-session) - a demonstration of basic usage of InferenceSession. diff --git a/docs/tutorials/web/build-web-app.md b/docs/tutorials/web/build-web-app.md index 6fd14260a9e78..8dbe1bdca9b33 100644 --- a/docs/tutorials/web/build-web-app.md +++ b/docs/tutorials/web/build-web-app.md @@ -79,7 +79,7 @@ Add "@dev" to the package name to use the nightly build (eg. npm install onnxrun ## Consume onnxruntime-web in your code 1. Import onnxruntime-web - See [import onnxruntime-web](../../get-started/with-javascript.md#import-1) + See [import onnxruntime-web](../../get-started/with-javascript/web.md#import) 2. Initialize the inference session See [InferenceSession.create](https://github.com/microsoft/onnxruntime-inference-examples/blob/main/js/quick-start_onnxruntime-web-bundler/main.js#L14)