math-study

中文文档
1.0.0发布于 2026/11/04MIT零依赖

Static Nebula proxy site build, publishable to npm and servable through jsDelivr.

原始使用文档
文档目录4 节
  1. Serve through jsDelivr
  2. Build
  3. Publish
  4. License

math-study

Static build of the Nebula proxy site, packaged for npm and jsDelivr.

The package contains the generated site routes (.svg, .xml, .xhtml, .xsl, .svgz, and .svg.gz) plus the runtime assets they reference.

Serve through jsDelivr

After publishing, files are available at:

https://cdn.jsdelivr.net/npm/math-study@<version>/index.svg
https://cdn.jsdelivr.net/npm/math-study@<version>/en_US/index.xml
https://cdn.jsdelivr.net/npm/math-study@<version>/jp/index.xhtml

Use a pinned version in production. @latest is also supported by jsDelivr, but pinned versions are cached more reliably.

Build

The generated routes are produced from the .svgz sources with xml-build.xsl:

./build.sh          # regenerate routes and .svg.gz mirrors
./build.sh --check  # verify the checked-in build is current
./build.sh --list   # list generated paths

build.sh requires xsltproc and gzip.

Publish

publish.sh prompts for an npm token without echoing it, writes a temporary mode-600 npmrc, verifies the token with npm whoami, and then publishes. The temporary file is removed on exit.

./publish.sh

For CI, pass the token through the environment instead of stdin:

NPM_TOKEN=... ./publish.sh

Any extra arguments are forwarded to npm publish, for example:

./publish.sh --dry-run
./publish.sh --otp=123456

Before publishing, prepack runs ./build.sh --check so a stale route tree cannot be uploaded.

License

MIT. See LICENSE.

The bundled glend / glend-controller runtime is derived from Mercury Workshop's Scramjet, which is distributed under the MIT license.

版本与发布记录

math-study 共发布 2 个版本,首次发布于 2026/11/04;过去 12 个月发布了 2 个版本。

版本发布日期距今
1.0.0latest2026/11/041 天前
0.0.0-stage2026/11/041 天前

关于 math-study 的常见问题

math-study 是什么?

Static Nebula proxy site build, publishable to npm and servable through jsDelivr.

如何安装 math-study?

在项目目录运行 npm install math-study,或使用 pnpm add / yarn add / bun add。

math-study 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/math-study 是否存在。

math-study 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=18。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

math-study 可以商用吗?

math-study 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

math-study 还在维护吗?

最新版本 1.0.0 发布于 2026/11/04(1 天前);至今共发布 2 个版本,其中过去 12 个月发布了 2 个;首次发布于 2026/11/04。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。