Skip to content
This repository was archived by the owner on Sep 22, 2025. It is now read-only.
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
14 changes: 2 additions & 12 deletions .github/workflows/autofix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,7 @@ jobs:
with:
log_level: debug
- name: Run fixes
run: mise run --force --jobs=1 'ci:autofix:fix'
- name: Suggest format changes
run: mise run --force --jobs=1 'ci:autofix:all'
- name: Format, lint and REUSE check
uses: autofix-ci/action@635ffb0c9798bd160680f18fd73371e355b85f27

lint_typecheck:
runs-on: ubuntu-24.04
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- uses: jdx/mise-action@v2
with:
log_level: debug
- name: Run lints
run: mise run --force --jobs=1 'ci:autofix:lint'
2 changes: 2 additions & 0 deletions .mise/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ disable_backends = ["aqua"]
[tools]
"rust" = { version = "stable", profile = "default" }
taplo = "0.9.3"
node = "20"
pnpm = "10.12.1"

[task_config]
includes = [".mise/tasks.toml", ".mise/tasks"]
46 changes: 41 additions & 5 deletions .mise/tasks.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@

# Use https://mise.jdx.dev/schema/mise-task.json for validation.


### prepare
["prepare:pnpm-install"]
hide = true
run = "cd docs && pnpm install --frozen-lockfile"
depends = ["fix:pnpm:lock"]

### fixes

["fix:rust:format"]
Expand All @@ -13,17 +20,46 @@ run = "cargo fmt --all"
description = "Run taplo format"
run = "taplo format"

["fix:pnpm:lock"]
description = "Update pnpm lock file"
run = "cd docs && pnpm i --lockfile-only"

["fix:pnpm:dedupe"]
description = "Run pnpm dedupe"
run = "cd docs && pnpm dedupe"
depends = ["prepare:pnpm-install"]

["fix:ts:format"]
description = "Run pnpm format:fix"
run = "cd docs && pnpm run format:fix"
depends = ["prepare:pnpm-install"]

["fix:ts:biome"]
description = "Run pnpm lint:fix"
run = "cd docs && pnpm run lint:fix"
depends = ["prepare:pnpm-install"]

### lint
#
["lint:legal:reuse"]
run = "pipx run reuse lint"

["lint:ts:typecheck"]
description = "Run pnpm format:fix"
run = "pnpm type-check"
depends = ["prepare:pnpm-install"]

### CI

["ci:autofix:fix"]
["ci:autofix:all"]
description = "CI autofix job -- fix steps"
depends = ["fix:rust:format", "fix:text:trailing_spaces", "fix:toml:format"]
depends = [
"fix:rust:format",
"fix:text:trailing_spaces",
"fix:pnpm:lock",
"fix:pnpm:dedupe",
"fix:ts:biome",
"fix:ts:format",
"lint:legal:reuse"
]

["ci:autofix:lint"]
description = "CI autofix job -- lint steps"
depends = ["lint:legal:reuse"]
20 changes: 16 additions & 4 deletions docs/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,22 @@ export default defineConfig({
}),
],
social: [
{ icon: 'github', label: 'GitHub', href: 'https://github.com/slint-ui/slint' },
{ icon: 'x.com', label: 'X', href: 'https://x.com/slint_ui' },
{ icon: 'linkedin', label: 'Linkedin', href: 'https://www.linkedin.com/company/slint-ui/' },
{ icon: 'mastodon', label: 'Mastodon', href: 'https://fosstodon.org/@slint' },
{
icon: "github",
label: "GitHub",
href: "https://github.com/slint-ui/slint",
},
{ icon: "x.com", label: "X", href: "https://x.com/slint_ui" },
{
icon: "linkedin",
label: "Linkedin",
href: "https://www.linkedin.com/company/slint-ui/",
},
{
icon: "mastodon",
label: "Mastodon",
href: "https://fosstodon.org/@slint",
},
],
favicon: "favicon.svg",
}),
Expand Down