From 17aeb9ef945848befdbce0be76ffbeffe27c24d6 Mon Sep 17 00:00:00 2001 From: Aylur Date: Tue, 12 Nov 2024 01:22:51 +0000 Subject: docs: remove ags related docs ags documentation will live on its own site --- docs/guide/typescript/cli-app.md | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) (limited to 'docs/guide/typescript/cli-app.md') diff --git a/docs/guide/typescript/cli-app.md b/docs/guide/typescript/cli-app.md index 85b117c..9217acc 100644 --- a/docs/guide/typescript/cli-app.md +++ b/docs/guide/typescript/cli-app.md @@ -6,7 +6,6 @@ Depending on gtk version import paths will differ ```ts import { App } from "astal/gtk3" - import { App } from "astal/gtk4" ``` @@ -53,20 +52,11 @@ App.start({ }) ``` -:::code-group - -```sh [astal] +```sh astal say hi # hi cli ``` -```sh [ags] -ags request "say hi" -# hi cli -``` - -::: - If you want to run arbitrary JavaScript from CLI, you can use `App.eval` which will evaluate the passed string as the body of an `async` function. @@ -128,18 +118,10 @@ When assigning the `application` prop make sure `name` comes before. Props are set sequentially and if name is applied after application it won't work. ::: -:::code-group - ```sh [astal] astal -t Bar ``` -```sh [ags] -ags toggle Bar -``` - -::: - ## Bundled scripts The produced scripts when bundling can run as the main instance -- cgit v1.2.3 From 03a062b1cdcad9655a132fa03bf80fea21e94fc8 Mon Sep 17 00:00:00 2001 From: Aylur Date: Wed, 13 Nov 2024 22:18:51 +0000 Subject: docs: fix import paths --- docs/guide/typescript/cli-app.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/guide/typescript/cli-app.md') diff --git a/docs/guide/typescript/cli-app.md b/docs/guide/typescript/cli-app.md index 9217acc..9fa307c 100644 --- a/docs/guide/typescript/cli-app.md +++ b/docs/guide/typescript/cli-app.md @@ -92,7 +92,7 @@ In order for Astal to know about your windows, you have to register them. You can do this by specifying a **unique** `name` and calling `App.add_window` ```tsx {4} -import { App } from "astal" +import { App } from "astal/gtk3" function Bar() { return App.add_window(self)}> @@ -104,7 +104,7 @@ function Bar() { You can also invoke `App.add_window` by simply passing the `App` to the `application` prop. ```tsx {4} -import { App } from "astal" +import { App } from "astal/gtk3" function Bar() { return -- cgit v1.2.3 From 5a09ab8c27579b417ee6259b6bcf8e3e3aa78449 Mon Sep 17 00:00:00 2001 From: Aylur <104676705+Aylur@users.noreply.github.com> Date: Fri, 15 Nov 2024 13:42:27 +0100 Subject: Update cli-app.md --- docs/guide/typescript/cli-app.md | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'docs/guide/typescript/cli-app.md') diff --git a/docs/guide/typescript/cli-app.md b/docs/guide/typescript/cli-app.md index 9fa307c..9b299aa 100644 --- a/docs/guide/typescript/cli-app.md +++ b/docs/guide/typescript/cli-app.md @@ -122,12 +122,9 @@ Props are set sequentially and if name is applied after application it won't wor astal -t Bar ``` -## Bundled scripts +## Client -The produced scripts when bundling can run as the main instance -and a "client" instance. - -The first time you execute your bundled script the `main` function gets called. +The first time you execute your script the `main` function gets called. While that instance is running any subsequent execution of the script will call the `client` function. -- cgit v1.2.3