Skip to content

Commit

Permalink
fix: link validation
Browse files Browse the repository at this point in the history
  • Loading branch information
simonhyll committed Apr 22, 2024
1 parent aaa8a77 commit 89cbf78
Show file tree
Hide file tree
Showing 177 changed files with 1,313 additions and 198 deletions.
4 changes: 2 additions & 2 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -206,15 +206,15 @@ export default defineConfig({
...i18nRedirect('/v1/guides/testing/webdriver/introduction', '/guides/test/webdriver/'),
...i18nRedirect(
'/v1/guides/testing/webdriver/example/setup',
'/guides/test/webdriver/example/setup'
'/guides/test/webdriver/example/'
),
...i18nRedirect(
'/v1/guides/testing/webdriver/example/selenium',
'/guides/test/webdriver/example/selenium'
),
...i18nRedirect(
'/v1/guides/testing/webdriver/example/webdriverio',
'/guides/test/webdriver/example/webdriverio'
'/test/webdriver/example/webdriverio'
),

// v1 /references
Expand Down
2 changes: 1 addition & 1 deletion packages/config-generator/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ async function buildConfig(schemaFile: string, outputFile: string) {
let schema: JSONSchema7 = (await import(schemaFile)).default;

const output = [
'---\n# NOTE: This file is auto-generated in packages/config-generator/build.ts\n# For corrections please edit https://github.com/tauri-apps/tauri/blob/dev/core/tauri-utils/src/config.rs directly\n\ntitle: Configuration\n---',
'---\n# NOTE: This file is auto-generated in packages/config-generator/build.ts\n# For corrections please edit https://github.com/tauri-apps/tauri/blob/dev/core/tauri-utils/src/config.rs directly\n\ntitle: Configuration\nsidebar:\n order: 1\n---',
];

output.push(
Expand Down
4 changes: 2 additions & 2 deletions packages/tauri/core/tauri-config-schema/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1721,7 +1721,7 @@
"additionalProperties": false
},
"WebviewInstallMode": {
"description": "Install modes for the Webview2 runtime. Note that for the updater bundle [`Self::DownloadBootstrapper`] is used.\n\nFor more information see <https://tauri.app/v1/guides/building/windows>.",
"description": "Install modes for the Webview2 runtime. Note that for the updater bundle [`Self::DownloadBootstrapper`] is used.\n\nFor more information see <https://tauri.app/v1/guides/developing/windows>.",
"oneOf": [
{
"description": "Do not install the Webview2 as part of the Windows Installer.",
Expand Down Expand Up @@ -2452,4 +2452,4 @@
"additionalProperties": true
}
}
}
}
2 changes: 1 addition & 1 deletion packages/tauri/core/tauri-utils/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ impl Default for NSISInstallerMode {
/// Install modes for the Webview2 runtime.
/// Note that for the updater bundle [`Self::DownloadBootstrapper`] is used.
///
/// For more information see <https://tauri.app/v1/guides/building/windows>.
/// For more information see <https://tauri.app/v1/guides/developing/windows>.
#[derive(Debug, PartialEq, Eq, Clone, Serialize, Deserialize)]
#[serde(tag = "type", rename_all = "camelCase", deny_unknown_fields)]
#[cfg_attr(feature = "schema", derive(JsonSchema))]
Expand Down
4 changes: 2 additions & 2 deletions packages/tauri/tooling/cli/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1721,7 +1721,7 @@
"additionalProperties": false
},
"WebviewInstallMode": {
"description": "Install modes for the Webview2 runtime. Note that for the updater bundle [`Self::DownloadBootstrapper`] is used.\n\nFor more information see <https://tauri.app/v1/guides/building/windows>.",
"description": "Install modes for the Webview2 runtime. Note that for the updater bundle [`Self::DownloadBootstrapper`] is used.\n\nFor more information see <https://tauri.app/v1/guides/developing/windows>.",
"oneOf": [
{
"description": "Do not install the Webview2 as part of the Windows Installer.",
Expand Down Expand Up @@ -2452,4 +2452,4 @@
"additionalProperties": true
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ en Rust:

### JavaScript

Consulta todas las [Opciones de diálogo](/references/v2/js/dialog/) en la referencia de la API de JavaScript.
Consulta todas las [Opciones de diálogo](/references/js/dialog/) en la referencia de la API de JavaScript.

{/* ASK */}

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,21 @@ Si un framework no aparece en esta lista puede que funcione con Tauri sin necesi
## JavaScript

<CardGrid>
<LinkCard title="Next.js" href="/guides/frontend/nextjs" />
<LinkCard title="Nuxt" href="/guides/frontend/nuxt" />
<LinkCard title="Qwik" href="/guides/frontend/qwik" />
<LinkCard title="Svelte" href="/guides/frontend/svelte" />
<LinkCard title="Vite" href="/guides/frontend/vite" />
<LinkCard title="Webpack" href="/guides/frontend/webpack" />
<LinkCard title="Next.js" href="/start/frontend/nextjs" />
<LinkCard title="Nuxt" href="/start/frontend/nuxt" />
<LinkCard title="Qwik" href="/start/frontend/qwik" />
<LinkCard title="Svelte" href="/start/frontend/svelte" />
<LinkCard title="Vite" href="/start/frontend/vite" />
<LinkCard title="Webpack" href="/start/frontend/webpack" />
</CardGrid>

## Rust

<CardGrid>
<LinkCard title="Leptos" href="/guides/frontend/leptos" />
<LinkCard title="Sycamore" href="/guides/frontend/sycamore" />
<LinkCard title="Trunk" href="/guides/frontend/trunk" />
<LinkCard title="Yew" href="/guides/frontend/yew" />
<LinkCard title="Leptos" href="/start/frontend/leptos" />
<LinkCard title="Sycamore" href="/start/frontend/sycamore" />
<LinkCard title="Trunk" href="/start/frontend/trunk" />
<LinkCard title="Yew" href="/start/frontend/yew" />
</CardGrid>

## Checklist de Configuración
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ Aquí está el archivo como un script plano: [rustup.sh](https://sh.rustup.rs/)

Asegúrate de reiniciar tu Terminal (y en algunos casos tu sistema) para que los cambios surtan efecto.

Siguiente: [Configurar para Móvil](#configurar-para-móvil) si deseas construir para Android e iOS. De lo contrario, [Crea un Proyecto](/guides/create/).
Siguiente: [Configurar para Móvil](#configurar-para-móvil) si deseas construir para Android e iOS. De lo contrario, [Crea un Proyecto](/start/create-project).

## Configurar para Móvil

Expand Down Expand Up @@ -291,7 +291,7 @@ rustup target add aarch64-linux-android armv7-linux-androideabi i686-linux-andro
</TabItem>
</Tabs>

Siguiente: [Configurar para iOS](#ios) o [Crear un proyecto](/guides/create/).
Siguiente: [Configurar para iOS](#ios) o [Crear un proyecto](/start/create-project).

### iOS

Expand Down Expand Up @@ -319,14 +319,14 @@ Asegúrate de haber instalado Xcode y no Xcode Command Line Tools en la [secció
brew install cocoapods
```

Siguiente: [Crear un proyecto](/guides/create/).
Siguiente: [Crear un proyecto](/start/create-project).

## Solución de Problemas

Si tienes algún problema durante la instalación, asegúrate de revisar la [Guía de Solución de Problemas](/guides/troubleshoot) o comunícate en el [Discord de Tauri](https://discord.com/invite/tauri).
Si tienes algún problema durante la instalación, asegúrate de revisar la [Guía de Solución de Problemas](/develop/debug) o comunícate en el [Discord de Tauri](https://discord.com/invite/tauri).

<Card title="Siguientes Pasos" icon="rocket">

¡Ahora que has instalado todos los prerequisitos estás listo para [crear tu primer proyecto Tauri](/guides/create/)!
¡Ahora que has instalado todos los prerequisitos estás listo para [crear tu primer proyecto Tauri](/start/create-project)!

</Card>
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,6 @@ tauri = { version = "...", features = ["...", "devtools"] }

Le processus Core est alimenté par Rust, vous pouvez donc utiliser GDB ou LLDB pour le déboguer. Vous pouvez suivre le guide [Débogage dans VS Code][] pour apprendre à utiliser l'extension LLDB VS Code pour déboguer le processus principal des applications Tauri.

[Débogage dans VS Code]: /fr/guides/debug/vs-code
[Débogage dans VS Code]: /fr/develop/debug/vscode
[`WebviewWindow::open_devtools`]: https://docs.rs/tauri/2.0.0-beta/tauri/webview/struct.WebviewWindow.html#method.open_devtools
[`WebviewWindow::close_devtools`]: https://docs.rs/tauri/2.0.0-beta/tauri/webview/struct.WebviewWindow.html#method.close_devtools
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ import { LinkCard, CardGrid } from '@astrojs/starlight/components';
title="Débogage de l'application"
href="/fr/guides/debug/application/"
/>
<LinkCard title="Débogage dans VS Code" href="/fr/guides/debug/vs-code" />
<LinkCard title="Débogage dans VS Code" href="/fr/develop/debug/vscode" />
<LinkCard title="Debug in CLion" href="/fr/guides/debug/clion" />
</CardGrid>
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,21 @@ Un framework manque à la liste ? Il peut fonctionner avec Tauri sans configurat
## JavaScript

<CardGrid>
<LinkCard title="Next.js" href="/fr/guides/frontend/nextjs" />
<LinkCard title="Nuxt" href="/fr/guides/frontend/nuxt" />
<LinkCard title="Qwik" href="/fr/guides/frontend/qwik" />
<LinkCard title="Svelte" href="/fr/guides/frontend/svelte" />
<LinkCard title="Vite" href="/fr/guides/frontend/vite" />
<LinkCard title="Webpack" href="/fr/guides/frontend/webpack" />
<LinkCard title="Next.js" href="/fr/start/frontend-configuration/nextjs" />
<LinkCard title="Nuxt" href="/fr/start/frontend-configuration/nuxt" />
<LinkCard title="Qwik" href="/fr/start/frontend-configuration/qwik" />
<LinkCard title="Svelte" href="/fr/start/frontend-configuration/svelte" />
<LinkCard title="Vite" href="/fr/start/frontend-configuration/vite" />
<LinkCard title="Webpack" href="/fr/start/frontend-configuration/webpack" />
</CardGrid>

## Rust

<CardGrid>
<LinkCard title="Leptos" href="/fr/guides/frontend/leptos" />
<LinkCard title="Sycamore" href="/fr/guides/frontend/sycamore" />
<LinkCard title="Trunk" href="/fr/guides/frontend/trunk" />
<LinkCard title="Yew" href="/fr/guides/frontend/yew" />
<LinkCard title="Leptos" href="/fr/start/frontend-configuration/leptos" />
<LinkCard title="Sycamore" href="/fr/start/frontend-configuration/sycamore" />
<LinkCard title="Trunk" href="/fr/start/frontend-configuration/trunk" />
<LinkCard title="Yew" href="/fr/start/frontend-configuration/yew" />
</CardGrid>

## Instructions de Configuration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ Voici le fichier contenant le script: [rustup.sh](https://sh.rustup.rs/)

Assurez-vous de relancer votre terminal (et parfois votre système) pour que les modifications prennent effet.

Suivant: [Configuration pour Mobile](#configuration-pour-mobile) si vous voulez construire une application pour Android et iOS. Dans le cas contraire, [Create a Project](/guides/create/).
Suivant: [Configuration pour Mobile](#configuration-pour-mobile) si vous voulez construire une application pour Android et iOS. Dans le cas contraire, [Create a Project](/start/create-project).

## Configuration pour Mobile

Expand Down Expand Up @@ -286,7 +286,7 @@ rustup target add aarch64-linux-android armv7-linux-androideabi i686-linux-andro
</TabItem>
</Tabs>

Suivant: [Installation pour Android](#ios) ou [Create a project](/guides/create/).
Suivant: [Installation pour Android](#ios) ou [Create a project](/start/create-project).

### iOS

Expand All @@ -302,14 +302,14 @@ rustup target add aarch64-apple-ios x86_64-apple-ios aarch64-apple-ios-sim

Assurez-vous d'avoir installé Xcode et non Xcode Command Line Tools dans la section [Dépendances systèmes macOS](#macos).

Suivant: [Create a project](/guides/create/).
Suivant: [Create a project](/start/create-project).

## Problèmes

Si vous rencontrez un problème durant l'installation, assurez-vous de consulter le [guide de résolution de problèmes](/guides/troubleshoot/) ou rejoignez le [Discord de Tauri](https://discord.com/invite/tauri)
Si vous rencontrez un problème durant l'installation, assurez-vous de consulter le [guide de résolution de problèmes](/develop/debug/) ou rejoignez le [Discord de Tauri](https://discord.com/invite/tauri)

<Card title="Next Steps" icon="rocket">

Maintenant que vous avez installé tous les prérequis, vous êtes fin prêt pour [créer votre premier projet Tauri](/guides/create/) !
Maintenant que vous avez installé tous les prérequis, vous êtes fin prêt pour [créer votre premier projet Tauri](/start/create-project) !

</Card>
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Tauri v2 contient la commande `migrate` qui simplifie votre migration:

{/* TODO: 2.0 */}

Apprenez-en plus à-propos de la commande `migrate` dans l'[interface de référence des commandes](/references/v2/cli#migrate)
Apprenez-en plus à-propos de la commande `migrate` dans l'[interface de référence des commandes](/references/cli#migrate)

## Sommaire des Changements

Expand All @@ -42,7 +42,7 @@ Voici ci-dessous un sommaire des changement entre Tauri 1.0 et Tauri 2.0:
- `tauri > updater > endpoints` déplacé vers `plugins > updater`.
- `tauri > systemTray` renomé en `tauri > trayIcon`.

[Référence de l'API de configuration de Tauri 2.0](/references/v2/config)
[Référence de l'API de configuration de Tauri 2.0](/references/config)

### Nouvelles Fonctionnalités de Cargo

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/content/docs/_ko/guides/debug/application.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,6 @@ tauri = { version = "...", features = ["...", "devtools"] }

핵심 프로세스는 Rust로 구동되므로 GDB 또는 LLDB를 사용하여 디버깅할 수 있습니다. [VS Code에서 디버깅][] 가이드에 따라 LLDB VS Code 확장을 사용하여 Tauri 애플리케이션의 핵심 프로세스를 디버깅하는 방법을 알아볼 수 있습니다.

[VS Code에서 디버깅]: /ko/guides/debug/vs-code
[VS Code에서 디버깅]: /ko/develop/debug/vscode
[`WebviewWindow::open_devtools`]: https://docs.rs/tauri/2.0.0-beta/tauri/webview/struct.WebviewWindow.html#method.open_devtools
[`WebviewWindow::close_devtools`]: https://docs.rs/tauri/2.0.0-beta/tauri/webview/struct.WebviewWindow.html#method.close_devtools
2 changes: 1 addition & 1 deletion src/content/docs/_ko/guides/test/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ import { LinkCard, CardGrid } from '@astrojs/starlight/components';

<CardGrid>
<LinkCard title="Tauri API 모킹" href="/ko/guides/test/mocking/" />
<LinkCard title="WebDriver" href="/ko/guides/test/webdriver" />
<LinkCard title="WebDriver" href="/ko/test/webdriver" />
</CardGrid>
2 changes: 1 addition & 1 deletion src/content/docs/_ko/guides/test/webdriver/ci.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ jobs:
working-directory: webdriver/webdriverio
```
[previously built together]: /ko/guides/test/webdriver/example/webdriverio
[previously built together]: /ko/test/webdriver/example/webdriverio
[webdriver]: https://www.w3.org/TR/webdriver/
[`tauri-driver`]: https://crates.io/crates/tauri-driver
[webdriverio]: https://webdriver.io/
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ simply with

## Testing

Unlike the [WebdriverIO Test Suite](/ko/guides/test/webdriver/example/webdriverio#config), Selenium does not come out of the box with a Test Suite and
Unlike the [WebdriverIO Test Suite](/ko/test/webdriver/example/webdriverio#config), Selenium does not come out of the box with a Test Suite and
leaves it up to the developer to build those out. We chose [Mocha], which is pretty neutral and not related to WebDrivers, so our script will need to do a bit of work to set up everything for us in the correct order. [Mocha] expects a
testing file at `test/test.js` by default, so let's create that file now.

Expand Down Expand Up @@ -156,7 +156,7 @@ describe('Hello Tauri', () => {
If you are familiar with JS testing frameworks, `describe`, `it`, and `expect` should look familiar. We also have
semi-complex `before()` and `after()` callbacks to set up and teardown mocha. Lines that are not the tests themselves
have comments explaining the setup and teardown code. If you were familiar with the Spec file from the
[WebdriverIO example](/ko/guides/test/webdriver/example/webdriverio#spec), you notice a lot more code that isn't tests, as we have to set up a few
[WebdriverIO example](/ko/test/webdriver/example/webdriverio#spec), you notice a lot more code that isn't tests, as we have to set up a few
more WebDriver related items.

## Running the Test Suite
Expand Down Expand Up @@ -190,7 +190,7 @@ tests!
With [Selenium] and some hooking up to a test suite, we just enabled e2e testing without modifying our Tauri
application at all!

[example application setup]: /ko/guides/test/webdriver/example/setup
[example application setup]: /ko/test/webdriver/example/
[selenium]: https://selenium.dev/
[finished example project]: https://github.com/chippers/hello_tauri
[mocha]: https://mochajs.org/
Expand Down
8 changes: 4 additions & 4 deletions src/content/docs/_ko/guides/test/webdriver/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -40,22 +40,22 @@ Make sure to grab the version of [Microsoft Edge Driver][] that matches your Win
import { LinkCard, CardGrid } from '@astrojs/starlight/components';

<CardGrid>
<LinkCard title="예제 설정" href="/ko/guides/test/webdriver/example/setup" />
<LinkCard title="예제 설정" href="/ko/test/webdriver/example/" />
<LinkCard
title="Selenium"
href="/ko/guides/test/webdriver/example/selenium"
href="/ko/test/webdriver/example/selenium"
/>
<LinkCard
title="WebdriverIO"
href="/ko/guides/test/webdriver/example/webdriverio"
href="/ko/test/webdriver/example/webdriverio"
/>
</CardGrid>

## 지속적 통합 (CI)

The above examples also comes with a CI script to test with GitHub actions, but you may still be interested in the below WebDriver CI guide as it explains the concept a bit more.

<LinkCard title="지속적 통합 (CI)" href="/ko/guides/test/webdriver/ci" />
<LinkCard title="지속적 통합 (CI)" href="/ko/test/webdriver/ci" />

[webdriver]: https://www.w3.org/TR/webdriver/
[`tauri-driver`]: https://crates.io/crates/tauri-driver
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ fn run() {
默认情况下,所有插件命令都被阻止,无法访问。
你必须在你的 `capabilities` 配置中定义一个权限列表。

更多信息请参见[访问控制列表](/zh-cn/references/v2/acl)
更多信息请参见[访问控制列表](/zh-cn/references/acl)

```json title="src-tauri/capabilities/main.json"
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ scan({ windowed: true, formats: [Format.QRCode] });
默认情况下,所有插件命令都被阻止,无法访问。
你必须在你的 `capabilities` 配置中定义一个权限列表。

更多信息请参见[访问控制列表](/zh-cn/references/v2/acl)
更多信息请参见[访问控制列表](/zh-cn/references/acl)

```json title="src-tauri/capabilities/mobile.json"
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ fn run() {
默认情况下,所有插件命令都被阻止,无法访问。
你必须在你的 `capabilities` 配置中定义一个权限列表。
更多信息请参见[访问控制列表](/zh-cn/references/v2/acl)。
更多信息请参见[访问控制列表](/zh-cn/references/acl)。
```json title="src-tauri/capabilities/main.json" ins={6}
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ fn run() {
默认情况下,所有插件命令都被阻止,无法访问。
你必须在你的 `capabilities` 配置中定义一个权限列表。

更多信息请参见[访问控制列表](/zh-cn/references/v2/acl)
更多信息请参见[访问控制列表](/zh-cn/references/acl)

```json title="src-tauri/capabilities/main.json" ins={9}
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ import CommandTabs from '@components/CommandTabs.astro';

### JavaScript

可以在 JavaScript API 参考中查看所有 [Dialog 选项](/references/v2/js/dialog/)
可以在 JavaScript API 参考中查看所有 [Dialog 选项](/references/js/dialog/)

{/* ASK */}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,13 @@ fn run() {

这个模块阻止路径遍历,不允许绝对路径或父目录组件(即 `/usr/path/to/file``../path/to/file` 路径是不允许的)。使用这个 API 访问的路径必须相对于一个基本目录,因此如果你需要访问任意的文件系统路径,你必须在核心层上编写这样的逻辑。

更多信息请参见 [@tauri-apps/plugin-fs - Security](/references/v2/js/fs/#security)
更多信息请参见 [@tauri-apps/plugin-fs - Security](/references/js/fs/#security)

## 权限

默认情况下,所有插件命令都被阻止,无法访问。你必须在你的 `capabilities` 配置中定义一个权限列表。

更多信息请参见[访问控制列表](/zh-cn/references/v2/acl)
更多信息请参见[访问控制列表](/zh-cn/references/acl)

```json title="src-tauri/capabilities/main.json" ins={7-11}
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ fn run() {

默认情况下,所有插件命令都被阻止,无法访问。你必须在你的 `capabilities` 配置中定义一个权限列表。

更多信息请参见[访问控制列表](/zh-cn/references/v2/acl)
更多信息请参见[访问控制列表](/zh-cn/references/acl)

```json title="src-tauri/capabilities/main.json" ins={7-9}
{
Expand Down
Loading

0 comments on commit 89cbf78

Please sign in to comment.