From 000308d2b218306ffebc72ee65c10e36011c9fdf Mon Sep 17 00:00:00 2001 From: Curve Date: Mon, 2 Sep 2024 13:22:49 +0200 Subject: [PATCH] fix(docs): typos --- docs/advanced/schemes.mdx | 2 +- docs/frameless.mdx | 4 ++-- docs/getting-started/cmake.mdx | 2 +- docs/scripts.mdx | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/advanced/schemes.mdx b/docs/advanced/schemes.mdx index 146369d..455fadd 100644 --- a/docs/advanced/schemes.mdx +++ b/docs/advanced/schemes.mdx @@ -61,7 +61,7 @@ int main() } ``` -As you can see, the response consits of some `data` and the `mime`-type. Headers and the status-code can also be optionally specified. +As you can see, the response consists of some `data` and the `mime`-type. Headers and the status-code can also be optionally specified. ## Stash diff --git a/docs/frameless.mdx b/docs/frameless.mdx index 54fcb20..b27d631 100644 --- a/docs/frameless.mdx +++ b/docs/frameless.mdx @@ -58,7 +58,7 @@ int main() A frameless window can not be resized or moved by default. However, saucer supports the HTML Attributes `data-webview-drag` and `data-webview-resize` which can be used to conveniently add support for custom drag areas or resize-handles. -In the following example I'll demonstrate how to use the aforementioned methods to make a custom tilebar. +In the following example I'll demonstrate how to use the aforementioned methods to make a custom titlebar. ```html title="Sketch: Custom Titlebar"
@@ -95,7 +95,7 @@ window_edge: } ``` -The `data-webview-resize` attirbute should use the short-form of the given edges, e.g. _top-left_ as `tl`. +The `data-webview-resize` attribute should use the short-form of the given edges, e.g. _top-left_ as `tl`. :::tip Should an element trigger a move / resize when it shouldn't _(this can happen if the given element is a child of a parent with special attributes)_, you can give it the `data-webview-ignore` attribute. diff --git a/docs/getting-started/cmake.mdx b/docs/getting-started/cmake.mdx index 4a5705f..1cac111 100644 --- a/docs/getting-started/cmake.mdx +++ b/docs/getting-started/cmake.mdx @@ -12,7 +12,7 @@ There are several configurable CMake options. I'll quickly go over the most impo set(saucer_backend "Qt6") ``` -Define the backend to use. By default, the most appropiate for your platform will be used. +Define the backend to use. By default, the most appropriate for your platform will be used. ## Modules diff --git a/docs/scripts.mdx b/docs/scripts.mdx index e3965b8..5afc54b 100644 --- a/docs/scripts.mdx +++ b/docs/scripts.mdx @@ -4,7 +4,7 @@ sidebar_position: 2 # Script Injection -Sometimes you might want to inject cutom scripts into all loaded web-pages. +Sometimes you might want to inject custom scripts into all loaded web-pages. This can be easily achieved through `webview::inject`. ```cpp title="Example: Basic Script Injection" @@ -37,7 +37,7 @@ You can choose from `web_frame::all` or `web_frame::top`. ## Permanent Scripts :::note -This functionality is mainly inteded for language-bindings, as they may want to expose additional data to the JavaScript world. +This functionality is mainly intended for language-bindings, as they may want to expose additional data to the JavaScript world. ::: By default, all injected scripts will not be permanent, i.e. can be removed by calling `webview::clear_scripts`.