diff --git a/docs/common-pitfalls.mdx b/docs/common-pitfalls.mdx
index 1198f4d..aebbea8 100644
--- a/docs/common-pitfalls.mdx
+++ b/docs/common-pitfalls.mdx
@@ -13,7 +13,7 @@ export const getCode = name => {
return code.substring(start + startComment.length + 1, end);
};
-saucer aims to be easy to use and hard to misuse, however there are still some pitfalls saucer can't detect.
+The API aims to be easy to use and hard to misuse, however there are still some pitfalls saucer can't detect.
This page tries to document the most common mistakes and how to avoid them.
## Execution Order Matters
@@ -21,13 +21,13 @@ This page tries to document the most common mistakes and how to avoid them.
The order in which you call some methods matters!
Common mistakes that fall under this category are those, in which you call `set_url` _(or `serve`)_ before `expose`.
-
+
{getCode('execution-order-ill-formed')}
-In this example, it is not guaranteed that the function `add_random` is available to the web-page immediately after loading.
+In this case, it is not guaranteed that the function `add_random` is available to the web-page immediately.
To fix this issue simply re-order the code.
-
+
{getCode('execution-order-fixed')}
diff --git a/docs/getting-started/basic-app.mdx b/docs/getting-started/basic-app.mdx
index 328fa0a..72c19ef 100644
--- a/docs/getting-started/basic-app.mdx
+++ b/docs/getting-started/basic-app.mdx
@@ -4,8 +4,11 @@ sidebar_position: 2
# Your First Application
-In this chapter I'll explain how to setup a very basic saucer application.
-Make sure you've read the previous pages and have the system dependencies installed.
+> On this page you'll learn how to setup your very first saucer project.
+
+:::caution
+Make sure you've read the previous pages and have the system dependencies installed!
+:::
## CMake Setup
diff --git a/docs/getting-started/dependencies.mdx b/docs/getting-started/dependencies.mdx
index ac97f61..2cb98c5 100644
--- a/docs/getting-started/dependencies.mdx
+++ b/docs/getting-started/dependencies.mdx
@@ -7,23 +7,31 @@ import TabItem from '@theme/TabItem';
# Dependencies
-Saucer expects some dependencies to be installed on your system.
-We depend on fairly common packages to make sure that the installation will be as smooth as possible.
+Saucer relies on certain system-level dependencies that you are expected to have installed.
+These dependencies are fairly common though, so chances are you won't have to additionally instally anything.
-On Windows the WebView2 Runtime is required, which is usually already installed on the system and comes
-pre-installed on Windows 11.
-
-In case you don't have it installed already you can download it from Microsoft's official website [here](https://developer.microsoft.com/microsoft-edge/webview2/#download-section).
+On Windows the [WebView2 Runtime](https://developer.microsoft.com/microsoft-edge/webview2/#download-section) is required, which is usually already installed on the system and comes pre-installed since Windows 11.
-On Linux saucer depends on Qt (Qt5 and Qt6 are supported) as it is well established in the Linux world and most systems have it installed already.
+On Linux saucer depends on Qt5 or Qt6 as it is well established in the Linux world and most systems have it installed already.
+
+In case you dont have Qt installed on your system already, you may refer to your distribution on how to install the following packages:
+
+:::caution
+Package names may differ on your distribution!
+:::
-In case you dont have Qt installed on your system already, you may refer to your distrubtion on how to install the following packages: `qt5-qtwebengine qt5-qtwebchannel qt5-qtbase-gui qt5-qtbase` _(Names may differ depending on the distro used)_.
+
+
qt5-qtwebengine
+
qt5-qtwebchannel
+
qt5-qtbase-gui
+
qt5-qtbase
+
diff --git a/docs/getting-started/embedding.mdx b/docs/getting-started/embedding.mdx
index 25cb1eb..2f667c9 100644
--- a/docs/getting-started/embedding.mdx
+++ b/docs/getting-started/embedding.mdx
@@ -5,34 +5,39 @@ The easiest way to accomplish this is to use the [saucer-cli](https://github.com
## Pre-Requisites
-- Generate a static version of your website
-- In case you use a Router make sure it's supported, see [Common Pitfalls](../common-pitfalls)
+- A built version of your website _(that should consist of `.html`, `.js`, ... files)_
-## Recommended Usage
+## Usage
-We recommend that you use `saucer-cli` within the build script of your frontends `package.json`.
+### Recommended Usage
-Simply add `saucer-cli` as a dependency, i.e. `pnpm install saucer-cli`, and then modify your `package.json`:
+We recommend to use `saucer-cli` within your `package.json` build script.
+
+Simply add `saucer-cli` as a dependency _(i.e. `pnpm install saucer-cli`)_ and then conduct the following changes:
```json
{
// ...
"scripts": {
- "build": " && saucer embed dist"
+ "build": " && saucer embed "
}
+ // ...
}
```
### Manually Embedding Files
:::caution
-I do not recommend manually embedding the frontend files.
-Refer to [the recommended usage](#recommended-usage).
+Manually embedding is discouraged.
+Please prefer the method mentioned above!
:::
-First off, place all your web content into a single folder.
+First off, make sure you have the `saucer-cli` installed globally.
+This can be achieved by installing it as a global npm package: `npm i -g saucer-app`.
+
+Now place all your web content into a single folder.
-```text title="Example Folder Structure"
+```text title="Example: Folder Structure"
out
├── 404.html
├── icon.webp
@@ -60,7 +65,7 @@ out
└── _ssgManifest.js
```
-Now you can use the `saucer-cli` to generate the required embedding files.
+Use the `saucer-cli` to generate the required embedding files.
```bash title="Command Syntax"
saucer embed