diff --git a/astro.config.mjs b/astro.config.mjs
index 5a9ad7849..f4b1a05a2 100644
--- a/astro.config.mjs
+++ b/astro.config.mjs
@@ -96,8 +96,8 @@ export default defineConfig({
{
tag: 'script',
attrs: {
- src: '/navigate.js'
- }
+ src: '/navigate.js',
+ },
},
],
// TODO: Be sure this is updated when the branch is switched
diff --git a/public/navigate.js b/public/navigate.js
index b876205cd..5deb73662 100644
--- a/public/navigate.js
+++ b/public/navigate.js
@@ -1,45 +1,45 @@
async function chapterNavigation() {
- let navigating = false
- document.addEventListener("keydown", function (e) {
- if (navigating) return
- if (e.altKey || e.ctrlKey || e.metaKey) {
- return;
- }
- if (window.search && document.activeElement === window.search) {
- return;
- }
-
- switch (e.key) {
- case "ArrowLeft":
- e.preventDefault();
- let previousButton = document.querySelector('a[rel="prev"]');
- if (!previousButton && window.location.pathname !== '/') previousButton = { href: '/' }
-
- if (document.referrer.includes(window.location.host))
- if (previousButton) {
- window.location.href = previousButton.href;
- navigating = true;
- }
- break;
- case "ArrowRight":
- e.preventDefault();
- let nextButton = document.querySelector('a[rel="next"]');
- if (!nextButton && window.location.pathname === '/') nextButton = { href: "/start/" }
-
- if (nextButton) {
- window.location.href = nextButton.href;
- navigating = true;
- }
- break;
- }
- });
- };
-
- window.addEventListener('DOMContentLoaded', () => {
- chapterNavigation()
- })
-
- window.onload = function () {
- document.body.setAttribute('tabindex', '-1');
- document.body.focus();
- };
\ No newline at end of file
+ let navigating = false;
+ document.addEventListener('keydown', function (e) {
+ if (navigating) return;
+ if (e.altKey || e.ctrlKey || e.metaKey) {
+ return;
+ }
+ if (window.search && document.activeElement === window.search) {
+ return;
+ }
+
+ switch (e.key) {
+ case 'ArrowLeft':
+ e.preventDefault();
+ let previousButton = document.querySelector('a[rel="prev"]');
+ if (!previousButton && window.location.pathname !== '/') previousButton = { href: '/' };
+
+ if (document.referrer.includes(window.location.host))
+ if (previousButton) {
+ window.location.href = previousButton.href;
+ navigating = true;
+ }
+ break;
+ case 'ArrowRight':
+ e.preventDefault();
+ let nextButton = document.querySelector('a[rel="next"]');
+ if (!nextButton && window.location.pathname === '/') nextButton = { href: '/start/' };
+
+ if (nextButton) {
+ window.location.href = nextButton.href;
+ navigating = true;
+ }
+ break;
+ }
+ });
+}
+
+window.addEventListener('DOMContentLoaded', () => {
+ chapterNavigation();
+});
+
+window.onload = function () {
+ document.body.setAttribute('tabindex', '-1');
+ document.body.focus();
+};
diff --git a/src/content/docs/_ko/guides/test/webdriver/index.mdx b/src/content/docs/_ko/guides/test/webdriver/index.mdx
index ac14f5346..d21ae3d12 100644
--- a/src/content/docs/_ko/guides/test/webdriver/index.mdx
+++ b/src/content/docs/_ko/guides/test/webdriver/index.mdx
@@ -41,14 +41,8 @@ import { LinkCard, CardGrid } from '@astrojs/starlight/components';
-
-
+
+
## 지속적 통합 (CI)
diff --git a/src/content/docs/_zh-cn/guides/frontend/index.mdx b/src/content/docs/_zh-cn/guides/frontend/index.mdx
index f40824ea9..360ae9616 100644
--- a/src/content/docs/_zh-cn/guides/frontend/index.mdx
+++ b/src/content/docs/_zh-cn/guides/frontend/index.mdx
@@ -23,14 +23,20 @@ Tauri 与前端无关,支持大多数开箱即用的前端框架。但是,
-
+
## Rust
-
+
diff --git a/src/content/docs/_zh-cn/guides/test/webdriver/index.mdx b/src/content/docs/_zh-cn/guides/test/webdriver/index.mdx
index 32edb1841..1aef1da08 100644
--- a/src/content/docs/_zh-cn/guides/test/webdriver/index.mdx
+++ b/src/content/docs/_zh-cn/guides/test/webdriver/index.mdx
@@ -41,10 +41,7 @@ import { LinkCard, CardGrid } from '@astrojs/starlight/components';
-
+
-
-
\ No newline at end of file
diff --git a/src/content/docs/develop/Debug/index.mdx b/src/content/docs/develop/Debug/index.mdx
index 404e6f641..ca8a9e521 100644
--- a/src/content/docs/develop/Debug/index.mdx
+++ b/src/content/docs/develop/Debug/index.mdx
@@ -2,7 +2,7 @@
title: Debug
sidebar:
label: Overview
- badge:
+ badge:
text: WIP
variant: caution
---
@@ -10,5 +10,3 @@ sidebar:
import Stub from '@components/Stub.astro';
-
-
\ No newline at end of file
diff --git a/src/content/docs/develop/Debug/intellij.mdx b/src/content/docs/develop/Debug/intellij.mdx
index 14137de3d..a6472dbf1 100644
--- a/src/content/docs/develop/Debug/intellij.mdx
+++ b/src/content/docs/develop/Debug/intellij.mdx
@@ -1,7 +1,7 @@
---
title: Debug in IntelliJ
sidebar:
- badge:
+ badge:
text: WIP
variant: caution
---
diff --git a/src/content/docs/develop/Debug/vscode.mdx b/src/content/docs/develop/Debug/vscode.mdx
index 0524f4d11..8662c83ea 100644
--- a/src/content/docs/develop/Debug/vscode.mdx
+++ b/src/content/docs/develop/Debug/vscode.mdx
@@ -1,7 +1,7 @@
---
title: Debug in VS Code
sidebar:
- badge:
+ badge:
text: WIP
variant: caution
---
diff --git a/src/content/docs/develop/development-cycle.mdx b/src/content/docs/develop/development-cycle.mdx
index e8ff9a4cc..07e02de35 100644
--- a/src/content/docs/develop/development-cycle.mdx
+++ b/src/content/docs/develop/development-cycle.mdx
@@ -2,7 +2,7 @@
title: Development Cycle
sidebar:
order: 1
- badge:
+ badge:
text: WIP
variant: caution
---
diff --git a/src/content/docs/develop/index.mdx b/src/content/docs/develop/index.mdx
index 75f783f07..c14e19540 100644
--- a/src/content/docs/develop/index.mdx
+++ b/src/content/docs/develop/index.mdx
@@ -4,7 +4,7 @@ description: Core concepts for developing with Tauri.
sidebar:
order: 0
label: Overview
- badge:
+ badge:
text: WIP
variant: caution
---
@@ -12,5 +12,3 @@ sidebar:
import Stub from '@components/Stub.astro';
-
-
\ No newline at end of file
diff --git a/src/content/docs/develop/updating-dependencies.mdx b/src/content/docs/develop/updating-dependencies.mdx
index abc02f14a..0f4487652 100644
--- a/src/content/docs/develop/updating-dependencies.mdx
+++ b/src/content/docs/develop/updating-dependencies.mdx
@@ -2,7 +2,7 @@
title: Updating Dependencies
sidebar:
order: 1
- badge:
+ badge:
text: WIP
variant: caution
---
diff --git a/src/content/docs/distribute/Pipelines/github.mdx b/src/content/docs/distribute/Pipelines/github.mdx
index aa3f057ee..105ba75da 100644
--- a/src/content/docs/distribute/Pipelines/github.mdx
+++ b/src/content/docs/distribute/Pipelines/github.mdx
@@ -1,7 +1,7 @@
---
title: GitHub
sidebar:
- badge:
+ badge:
text: WIP
variant: caution
---
@@ -9,4 +9,3 @@ sidebar:
import Stub from '@components/Stub.astro';
-
diff --git a/src/content/docs/distribute/Pipelines/gitlab.mdx b/src/content/docs/distribute/Pipelines/gitlab.mdx
index 7d109ee55..9ad01c03f 100644
--- a/src/content/docs/distribute/Pipelines/gitlab.mdx
+++ b/src/content/docs/distribute/Pipelines/gitlab.mdx
@@ -1,7 +1,7 @@
---
title: GitLab
sidebar:
- badge:
+ badge:
text: WIP
variant: caution
---
@@ -9,4 +9,3 @@ sidebar:
import Stub from '@components/Stub.astro';
-
diff --git a/src/content/docs/distribute/Pipelines/index.mdx b/src/content/docs/distribute/Pipelines/index.mdx
index e735c050d..11cac5756 100644
--- a/src/content/docs/distribute/Pipelines/index.mdx
+++ b/src/content/docs/distribute/Pipelines/index.mdx
@@ -10,4 +10,3 @@ sidebar:
import Stub from '@components/Stub.astro';
-
diff --git a/src/content/docs/distribute/app-store.mdx b/src/content/docs/distribute/app-store.mdx
index 1b1aee407..355c5c894 100644
--- a/src/content/docs/distribute/app-store.mdx
+++ b/src/content/docs/distribute/app-store.mdx
@@ -2,7 +2,7 @@
title: App Store
sidebar:
order: 1
- badge:
+ badge:
text: WIP
variant: caution
---
@@ -10,4 +10,3 @@ sidebar:
import Stub from '@components/Stub.astro';
-
diff --git a/src/content/docs/distribute/debian.mdx b/src/content/docs/distribute/debian.mdx
index 97414c317..1d20e159b 100644
--- a/src/content/docs/distribute/debian.mdx
+++ b/src/content/docs/distribute/debian.mdx
@@ -2,7 +2,7 @@
title: Debian
sidebar:
order: 1
- badge:
+ badge:
text: WIP
variant: caution
---
@@ -10,4 +10,3 @@ sidebar:
import Stub from '@components/Stub.astro';
-
diff --git a/src/content/docs/distribute/index.mdx b/src/content/docs/distribute/index.mdx
index babed8ca3..dc7fa1351 100644
--- a/src/content/docs/distribute/index.mdx
+++ b/src/content/docs/distribute/index.mdx
@@ -3,7 +3,7 @@ title: Distribute
sidebar:
order: 0
label: Overview
- badge:
+ badge:
text: WIP
variant: caution
---
@@ -11,4 +11,3 @@ sidebar:
import Stub from '@components/Stub.astro';
-
diff --git a/src/content/docs/distribute/play-store.mdx b/src/content/docs/distribute/play-store.mdx
index 2313d0ee5..bf0883060 100644
--- a/src/content/docs/distribute/play-store.mdx
+++ b/src/content/docs/distribute/play-store.mdx
@@ -2,7 +2,7 @@
title: Play Store
sidebar:
order: 1
- badge:
+ badge:
text: WIP
variant: caution
---
@@ -10,4 +10,3 @@ sidebar:
import Stub from '@components/Stub.astro';
-
diff --git a/src/content/docs/distribute/steam.mdx b/src/content/docs/distribute/steam.mdx
index be89fe792..feb4079b7 100644
--- a/src/content/docs/distribute/steam.mdx
+++ b/src/content/docs/distribute/steam.mdx
@@ -2,7 +2,7 @@
title: Steam
sidebar:
order: 1
- badge:
+ badge:
text: WIP
variant: caution
---
@@ -10,4 +10,3 @@ sidebar:
import Stub from '@components/Stub.astro';
-
diff --git a/src/content/docs/features/updater.mdx b/src/content/docs/features/updater.mdx
index 9087382ef..e1372b826 100644
--- a/src/content/docs/features/updater.mdx
+++ b/src/content/docs/features/updater.mdx
@@ -13,6 +13,5 @@ import PluginLinks from '@components/PluginLinks.astro';
- Based on
- https://github.com/tauri-apps/plugins-workspace/tree/plugins/updater
+ Based on https://github.com/tauri-apps/plugins-workspace/tree/plugins/updater
diff --git a/src/content/docs/security/index.mdx b/src/content/docs/security/index.mdx
index d009a345e..c9489ce5c 100644
--- a/src/content/docs/security/index.mdx
+++ b/src/content/docs/security/index.mdx
@@ -51,10 +51,7 @@ Learn more about the individual components and boundary enforcement:
-
+
Tauri allows developers to choose their own frontend stack and framework.
@@ -62,10 +59,7 @@ This means that we cannot provide a hardening guide for every frontend stack of
of choice, but Tauri provides generic features to control and contain the attack surface.
-
+
diff --git a/src/content/docs/start/Frontend Configuration/leptos.mdx b/src/content/docs/start/Frontend Configuration/leptos.mdx
index cab6b7788..cf1d09cae 100644
--- a/src/content/docs/start/Frontend Configuration/leptos.mdx
+++ b/src/content/docs/start/Frontend Configuration/leptos.mdx
@@ -1,7 +1,7 @@
---
title: Leptos
sidebar:
- badge:
+ badge:
text: WIP
variant: caution
---
diff --git a/src/content/docs/start/Frontend Configuration/qwik.mdx b/src/content/docs/start/Frontend Configuration/qwik.mdx
index 4d2ed6e09..e51537d35 100644
--- a/src/content/docs/start/Frontend Configuration/qwik.mdx
+++ b/src/content/docs/start/Frontend Configuration/qwik.mdx
@@ -1,7 +1,7 @@
---
title: Qwik
sidebar:
- badge:
+ badge:
text: WIP
variant: caution
---
diff --git a/src/content/docs/start/Frontend Configuration/svelte.mdx b/src/content/docs/start/Frontend Configuration/svelte.mdx
index 853e791fe..a1d54b5a9 100644
--- a/src/content/docs/start/Frontend Configuration/svelte.mdx
+++ b/src/content/docs/start/Frontend Configuration/svelte.mdx
@@ -1,7 +1,7 @@
---
title: Svelte
sidebar:
- badge:
+ badge:
text: WIP
variant: caution
---
diff --git a/src/content/docs/start/Frontend Configuration/sycamore.mdx b/src/content/docs/start/Frontend Configuration/sycamore.mdx
index bc773d67a..220af472d 100644
--- a/src/content/docs/start/Frontend Configuration/sycamore.mdx
+++ b/src/content/docs/start/Frontend Configuration/sycamore.mdx
@@ -1,7 +1,7 @@
---
title: Sycamore
sidebar:
- badge:
+ badge:
text: WIP
variant: caution
---
diff --git a/src/content/docs/start/Frontend Configuration/vite.mdx b/src/content/docs/start/Frontend Configuration/vite.mdx
index 6a7c7fca3..4e50c637b 100644
--- a/src/content/docs/start/Frontend Configuration/vite.mdx
+++ b/src/content/docs/start/Frontend Configuration/vite.mdx
@@ -1,7 +1,7 @@
---
title: Vite
sidebar:
- badge:
+ badge:
text: WIP
variant: caution
---
diff --git a/src/content/docs/start/Frontend Configuration/webpack.mdx b/src/content/docs/start/Frontend Configuration/webpack.mdx
index a34ef3967..acf7c7119 100644
--- a/src/content/docs/start/Frontend Configuration/webpack.mdx
+++ b/src/content/docs/start/Frontend Configuration/webpack.mdx
@@ -1,7 +1,7 @@
---
title: Webpack
sidebar:
- badge:
+ badge:
text: WIP
variant: caution
---
diff --git a/src/content/docs/start/Frontend Configuration/yew.mdx b/src/content/docs/start/Frontend Configuration/yew.mdx
index 39263490f..477487161 100644
--- a/src/content/docs/start/Frontend Configuration/yew.mdx
+++ b/src/content/docs/start/Frontend Configuration/yew.mdx
@@ -1,7 +1,7 @@
---
title: Yew
sidebar:
- badge:
+ badge:
text: WIP
variant: caution
---
diff --git a/src/content/docs/start/create-project.mdx b/src/content/docs/start/create-project.mdx
index 12e70e141..927c7a192 100644
--- a/src/content/docs/start/create-project.mdx
+++ b/src/content/docs/start/create-project.mdx
@@ -2,7 +2,7 @@
title: Create a Project
sidebar:
order: 3
- badge:
+ badge:
text: WIP
variant: caution
---
diff --git a/src/content/docs/test/Pipelines/github.mdx b/src/content/docs/test/Pipelines/github.mdx
index aa3f057ee..105ba75da 100644
--- a/src/content/docs/test/Pipelines/github.mdx
+++ b/src/content/docs/test/Pipelines/github.mdx
@@ -1,7 +1,7 @@
---
title: GitHub
sidebar:
- badge:
+ badge:
text: WIP
variant: caution
---
@@ -9,4 +9,3 @@ sidebar:
import Stub from '@components/Stub.astro';
-
diff --git a/src/content/docs/test/Pipelines/gitlab.mdx b/src/content/docs/test/Pipelines/gitlab.mdx
index 7d109ee55..9ad01c03f 100644
--- a/src/content/docs/test/Pipelines/gitlab.mdx
+++ b/src/content/docs/test/Pipelines/gitlab.mdx
@@ -1,7 +1,7 @@
---
title: GitLab
sidebar:
- badge:
+ badge:
text: WIP
variant: caution
---
@@ -9,4 +9,3 @@ sidebar:
import Stub from '@components/Stub.astro';
-
diff --git a/src/content/docs/test/Pipelines/index.mdx b/src/content/docs/test/Pipelines/index.mdx
index e409322a3..11cac5756 100644
--- a/src/content/docs/test/Pipelines/index.mdx
+++ b/src/content/docs/test/Pipelines/index.mdx
@@ -2,7 +2,7 @@
title: Overview
sidebar:
order: 10
- badge:
+ badge:
text: WIP
variant: caution
---
@@ -10,4 +10,3 @@ sidebar:
import Stub from '@components/Stub.astro';
-
diff --git a/src/content/docs/test/WebDriver/Example/index.mdx b/src/content/docs/test/WebDriver/Example/index.mdx
index ebb590cad..dfe72e0e7 100644
--- a/src/content/docs/test/WebDriver/Example/index.mdx
+++ b/src/content/docs/test/WebDriver/Example/index.mdx
@@ -2,7 +2,7 @@
title: Setup
sidebar:
order: 30
- badge:
+ badge:
text: WIP
variant: caution
---
diff --git a/src/content/docs/test/WebDriver/Example/selenium.mdx b/src/content/docs/test/WebDriver/Example/selenium.mdx
index e69ba3b49..d83348cf0 100644
--- a/src/content/docs/test/WebDriver/Example/selenium.mdx
+++ b/src/content/docs/test/WebDriver/Example/selenium.mdx
@@ -2,7 +2,7 @@
title: Selenium
sidebar:
order: 31
- badge:
+ badge:
text: WIP
variant: caution
---
diff --git a/src/content/docs/test/WebDriver/Example/webdriverio.mdx b/src/content/docs/test/WebDriver/Example/webdriverio.mdx
index d3e221104..8bce2b038 100644
--- a/src/content/docs/test/WebDriver/Example/webdriverio.mdx
+++ b/src/content/docs/test/WebDriver/Example/webdriverio.mdx
@@ -2,7 +2,7 @@
title: WebdriverIO
sidebar:
order: 31
- badge:
+ badge:
text: WIP
variant: caution
---
diff --git a/src/content/docs/test/WebDriver/ci.md b/src/content/docs/test/WebDriver/ci.md
index 59bb16812..047e0e510 100644
--- a/src/content/docs/test/WebDriver/ci.md
+++ b/src/content/docs/test/WebDriver/ci.md
@@ -3,7 +3,7 @@ title: Continuous Integration
description: WebDriver Testing
sidebar:
order: 21
- badge:
+ badge:
text: WIP
variant: caution
---
diff --git a/src/content/docs/test/WebDriver/index.mdx b/src/content/docs/test/WebDriver/index.mdx
index b64c453a7..ec3821b20 100644
--- a/src/content/docs/test/WebDriver/index.mdx
+++ b/src/content/docs/test/WebDriver/index.mdx
@@ -4,7 +4,7 @@ description: WebDriver Testing
sidebar:
order: 10
label: Overview
- badge:
+ badge:
text: WIP
variant: caution
---
@@ -72,10 +72,7 @@ import { LinkCard, CardGrid } from '@astrojs/starlight/components';
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.
-
+
[webdriver]: https://www.w3.org/TR/webdriver/
[`tauri-driver`]: https://crates.io/crates/tauri-driver
diff --git a/src/content/docs/test/index.mdx b/src/content/docs/test/index.mdx
index aa15667e3..901b57f23 100644
--- a/src/content/docs/test/index.mdx
+++ b/src/content/docs/test/index.mdx
@@ -4,7 +4,7 @@ description: Techniques for testing inside and outside the Tauri runtime
sidebar:
order: 1
label: Overview
- badge:
+ badge:
text: WIP
variant: caution
---
@@ -12,4 +12,3 @@ sidebar:
import Stub from '@components/Stub.astro';
-
diff --git a/src/content/docs/test/mocking.md b/src/content/docs/test/mocking.md
index f4b7cfa07..d81e62840 100644
--- a/src/content/docs/test/mocking.md
+++ b/src/content/docs/test/mocking.md
@@ -2,7 +2,7 @@
title: Mock Tauri APIs
sidebar:
order: 1
- badge:
+ badge:
text: WIP
variant: caution
---
diff --git a/tsconfig.json b/tsconfig.json
index 5cd1cc849..3386006d8 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -5,7 +5,7 @@
"paths": {
"@components/*": ["src/components/*"],
"@assets/*": ["src/assets/*"],
- "@fragments/*": ["src/content/docs/_fragments/*"],
+ "@fragments/*": ["src/content/docs/_fragments/*"]
}
}
}