Skip to content

Commit

Permalink
Merge pull request #539 from squidowl/docs-v2
Browse files Browse the repository at this point in the history
Book update
  • Loading branch information
casperstorm authored Sep 6, 2024
2 parents deac1f8 + 23fa6b8 commit 9fbaca8
Show file tree
Hide file tree
Showing 40 changed files with 1,214 additions and 447 deletions.
58 changes: 42 additions & 16 deletions book/src/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,56 @@
[Halloy](README.md)

- [Installation](installation.md)
- [Getting started](guides/getting-started.md)
- [Get in touch](get-in-touch.md)

# Guides

- [Connect with soju](guides/connect-with-soju.md)
- [Connect with ZNC](guides/connect-with-znc.md)
- [Portable mode](guides/portable-mode.md)
- [Multiple servers](guides/multiple-servers.md)
- [Storing passwords in a File](guides/password-file.md)
- [Text Formatting](guides/text-formatting.md)
- [Monitor users](guides/monitor-users.md)

# Configuration

- [Configuration](configuration/README.md)
- [Buffer](configuration/buffer.md)
- [File Transfer](configuration/file_transfer.md)
- [Buffer](configuration/buffer/README.md)
- [Channel](configuration/buffer/channel/README.md)
- [Nicklist](configuration/buffer/channel/nicklist.md)
- [Topic](configuration/buffer/channel/topic.md)
- [Internal Messages](configuration/buffer/internal_messages/README.md)
- [Success](configuration/buffer/internal_messages/success.md)
- [Error](configuration/buffer/internal_messages/error.md)
- [Nickname](configuration/buffer/nickname.md)
- [Server Messages](configuration/buffer/server_messages/README.md)
- [Change Host](configuration/buffer/server_messages/change_host.md)
- [Join](configuration/buffer/server_messages/join.md)
- [Monitored Offline](configuration/buffer/server_messages/monitored_offline.md)
- [Monitored_Online](configuration/buffer/server_messages/monitored_online.md)
- [Part](configuration/buffer/server_messages/part.md)
- [Quit](configuration/buffer/server_messages/quit.md)
- [Topic](configuration/buffer/server_messages/topic.md)
- [Text Input](configuration/buffer/text_input.md)
- [Timestamp](configuration/buffer/timestamp.md)
- [File Transfer](configuration/file_transfer/README.md)
- [Server](configuration/file_transfer/server.md)
- [Font](configuration/font.md)
- [Keyboard](configuration/keyboard.md)
- [Notifications](configuration/notifications.md)
- [Pane](configuration/pane/README.md)
- [Proxy](configuration/proxy.md)
- [Scale factor](configuration/scale-factor.md)
- [Servers](configuration/servers.md)
- [Sidebar](configuration/sidebar.md)
- [Servers](configuration/servers/README.md)
- [SASL](configuration/servers/sasl/README.md)
- [Plain](configuration/servers/sasl/plain.md)
- [External](configuration/servers/sasl/external.md)
- [Sidebar](configuration/sidebar/README.md)
- [Buttons](configuration/sidebar/buttons.md)
- [Themes](configuration/themes/README.md)
- [Community](configuration/themes/community.md)
- [Tooltips](configuration/tooltips.md)
- [URL Schemes](url-schemes.md)
- [Commands](commands.md)

# Guides

- [Getting started](guides/getting-started.md)
- [Migrating from YAML](guides/migrating-from-yaml.md)
- [Connect with soju](guides/connect-with-soju.md)
- [Connect with ZNC](guides/connect-with-znc.md)
- [Portable mode](guides/portable-mode.md)
- [Multiple servers](guides/multiple-servers.md)
- [Storing passwords in a File](guides/password-file.md)
- [Text Formatting](guides/text-formatting.md)
- [Commands](commands.md)
27 changes: 14 additions & 13 deletions book/src/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,17 @@ Example

Halloy will first try to run below commands, and lastly send it directly to the server.

