Skip to content

Tweak color palette and dark mode #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 19 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,20 @@ on:
push:
branches:
- master

permissions:
contents: read
pages: write
id-token: write
pull_request:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v23
- name: Checkout
uses: actions/checkout@v4

- uses: cachix/install-nix-action@v27
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}

- uses: cachix/cachix-action@v12
- uses: cachix/cachix-action@v15
with:
name: fcitx5-android
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
Expand All @@ -27,17 +25,27 @@ jobs:
run: nix develop --command mkdocs build --site-dir public

- name: Upload artifact
uses: actions/upload-pages-artifact@v1
uses: actions/upload-pages-artifact@v3
with:
name: github-pages
path: public
retention-days: 90

deploy:
if: github.ref_name == 'master'
needs: build

permissions:
pages: write
id-token: write

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

runs-on: ubuntu-latest
needs: build

steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
uses: actions/deploy-pages@v4
26 changes: 0 additions & 26 deletions .github/workflows/pull_request.yml

This file was deleted.

16 changes: 14 additions & 2 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,20 @@ site_description: Documentation for fcitx5-android
theme:
name: material
palette:
primary: teal
accent: teal
- media: "(prefers-color-scheme: light)"
scheme: default
primary: teal
accent: amber
toggle:
icon: material/brightness-7
name: Switch to light mode
- media: "(prefers-color-scheme: dark)"
scheme: slate
primary: teal
accent: amber
toggle:
icon: material/brightness-4
name: Switch to dark mode
favicon: assets/ic_launcher_legacy_source.png
logo: assets/ic_launcher_legacy_source.png
features:
Expand Down