Skip to content

Commit

Permalink
Merge pull request #41 from Aylur/retire
Browse files Browse the repository at this point in the history
add legacy warning banner
  • Loading branch information
Aylur authored Nov 13, 2024
2 parents ef5359a + b5f2a84 commit c863912
Show file tree
Hide file tree
Showing 32 changed files with 69 additions and 5 deletions.
2 changes: 2 additions & 0 deletions src/content/docs/config/app.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
title: App
description: The Gtk.Application Instance
banner:
content: You are looking at the legacy documentation of AGS v1. Go to <a href="https://aylur.github.io/ags/">aylur.github.io/ags</a> for AGS v2.
---

This is the main `Gtk.Application` instance that is running.
Expand Down
2 changes: 2 additions & 0 deletions src/content/docs/config/cli.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
title: CLI
description: Command Line Interface and running files
banner:
content: You are looking at the legacy documentation of AGS v1. Go to <a href="https://aylur.github.io/ags/">aylur.github.io/ags</a> for AGS v2.
---

```sh
Expand Down
4 changes: 4 additions & 0 deletions src/content/docs/config/common-issues.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
title: Common Issues
description: Common Issues and Tips & Tricks
banner:
content: You are looking at the legacy documentation of AGS v1. Go to <a href="https://aylur.github.io/ags/">aylur.github.io/ags</a> for AGS v2.
---

## Window doesn't show up
Expand Down Expand Up @@ -37,9 +39,11 @@ Widget.Icon({
```

## GtkWindow is not a layer surface

If `Widget.Window` shows as up as a regular window,
it usually means ags is running in xwayland.
Try running `ags` from a non xwayland terminal, or try

```bash
env GDK_BACKEND=wayland ags
```
2 changes: 2 additions & 0 deletions src/content/docs/config/config-object.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
title: Config Object
description: Exported configuration object
banner:
content: You are looking at the legacy documentation of AGS v1. Go to <a href="https://aylur.github.io/ags/">aylur.github.io/ags</a> for AGS v2.
---

`App.config` can be called any number of times, the passed
Expand Down
5 changes: 3 additions & 2 deletions src/content/docs/config/custom-service.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
title: Custom Service
description: Writing Custom Services
banner:
content: You are looking at the legacy documentation of AGS v1. Go to <a href="https://aylur.github.io/ags/">aylur.github.io/ags</a> for AGS v2.
---

