Skip to content

Commit d5096bb

Browse files
authored
Changes for Toucan 1.0.0-beta.5 (#8)
1 parent 1006806 commit d5096bb

File tree

324 files changed

+154
-112
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

324 files changed

+154
-112
lines changed

.github/workflows/deploy.yml

Lines changed: 10 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -2,40 +2,16 @@ name: Build and Deploy with Toucan
22

33
on:
44
push:
5-
branches: [main]
6-
7-
permissions:
8-
contents: read
9-
pages: write
10-
id-token: write
5+
tags:
6+
- 'v*'
7+
- '[0-9]*'
118

129
jobs:
13-
build-page:
14-
runs-on: ubuntu-latest
15-
steps:
16-
- name: Checkout repository
17-
uses: actions/checkout@v4
18-
19-
- name: Build site using Toucan
20-
run: |
21-
docker run --rm \
22-
-v ${{ github.workspace }}:/site \
23-
-w /site \
24-
--user $(id -u):$(id -g) \
25-
toucansites/toucan generate ./src ./docs
26-
27-
- name: Upload static site to GitHub Pages
28-
uses: actions/upload-pages-artifact@v3
29-
with:
30-
path: ./docs
31-
3210
deploy-page:
33-
needs: build-page
34-
runs-on: ubuntu-latest
35-
environment:
36-
name: github-pages
37-
url: ${{ steps.deployment.outputs.page_url }}
38-
steps:
39-
- name: Deploy to GitHub Pages
40-
id: deployment
41-
uses: actions/deploy-pages@v4
11+
uses: toucansites/github-workflows/.github/workflows/deploy.yml@main
12+
with:
13+
target: "live"
14+
permissions:
15+
contents: read
16+
pages: write
17+
id-token: write

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
.DS_Store
2-
/docs
2+
/docs
3+
/dist

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2015-2024 Tibor Bödecs
3+
Copyright (c) 2015-2025 Tibor Bödecs
44

55
Permission is hereby granted, free of charge, to any person
66
obtaining a copy of this software and associated documentation

Makefile

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,24 @@
1-
build:
2-
toucan generate ./src ./docs
1+
SHELL=/bin/bash
2+
3+
# brew install optipng jpegoptim
4+
5+
dev:
6+
toucan generate .
7+
8+
dist:
9+
toucan generate . --target live
10+
11+
diff:
12+
diff --color=always -r docs-v4 docs --exclude=api || true
313

414
watch:
5-
toucan watch ./src ./docs --base-url /
15+
toucan watch .
616

717
serve:
8-
LOG_LEVEL=notice toucan serve
9-
10-
# brew install optipng jpegoptim
18+
toucan serve ./docs -p 3000
1119

1220
png:
13-
find ./src/* -type f -name '*.png' -exec optipng -o7 {} \;
21+
find ./* -type f -name '*.png' -exec optipng -o7 {} \;
1422

1523
jpg:
16-
find ./* -type f -name '*.jpg' | xargs jpegoptim --all-progressive '*.jpg'
24+
find ./* -type f -name '*.jpg' | xargs jpegoptim --all-progressive '*.jpg'
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)