use pep723 to config pyscript
This commit is contained in:
parent
7e8ee9d17e
commit
25cb9c6403
6 changed files with 149 additions and 54 deletions
15
lib/main.typ
15
lib/main.typ
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue