Skip to content

Commit e87b1b1

Browse files
author
Appu
authored
Merge pull request #46 from bongodevs/dev
Dev
2 parents 25322c9 + 1a090d9 commit e87b1b1

56 files changed

Lines changed: 3216 additions & 1160 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/deploy-docs.yml

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Deploy VitePress site to Pages
1+
name: Deploy Astro site to Pages
22

33
on:
44
push:
@@ -26,23 +26,12 @@ jobs:
2626
with:
2727
fetch-depth: 0
2828

29-
- name: Setup Bun
30-
uses: oven-sh/setup-bun@v1
29+
- name: Install, build, and upload your site
30+
uses: withastro/action@v5
3131
with:
32-
bun-version: latest
33-
34-
- name: Install dependencies
35-
working-directory: docs
36-
run: bun install
37-
38-
- name: Build with VitePress
39-
working-directory: docs
40-
run: bun run docs:build
41-
42-
- name: Upload artifact
43-
uses: actions/upload-pages-artifact@v3
44-
with:
45-
path: docs/.vitepress/dist
32+
path: ./docs
33+
package-manager: bun
34+
node-version: 22
4635

4736
deploy:
4837
environment:

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rustalink"
3-
version = "1.0.10"
3+
version = "1.0.11"
44
edition = "2024"
55
license = "Apache-2.0"
66
authors = ["appujet", "notdeltaxd", "contributors"]

config.example.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
address = "0.0.0.0"
33
port = 2333
44
authorization = "youshallnotpass"
5-
player_update_interval = 100 # ms
5+
player_update_interval = 5 # seconds
66
stats_interval = 30 # seconds
77
websocket_ping_interval = 20 # seconds
88
max_event_queue_size = 100
@@ -52,6 +52,8 @@ filters = "rustalink=debug" # e.g. "rustalink=debug,davey=off"
5252
[logging.file]
5353
path = "./logs/rustalink.log"
5454
max_lines = 10000
55+
rotate_daily = false # when true, creates rustalink-YYYY-MM-DD.log each day
56+
max_files = 7 # max daily log files to keep (0 = unlimited, only applies when rotate_daily = true)
5557

5658
[route_planner]
5759
enabled = false

docs/.gitignore

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
# build output
2+
dist/
3+
# generated types
4+
.astro/
5+
6+
# dependencies
17
node_modules/
2-
.vitepress/dist
3-
.vitepress/cache
8+
9+
# logs
10+
npm-debug.log*
11+
yarn-debug.log*
12+
yarn-error.log*
13+
pnpm-debug.log*
14+
15+
16+
# environment variables
17+
.env
18+
.env.production
19+
20+
# macOS-specific files
21+
.DS_Store

docs/.vitepress/config.js

Lines changed: 0 additions & 35 deletions
This file was deleted.

docs/.vitepress/theme/index.js

Lines changed: 0 additions & 9 deletions
This file was deleted.

docs/.vitepress/theme/style.css

Lines changed: 0 additions & 31 deletions
This file was deleted.

docs/astro.config.mjs

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
// @ts-check
2+
import { defineConfig } from 'astro/config';
3+
import starlight from '@astrojs/starlight';
4+
import mdx from '@astrojs/mdx';
5+
import mermaid from 'astro-mermaid';
6+
7+
// https://astro.build/config
8+
export default defineConfig({
9+
base: '/Rustalink/',
10+
redirects: {
11+
'/': '/Rustalink/introduction/',
12+
},
13+
integrations: [
14+
starlight({
15+
title: 'Rustalink',
16+
favicon: '/favicon.svg',
17+
description: 'High-performance Rust audio server documentation',
18+
customCss: ['./src/style/custom.css'],
19+
logo: {
20+
src: './src/assets/rastalink.svg',
21+
},
22+
social: [
23+
{ icon: 'github', label: 'GitHub', href: 'https://github.com/bongodevs/Rustalink' },
24+
{ icon: 'discord', label: 'Discord', href: 'https://discord.gg/vzjqrUpWxJ' }
25+
],
26+
editLink: {
27+
baseUrl: 'https://github.com/bongodevs/Rustalink/edit/main/docs/',
28+
},
29+
sidebar: [
30+
{
31+
label: 'Getting Started',
32+
items: [
33+
{ label: 'Introduction', slug: 'introduction' },
34+
{ label: 'Configuration', slug: 'configuration' },
35+
{ label: 'Docker', slug: 'docker' },
36+
{ label: 'Pterodactyl', slug: 'pterodactyl' },
37+
{ label: 'Troubleshooting', slug: 'troubleshooting' },
38+
],
39+
},
40+
{
41+
label: 'Core Concepts',
42+
items: [
43+
{ label: 'Architecture', slug: 'architecture' },
44+
{ label: 'Filters', slug: 'filters' },
45+
{ label: 'Client Libraries', slug: 'clients' },
46+
],
47+
},
48+
{
49+
label: 'Reference',
50+
items: [
51+
{ label: 'REST API', slug: 'api' },
52+
{
53+
label: 'WebSocket Events',
54+
items: [
55+
{ label: 'Track Start', slug: 'events/track-start' },
56+
{ label: 'Track End', slug: 'events/track-end' },
57+
{ label: 'Track Exception', slug: 'events/track-exception' },
58+
{ label: 'Track Stuck', slug: 'events/track-stuck' },
59+
{ label: 'WebSocket Closed', slug: 'events/websocket-closed' },
60+
{
61+
label: 'Lyrics Events',
62+
items: [
63+
{ label: 'Lyrics Found', slug: 'events/lyrics-found' },
64+
{ label: 'Lyrics Not Found', slug: 'events/lyrics-not-found' },
65+
{ label: 'Lyrics Line', slug: 'events/lyrics-line' },
66+
],
67+
},
68+
],
69+
},
70+
],
71+
},
72+
],
73+
}),
74+
mdx({ optimize: true }),
75+
mermaid(),
76+
],
77+
});

0 commit comments

Comments
 (0)