diff options
| author | Craig Jennings <c@cjennings.net> | 2026-07-11 23:52:49 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-07-11 23:52:49 -0500 |
| commit | e4309bfacaae12574905f0f9d9e6f637188cf582 (patch) | |
| tree | 203f5498631d0c6c66b1a3cdddd0bdcbb6f9fe85 /docs/prototypes/gallery-widget.el | |
| parent | cdbfd78a885856cf43537ddc491663f1eb93997f (diff) | |
| download | archsetup-e4309bfacaae12574905f0f9d9e6f637188cf582.tar.gz archsetup-e4309bfacaae12574905f0f9d9e6f637188cf582.zip | |
refactor(gallery): rename generated tokens.el to gallery-tokens.el
The generated file declares (provide 'gallery-tokens), but `require` resolves a feature by filename, so as tokens.el it could never load from a load-path. The name now matches the feature. gen_tokens.py, the renderer's load, and the README follow.
Diffstat (limited to 'docs/prototypes/gallery-widget.el')
| -rw-r--r-- | docs/prototypes/gallery-widget.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/prototypes/gallery-widget.el b/docs/prototypes/gallery-widget.el index 61cd78a..1c96f45 100644 --- a/docs/prototypes/gallery-widget.el +++ b/docs/prototypes/gallery-widget.el @@ -3,8 +3,8 @@ ;;; Commentary: ;; Proof-of-concept Emacs target for the panel widget gallery. The web ;; gallery (panel-widget-gallery.html) is the visual spec; tokens.json is -;; the shared source of truth, and gen_tokens.py emits tokens.el (the -;; `gallery-tokens' alist this file reads). Same tokens, same geometry, +;; the shared source of truth, and gen_tokens.py emits gallery-tokens.el +;; (the `gallery-tokens' alist this file reads). Same tokens, same geometry, ;; different renderer — that's the reuse model: shared values and shared ;; SVG shapes, per-target code. ;; @@ -25,7 +25,7 @@ (require 'svg) (require 'dom) -(load (expand-file-name "tokens.el" +(load (expand-file-name "gallery-tokens.el" (file-name-directory (or load-file-name buffer-file-name))) nil t) |
