Skip to content

Commit 313763f

Browse files
chore(sync): 🔨 synced file(s) with seedcase-project/seedcase-theme
1 parent dc5fba9 commit 313763f

File tree

10 files changed

+58
-14
lines changed

10 files changed

+58
-14
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,3 @@ _site
2121
_book
2222
public
2323
site
24-

.pre-commit-config.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# See https://pre-commit.com for more information
2+
# See https://pre-commit.com/hooks.html for more hooks
3+
ci:
4+
autofix_commit_msg: "chore(pre-commit): :pencil2: automatic fixes"
5+
autoupdate_commit_msg: "ci(pre-commit): :construction_worker: update pre-commit CI version"
6+
7+
repos:
8+
- repo: https://github.com/pre-commit/pre-commit-hooks
9+
rev: v5.0.0
10+
hooks:
11+
- id: trailing-whitespace
12+
- id: end-of-file-fixer
13+
14+
- repo: https://github.com/commitizen-tools/commitizen
15+
rev: v4.7.2
16+
hooks:
17+
- id: commitizen
18+
19+
# Use the mirror since the main `typos` repo has tags for different
20+
# sub-packages, which confuses pre-commit when it tries to find the latest
21+
# version
22+
- repo: https://github.com/adhtruong/mirrors-typos
23+
rev: v1.32.0
24+
hooks:
25+
- id: typos

_extensions/seedcase-project/seedcase-theme/_brand.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
meta:
2-
name:
1+
meta:
2+
name:
33
full: Seedcase Project
44
short: Seedcase
55
link:
@@ -20,7 +20,7 @@ typography:
2020
- family: noto sans
2121
source: "bunny"
2222
# other weights are used inexplicitly for e.g., bold and table headers
23-
weight: [300, 500, 600]
23+
weight: [300, 500, 600]
2424
- family: poppins
2525
source: "bunny"
2626
weight: 400
@@ -29,7 +29,7 @@ typography:
2929
base:
3030
family: noto sans
3131
weight: 300
32-
headings:
32+
headings:
3333
family: poppins
3434
weight: 400
3535
monospace: roboto mono
@@ -140,4 +140,3 @@ defaults:
140140
.callout-body {
141141
font-weight: 300 !important;
142142
}
143-

_extensions/seedcase-project/seedcase-theme/_extensions/quarto-ext/fontawesome/assets/css/all.min.css

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

_extensions/seedcase-project/seedcase-theme/_extensions/quarto-ext/fontawesome/fontawesome.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ return {
4444
group = icon
4545
icon = pandoc.utils.stringify(args[2])
4646
end
47-
47+
4848
local title = pandoc.utils.stringify(kwargs["title"])
4949
if not isEmpty(title) then
5050
title = " title=\"" .. title .. "\""
@@ -58,7 +58,7 @@ return {
5858
end
5959

6060
local size = pandoc.utils.stringify(kwargs["size"])
61-
61+
6262
-- detect html (excluding epub which won't handle fa)
6363
if quarto.doc.is_format("html:js") then
6464
ensureHtmlDeps()
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"}
1+
{"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"}

_extensions/seedcase-project/seedcase-theme/images/404.svg

Lines changed: 1 addition & 1 deletion
Loading

_extensions/seedcase-project/seedcase-theme/logos/mjoelner-logo.svg

Lines changed: 1 addition & 1 deletion
Loading

_extensions/seedcase-project/seedcase-theme/logos/rm-logo.svg

Lines changed: 1 addition & 1 deletion
Loading

justfile

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,33 @@
22
just --list --unsorted
33

44
# Run all necessary build commands.
5-
run-all: check-spelling build-website
5+
run-all: check-spelling check-commits build-website
6+
7+
# Install the pre-commit hooks
8+
install-precommit:
9+
# Install pre-commit hooks
10+
uvx pre-commit install
11+
# Run pre-commit hooks on all files
12+
uvx pre-commit run --all-files
13+
# Update versions of pre-commit hooks
14+
uvx pre-commit autoupdate
615

716
# Check spelling
817
check-spelling:
918
uvx typos
1019

20+
# Run checks on commits with non-main branches
21+
check-commits:
22+
#!/bin/zsh
23+
branch_name=$(git rev-parse --abbrev-ref HEAD)
24+
number_of_commits=$(git rev-list --count HEAD ^main)
25+
if [[ ${branch_name} != "main" && ${number_of_commits} -gt 0 ]]
26+
then
27+
uvx cz check --rev-range main..HEAD
28+
else
29+
echo "Can't either be on ${branch_name} or have more than ${number_of_commits}."
30+
fi
31+
1132
# Build the website using Quarto
1233
build-website:
1334
quarto render

0 commit comments

Comments
 (0)