use pep723 to config pyscript

This commit is contained in:
Jean-Marie 'Histausse' Mineau 2026-05-31 23:33:50 +02:00
parent 7e8ee9d17e
commit 25cb9c6403
Signed by: histausse
GPG key ID: B66AEEDA9B645AD2
6 changed files with 149 additions and 54 deletions

View file

@ -1,8 +1,8 @@
#import "./html_head.typ": html_head
#import "./html_body.typ": html_body
#import "./html_utils.typ": html_show
#import "./html_head.typ": html-head
#import "./html_body.typ": html-body
#import "./html_utils.typ": html-show
#import "./summary.typ": summary, card-list
#import "./pyscript.typ": state-use-pyscript, state-pyscript-headers, state-pyscript-version, pyscript
#import "./pyscript.typ": state-use-pyscript, state-pyscript-headers, state-pyscript-version, pyscript-show
#import "./rss.typ": rss
#import "./icons.typ"
@ -56,9 +56,10 @@
state-pyscript-headers.update(x => pyscript-headers)
state-pyscript-version.update(x => pyscript-version)
}
show: html_show
show: html-show
show raw.where(block: true, lang: "python"): pyscript-show
html.html(lang: lang, {
html_head(
html-head(
url,
title,
icon: icon,
@ -70,7 +71,7 @@
stylesheets: stylesheets,
me-links: me-links
)
html_body(
html-body(
logo: logo,
header: header,
footer: footer,