Writing a custom Service is as simple as
Expand Down Expand Up @@ -101,14 +103,13 @@ export default service;
```

:::caution
`Utils.monitorFile` only reports events that a user-space program
`Utils.monitorFile` only reports events that a user-space program
triggers through the filesystem API. As a result, it does not catch
remote events that occur on network filesystems.
Furthermore, most pseudo-filesystems such as `/proc`, `/sys` and `/dev/pts`
cannot be monitored.
:::


:::note
For `bind` to work, the property has to be defined in `Service.register`
:::
Expand Down
2 changes: 2 additions & 0 deletions src/content/docs/config/examples.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: Examples
banner:
content: You are looking at the legacy documentation of AGS v1. Go to <a href="https://aylur.github.io/ags/">aylur.github.io/ags</a> for AGS v2.
---

:::note
Expand Down
2 changes: 2 additions & 0 deletions src/content/docs/config/first-widgets.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
title: Your First Widget
description: Starting point to understanding how AGS works
banner:
content: You are looking at the legacy documentation of AGS v1. Go to <a href="https://aylur.github.io/ags/">aylur.github.io/ags</a> for AGS v2.
---

Start by creating `~/.config/ags/config.js`
Expand Down
2 changes: 2 additions & 0 deletions src/content/docs/config/home-manager.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
title: Home Manager
description: Home Manager Module
banner:
content: You are looking at the legacy documentation of AGS v1. Go to <a href="https://aylur.github.io/ags/">aylur.github.io/ags</a> for AGS v2.
---

Example content of a `flake.nix` file
Expand Down
2 changes: 2 additions & 0 deletions src/content/docs/config/installation.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
title: Installation
description: How to install AGS
banner:
content: You are looking at the legacy documentation of AGS v1. Go to <a href="https://aylur.github.io/ags/">aylur.github.io/ags</a> for AGS v2.
---

## Nix
Expand Down
2 changes: 2 additions & 0 deletions src/content/docs/config/javascript.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
title: JavaScript
description: 5 minute crash course for JavaScript
banner:
content: You are looking at the legacy documentation of AGS v1. Go to <a href="https://aylur.github.io/ags/">aylur.github.io/ags</a> for AGS v2.
---

If you don't know any JavaScript, this is a quick 5 minute course explaining most things you will need to understand.
Expand Down
2 changes: 2 additions & 0 deletions src/content/docs/config/reactivity.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: Reactivity
banner:
content: You are looking at the legacy documentation of AGS v1. Go to <a href="https://aylur.github.io/ags/">aylur.github.io/ags</a> for AGS v2.
---

In order for widgets to have dynamic content we pass `Binding`s as properties
Expand Down
2 changes: 2 additions & 0 deletions src/content/docs/config/services.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
title: Services
description: Builtin services to query system information
banner:
content: You are looking at the legacy documentation of AGS v1. Go to <a href="https://aylur.github.io/ags/">aylur.github.io/ags</a> for AGS v2.
---

A Service is an instance of a [GObject.Object](https://gjs-docs.gnome.org/gobject20~2.0/gobject.object)
Expand Down
2 changes: 2 additions & 0 deletions src/content/docs/config/subclassing-gtk-widgets.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
title: Subclassing GTK Widgets
description: Using GTK widgets not builtin
banner:
content: You are looking at the legacy documentation of AGS v1. Go to <a href="https://aylur.github.io/ags/">aylur.github.io/ags</a> for AGS v2.
---

## Using Gtk.Widgets not builtin
Expand Down
2 changes: 2 additions & 0 deletions src/content/docs/config/theming.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
title: Theming
description: GTK3 CSS theming
banner:
content: You are looking at the legacy documentation of AGS v1. Go to <a href="https://aylur.github.io/ags/">aylur.github.io/ags</a> for AGS v2.
---

Since the widget toolkit is **GTK3** theming is done with **CSS**.
Expand Down
2 changes: 2 additions & 0 deletions src/content/docs/config/type-checking.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: Type Checking
banner:
content: You are looking at the legacy documentation of AGS v1. Go to <a href="https://aylur.github.io/ags/">aylur.github.io/ags</a> for AGS v2.
---

To have auto suggestions and type checking while working on the configuration,
Expand Down
4 changes: 3 additions & 1 deletion src/content/docs/config/utils.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
title: Utils
description: Utility functions
banner:
content: You are looking at the legacy documentation of AGS v1. Go to <a href="https://aylur.github.io/ags/">aylur.github.io/ags</a> for AGS v2.
---

## Running external commands
Expand Down Expand Up @@ -132,7 +134,7 @@ const monitor = Utils.monitorFile('/path/to/file', (file, event) => {
```

:::caution
`monitorFile` only reports events that a user-space program
`monitorFile` only reports events that a user-space program
triggers through the filesystem API. As a result, it does not catch
remote events that occur on network filesystems.
Furthermore, most pseudo-filesystems such as `/proc`, `/sys` and `/dev/pts`
Expand Down
2 changes: 2 additions & 0 deletions src/content/docs/config/variables.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
title: Variables
description: Reactive variables
banner:
content: You are looking at the legacy documentation of AGS v1. Go to <a href="https://aylur.github.io/ags/">aylur.github.io/ags</a> for AGS v2.
---

Variable is just a simple `GObject` that holds a value.
Expand Down
2 changes: 2 additions & 0 deletions src/content/docs/config/widgets.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
title: Widgets
description: List of builtin subclassed widgets
banner:
content: You are looking at the legacy documentation of AGS v1. Go to <a href="https://aylur.github.io/ags/">aylur.github.io/ags</a> for AGS v2.
---

