Make builds of the editor and the website serve their own local fonts (#2186)

* WIP

* Done?

* Install fonts in CI

* Use absolute path so minified inlined CSS works

* Fix Bezier-rs demo fonts?

* Use opsz

* Revert removal of text balancer

* Pull in the text balancer from our static host
This commit is contained in:
Keavon Chambers 2025-05-19 02:38:29 -07:00 committed by GitHub
parent ea59f10b50
commit e57637aab1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
28 changed files with 1305 additions and 755 deletions

View file

@ -13,7 +13,7 @@ on:
- website/**
env:
CARGO_TERM_COLOR: always
INDEX_HTML_HEAD_INCLUSION: <script defer data-domain="graphite.rs" data-api="/visit/event" src="/visit/script.js"></script>
INDEX_HTML_HEAD_INCLUSION: <script defer data-domain="graphite.rs" data-api="/visit/event" src="/visit/script.hash.js"></script>
jobs:
build:
@ -30,7 +30,7 @@ jobs:
- name: 🕸 Install Zola
uses: taiki-e/install-action@v2
with:
tool: zola@0.19.1
tool: zola@0.20.0
- name: ✂ Replace template in <head> of index.html
run: |
@ -42,7 +42,8 @@ jobs:
MODE: prod
run: |
cd website
zola --config config_prod.toml build
npm run install-fonts
zola --config config.toml build --minify
- name: 🔍 Check if `website/other` directory changed
uses: dorny/paths-filter@v3