feat(socialcard): add unsplash integration and improve image cards
Some checks failed
Build and Release / Create Release (push) Successful in 0s
Build and Release / Integration Tests (PostgreSQL) (push) Successful in 2m36s
Build and Release / Lint (push) Successful in 5m19s
Build and Release / Unit Tests (push) Successful in 5m24s
Build and Release / Build Binaries (amd64, linux, linux-latest) (push) Successful in 2m56s
Build and Release / Build Binaries (amd64, windows, windows-latest) (push) Successful in 9h4m44s
Build and Release / Build Binaries (arm64, darwin, macos) (push) Successful in 8m5s
Build and Release / Build Binaries (amd64, darwin, macos) (push) Successful in 8m29s
Build and Release / Build Binary (linux/arm64) (push) Has been cancelled
Some checks failed
Build and Release / Create Release (push) Successful in 0s
Build and Release / Integration Tests (PostgreSQL) (push) Successful in 2m36s
Build and Release / Lint (push) Successful in 5m19s
Build and Release / Unit Tests (push) Successful in 5m24s
Build and Release / Build Binaries (amd64, linux, linux-latest) (push) Successful in 2m56s
Build and Release / Build Binaries (amd64, windows, windows-latest) (push) Successful in 9h4m44s
Build and Release / Build Binaries (arm64, darwin, macos) (push) Successful in 8m5s
Build and Release / Build Binaries (amd64, darwin, macos) (push) Successful in 8m29s
Build and Release / Build Binary (linux/arm64) (push) Has been cancelled
Add Unsplash API integration documentation to README with setup instructions. Adjust image card gradient scrim to cover bottom 50% with increased opacity (240) for better text readability. Set correct OpenGraph image dimensions (1080x1350) for portrait card formats. Improve Unsplash selection UX with status messages and page reload after successful image download.
This commit is contained in:
20
README.md
20
README.md
@@ -32,6 +32,7 @@ The AI-native Git platform. Self-hosted, fast, and designed for the age of AI-as
|
||||
- [AI Features Configuration](#ai-features-configuration)
|
||||
- [Authentication Sources](#authentication-sources)
|
||||
- [Email/SMTP Setup](#emailsmtp-setup)
|
||||
- [Unsplash Integration](#unsplash-integration)
|
||||
- [Usage](#usage)
|
||||
- [Repository Operations](#repository-operations)
|
||||
- [Project Management](#project-management)
|
||||
@@ -549,6 +550,25 @@ USER = your-email@gmail.com
|
||||
PASSWD = your-app-password
|
||||
```
|
||||
|
||||
### Unsplash Integration
|
||||
|
||||
Enable Unsplash image search for repository social card backgrounds (Media Kit). This allows repository admins to search and select high-quality background images directly from Unsplash.
|
||||
|
||||
```ini
|
||||
[unsplash]
|
||||
; Enable Unsplash integration for Media Kit background images
|
||||
ENABLED = true
|
||||
; Unsplash API access key (get one at https://unsplash.com/developers)
|
||||
ACCESS_KEY = your_unsplash_access_key
|
||||
```
|
||||
|
||||
To obtain an access key:
|
||||
1. Create an account at [unsplash.com/developers](https://unsplash.com/developers)
|
||||
2. Create a new application
|
||||
3. Copy the **Access Key** (the Secret Key is not needed)
|
||||
|
||||
When enabled, repository admins can search Unsplash from **Settings > Media Kit** when using the "Background Image" social card style. Attribution is handled automatically per Unsplash API guidelines.
|
||||
|
||||
## Usage
|
||||
|
||||
### Repository Operations
|
||||
|
||||
Reference in New Issue
Block a user