sync upstream

This commit is contained in:
ayaka 2024-06-18 19:56:04 +12:00
parent ededa849f4
commit a67cbb99a6
6 changed files with 9 additions and 8 deletions

1
.envrc Normal file
View File

@ -0,0 +1 @@
use flake

View File

@ -7,6 +7,8 @@ on:
- "compose.*" - "compose.*"
branches: branches:
- "main" - "main"
release:
types: [published]
env: env:
CARGO_TERM_COLOR: always CARGO_TERM_COLOR: always
@ -60,7 +62,6 @@ jobs:
- name: Upload release - name: Upload release
uses: softprops/action-gh-release@v1 uses: softprops/action-gh-release@v1
if: github.base_ref != 'main' && github.event_name == 'release'
with: with:
tag_name: ${{ steps.version.outputs.VERSION }} tag_name: ${{ steps.version.outputs.VERSION }}
name: ${{ steps.version.outputs.VERSION }} - ${{ github.event.head_commit.message }} name: ${{ steps.version.outputs.VERSION }} - ${{ github.event.head_commit.message }}

4
.gitignore vendored
View File

@ -2,3 +2,7 @@
.env .env
# Idea Files # Idea Files
.idea/ .idea/
# nix files
.direnv/
result

View File

@ -181,12 +181,6 @@ docker logs -f redlib
### Docker CLI ### Docker CLI
> [!IMPORTANT]
> If deploying on:
>
> - an `arm64` platform, use the `quay.io/redlib/redlib:latest-arm` image instead.
> - an `armv7` platform, use the `quay.io/redlib/redlib:latest-armv7` image instead.
Deploy Redlib: Deploy Redlib:
```bash ```bash

View File

@ -156,7 +156,7 @@ fn get_setting_from_config(name: &str, config: &Config) -> Option<String> {
"REDLIB_DEFAULT_HIDE_HLS_NOTIFICATION" => config.default_hide_hls_notification.clone(), "REDLIB_DEFAULT_HIDE_HLS_NOTIFICATION" => config.default_hide_hls_notification.clone(),
"REDLIB_DEFAULT_WIDE" => config.default_wide.clone(), "REDLIB_DEFAULT_WIDE" => config.default_wide.clone(),
"REDLIB_DEFAULT_HIDE_AWARDS" => config.default_hide_awards.clone(), "REDLIB_DEFAULT_HIDE_AWARDS" => config.default_hide_awards.clone(),
"REDLIB_DEFAULT_HIDE_SIDEBAR_AND_SUMMARY" => config.default_hide_awards.clone(), "REDLIB_DEFAULT_HIDE_SIDEBAR_AND_SUMMARY" => config.default_hide_sidebar_and_summary.clone(),
"REDLIB_DEFAULT_HIDE_SCORE" => config.default_hide_score.clone(), "REDLIB_DEFAULT_HIDE_SCORE" => config.default_hide_score.clone(),
"REDLIB_DEFAULT_SUBSCRIPTIONS" => config.default_subscriptions.clone(), "REDLIB_DEFAULT_SUBSCRIPTIONS" => config.default_subscriptions.clone(),
"REDLIB_DEFAULT_DISABLE_VISIT_REDDIT_CONFIRMATION" => config.default_disable_visit_reddit_confirmation.clone(), "REDLIB_DEFAULT_DISABLE_VISIT_REDDIT_CONFIRMATION" => config.default_disable_visit_reddit_confirmation.clone(),

View File

@ -34,6 +34,7 @@
font-family: 'Inter'; font-family: 'Inter';
src: url('/Inter.var.woff2') format('woff2-variations'); src: url('/Inter.var.woff2') format('woff2-variations');
font-style: normal; font-style: normal;
font-weight: 100 900;
} }
/* Automatic theme selection */ /* Automatic theme selection */