Skip to content

Commit 220456f

Browse files
Add social previews (#40)
1 parent 8905dec commit 220456f

File tree

10 files changed

+4868
-1789
lines changed

10 files changed

+4868
-1789
lines changed

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# SCM syntax highlighting & preventing 3-way merges
2+
pixi.lock merge=binary linguist-language=YAML linguist-generated=true

.github/workflows/ci.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
name: CI
22
on:
3+
push:
4+
branches:
5+
- "main"
36
pull_request:
47

58
jobs:
69
build:
710
runs-on: ubuntu-latest
811
steps:
912
- uses: actions/checkout@v4
10-
- uses: actions/checkout@v4
11-
- uses: astral-sh/setup-uv@v4
13+
- uses: prefix-dev/setup-pixi@v0.9.3
1214
with:
13-
version: "latest"
14-
- run: uv run mkdocs build
15+
pixi-version: latest
16+
- run: pixi run mkdocs build
1517
- uses: actions/upload-artifact@v4
1618
with:
1719
name: Website

.github/workflows/gh-pages.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,14 @@ jobs:
1717
run: |
1818
git config user.name github-actions[bot]
1919
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
20-
- uses: actions/checkout@v4
21-
- uses: astral-sh/setup-uv@v4
20+
- uses: prefix-dev/setup-pixi@v0.9.3
2221
with:
23-
version: "latest"
22+
pixi-version: latest
2423
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
2524
- uses: actions/cache@v4
2625
with:
2726
key: mkdocs-material-${{ env.cache_id }}
2827
path: .cache
2928
restore-keys: |
3029
mkdocs-material-
31-
- run: uv run mkdocs gh-deploy --force
30+
- run: pixi run mkdocs gh-deploy --force

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,7 @@
22
!docs/talks/assets
33
__pycache__
44
.DS_Store
5+
# pixi environments
6+
.pixi/*
7+
!.pixi/config.toml
8+
.cache

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
This website codebase uses `uv` and `mkdocs`. To get started (assuming you have `uv` installed):
1010

1111
- clone this repo and `cd` into it
12-
- run `uv run python -m mkdocs serve` to set up the environment and run the development server
12+
- run `pixi run mkdocs serve` to set up the environment and run the development server
1313

1414
This project also uses `pre-commit` which you can optionally run locally (though not required as it's run in the cloud anyway).
1515

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ nav:
3030
- calendar.md
3131
- code-of-conduct.md
3232
plugins:
33+
- social
3334
- macros
3435
- mkdocs-jupyter:
3536
ignore_h1_titles: True

pixi.lock

Lines changed: 4832 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pixi.toml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
[workspace]
2+
name = "CLAM"
3+
version = "0.1.0"
4+
description = "CLAM Website"
5+
channels = ["conda-forge"]
6+
platforms = ["linux-64", "osx-64", "osx-arm64", "win-64"]
7+
8+
[dependencies]
9+
python = ">=3.10"
10+
mkdocs = ">=1.6.1"
11+
pydantic = ">=2.12.1"
12+
pyyaml = ">=6.0.1"
13+
14+
# mkdocs
15+
mkdocs-material = ">=9.5.50"
16+
mkdocs-macros-plugin = ">=1.3.7"
17+
mkdocs-jupyter = ">=0.25.1"
18+
pillow = "*"
19+
cairosvg = "*"

pyproject.toml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,3 @@
1-
[project]
2-
name = "CLAM"
3-
version = "0.1.0"
4-
description = "CLAM Website"
5-
readme = "README.md"
6-
requires-python = ">=3.10"
7-
dependencies = [
8-
"mkdocs-macros-plugin>=1.3.7",
9-
"mkdocs>=1.6.1",
10-
"mkdocs-jupyter>=0.25.1",
11-
"mkdocs-material>=9.5.50",
12-
"pydantic>=2.12.1",
13-
"pyyaml>=6.0.1",
14-
]
15-
161
[tool.ruff]
172
select = [
183
"D", # pydocstyle

uv.lock

Lines changed: 0 additions & 1765 deletions
This file was deleted.

0 commit comments

Comments
 (0)