| Command | Alias | Description |
|---------|------------|---------------------------------------------------------------|
| `away` | | Mark yourself as away. If already away, the status is removed |
| `join` | `j` | Join channel(s) with optional key(s) |
| `me` | `describe` | Send an action message to the channel |
| `mode` | `m` | Set mode(s) on a channel or retrieve the current mode(s) set |
| `msg` | | Open a query with a nickname and send an optional message |
| `nick` | | Change your nickname on the current server |
| `part` | `leave` | Leave channel(s) with an optional reason |
| `quit` | | Disconnect from the server with an optional reason |
| `raw` | | Send data to the server without modifying it |
| `topic` | `t` | Retrieve the topic of a channel or set a new topic |
| `whois` | | Retrieve information about user(s) |
| Command | Alias | Description |
| --------- | ---------- | ------------------------------------------------------------- |
| `away` | | Mark yourself as away. If already away, the status is removed |
| `join` | `j` | Join channel(s) with optional key(s) |
| `me` | `describe` | Send an action message to the channel |
| `mode` | `m` | Set mode(s) on a channel or retrieve the current mode(s) set |
| `monitor` | | System to notify when users become online/offline |
| `msg` | | Open a query with a nickname and send an optional message |
| `nick` | | Change your nickname on the current server |
| `part` | `leave` | Leave channel(s) with an optional reason |
| `quit` | | Disconnect from the server with an optional reason |
| `raw` | | Send data to the server without modifying it |
| `topic` | `t` | Retrieve the topic of a channel or set a new topic |
| `whois` | | Retrieve information about user(s) |
168 changes: 0 additions & 168 deletions book/src/configuration/buffer.md

This file was deleted.

23 changes: 23 additions & 0 deletions book/src/configuration/buffer/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# `[buffer]`

A _buffer_ displays messages within a specific context.

Examples of buffers:

- Channel
- Server
- Private Query
- File transfer

Each buffer is shown inside a [pane](../pane/index.html).

## Configuration

| Name | Description |
| --------------------------------------------------- | --------------------------------------------------------------- |
| [Channel](./channel/index.html) | Channel settings for when buffer context is a channel |
| [Internal Messages](./internal_messages/index.html) | Halloy specific status messages |
| [Nickname](./nickname.md) | Customize how nicknames are displayed within a buffer |
| [Server Messages](./server_messages/index.html) | Settings for server messages such as `join`, `part`, `quit` etc |
| [Text Input](./text_input.md) | Customize the text input for a buffer |
| [Timestamp](./timestamp.md) | Customize how timestamps are displayed within a buffer |
12 changes: 12 additions & 0 deletions book/src/configuration/buffer/channel/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# `[buffer.channel]`

A _channel_ represents a IRC channel.

Each channel is shown inside a [buffer](../index.html).

## Configuration

| Name | Description |
| ------------------------- | -------------------------------------------------- |
| [Nicklist](./nicklist.md) | Customize the nicklist whitin a channel buffer |
| [Topic](./topic.md) | Customize the topic banner within a channel buffer |
59 changes: 59 additions & 0 deletions book/src/configuration/buffer/channel/nicklist.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# `[buffer.channel.nicklist]`

Customize the nicklist within a channel buffer.

**Example**

```toml
[buffer.channel.nicklist]
color = "unique"
show_access_levels = true
```

## `alignment`

Horizontal alignment of nicknames.

- **type**: string
- **values**: `"left"`, `"right"`
- **default**: `"left"`

## `color`
Nickname colors in the nicklist. `"unique"` generates colors by randomizing the hue, while keeping the saturation and lightness from the theme's nickname color.

- **type**: string
- **values**: `"solid"`, `"unique"`
- **default**: `"unique"`

## `enabled`

Control if nicklist should be shown or not by default.

- **type**: boolean
- **values**: `true`, `false`
- **default**: `true`

## `position`

Nicklist position in the buffer.

- **type**: string
- **values**: `"left"`, `"right"`
- **default**: `"right"`


## `show_access_levels`

Show access levels in front of nicknames (`@`, `+`, `~`, etc.).

- **type**: boolean
- **values**: `true`, `false`
- **default**: `true`

## `width`

Overwrite nicklist width in pixels.

- **type**: integer
- **values**: any positive integer
- **default**: not set
27 changes: 27 additions & 0 deletions book/src/configuration/buffer/channel/topic.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# `[buffer.channel.topic]`

Customize the topic banner within a channel buffer.

**Example**

```toml
[buffer.channel.topic]
enabled = true
max_lines = 2
```

## `enabled`

Control if topic should be shown or not by default.

- **type**: boolean
- **values**: `true`, `false`
- **default**: `false`

## `max_lines`

Amount of visible lines before you have to scroll in topic banner.

- **type**: integer
- **values**: any positive integer
- **default**: `2`
Loading

0 comments on commit 9fbaca8

Please sign in to comment.