`Widget` functions return an instance of [Gtk.Widget](https://gjs-docs.gnome.org/gtk30~3.0/gtk.widget).
Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ hero:
link: https://github.com/Aylur/ags
icon: github
banner:
content: 🚀 <a href="https://github.com/Aylur/ags/pull/504">AGS v2</a> is soon to be merged, consider checking it before jumping into this documentation if you are starting out.
content: You are looking at the legacy documentation of AGS v1. Go to <a href="https://aylur.github.io/ags/">aylur.github.io/ags</a> for AGS v2.
---

import { Card, CardGrid } from '@astrojs/starlight/components';
Expand Down
2 changes: 2 additions & 0 deletions src/content/docs/services/applications.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: Applications
banner:
content: You are looking at the legacy documentation of AGS v1. Go to <a href="https://aylur.github.io/ags/">aylur.github.io/ags</a> for AGS v2.
---

## signals
Expand Down
2 changes: 2 additions & 0 deletions src/content/docs/services/audio.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: Audio
banner:
content: You are looking at the legacy documentation of AGS v1. Go to <a href="https://aylur.github.io/ags/">aylur.github.io/ags</a> for AGS v2.
---

:::note
Expand Down
2 changes: 2 additions & 0 deletions src/content/docs/services/backlight.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: Backlight
banner:
content: You are looking at the legacy documentation of AGS v1. Go to <a href="https://aylur.github.io/ags/">aylur.github.io/ags</a> for AGS v2.
---

There is no builtin Backlight service, but you can find an [example service implementation](../../config/custom-service) using `brightnessctl`.
2 changes: 2 additions & 0 deletions src/content/docs/services/battery.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: Battery
banner:
content: You are looking at the legacy documentation of AGS v1. Go to <a href="https://aylur.github.io/ags/">aylur.github.io/ags</a> for AGS v2.
---

:::note
Expand Down
2 changes: 2 additions & 0 deletions src/content/docs/services/bluetooth.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: Bluetooth
banner:
content: You are looking at the legacy documentation of AGS v1. Go to <a href="https://aylur.github.io/ags/">aylur.github.io/ags</a> for AGS v2.
---

:::note
Expand Down
2 changes: 2 additions & 0 deletions src/content/docs/services/greetd.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
title: Greetd
description: Login Manager
banner:
content: You are looking at the legacy documentation of AGS v1. Go to <a href="https://aylur.github.io/ags/">aylur.github.io/ags</a> for AGS v2.
---

Look up how to enable and configure greetd for your distro.
Expand Down
2 changes: 2 additions & 0 deletions src/content/docs/services/hyprland.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: Hyprland
banner:
content: You are looking at the legacy documentation of AGS v1. Go to <a href="https://aylur.github.io/ags/">aylur.github.io/ags</a> for AGS v2.
---

## signals
Expand Down
4 changes: 3 additions & 1 deletion src/content/docs/services/mpris.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: Mpris
banner:
content: You are looking at the legacy documentation of AGS v1. Go to <a href="https://aylur.github.io/ags/">aylur.github.io/ags</a> for AGS v2.
---

:::note
Expand All @@ -8,7 +10,7 @@ NixOS: `services.gvfs`
:::

:::note
Not every media player supports `position`, `volume` and other functionality. Support varies from player to player.
Not every media player supports `position`, `volume` and other functionality. Support varies from player to player.
:::

## signals
Expand Down
2 changes: 2 additions & 0 deletions src/content/docs/services/network.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: Network
banner:
content: You are looking at the legacy documentation of AGS v1. Go to <a href="https://aylur.github.io/ags/">aylur.github.io/ags</a> for AGS v2.
---

:::note
Expand Down
2 changes: 2 additions & 0 deletions src/content/docs/services/notifications.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: Notifications
banner:
content: You are looking at the legacy documentation of AGS v1. Go to <a href="https://aylur.github.io/ags/">aylur.github.io/ags</a> for AGS v2.
---

## signals
Expand Down
2 changes: 2 additions & 0 deletions src/content/docs/services/powerprofiles.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: Power Profiles
banner:
content: You are looking at the legacy documentation of AGS v1. Go to <a href="https://aylur.github.io/ags/">aylur.github.io/ags</a> for AGS v2.
---

:::note
Expand Down
2 changes: 2 additions & 0 deletions src/content/docs/services/systemtray.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: System Tray
banner:
content: You are looking at the legacy documentation of AGS v1. Go to <a href="https://aylur.github.io/ags/">aylur.github.io/ags</a> for AGS v2.
---

:::note
Expand Down
3 changes: 3 additions & 0 deletions src/styles/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
--sl-color-gray-5: #383838;
--sl-color-gray-6: #272727;
--sl-color-black: #171718;


--sl-color-banner-bg: #f66151;
}

/* Light mode colors. */
Expand Down

0 comments on commit c863912

Please sign in to comment.