site/gen.mjs writes them from site/api.mjs, which holds each endpoint and type as the handlers have them, and site/docs.mjs, the guides. A misspelt type in api.mjs fails the build rather than leaving a name that links nowhere. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
15 lines
645 B
Bash
Executable File
15 lines
645 B
Bash
Executable File
#!/bin/sh
|
|
# ipxreader.app: the page and its stylesheet, and the typeface, logo and icon from web/, into
|
|
# site/dist, which Cloudflare Pages serves.
|
|
set -e
|
|
here=$(dirname "$0")
|
|
rm -rf "$here/dist"
|
|
mkdir -p "$here/dist/fonts"
|
|
cp "$here/index.html" "$here/site.css" "$here/wave.svg" "$here/gitea.svg" "$here/_headers" "$here/dist/"
|
|
# The reader's own typeface, the same file ipx-web serves.
|
|
cp "$here/../web/InterVariable.woff2" "$here/dist/fonts/inter.woff2"
|
|
cp "$here/../web/logo.svg" "$here/../web/favicon.png" "$here/dist/"
|
|
cp -r "$here/shots" "$here/dist/"
|
|
# The docs: the guides and the API references, generated (#223).
|
|
node "$here/gen.mjs"
|