For AI agents: the complete documentation index is available at /next/zh/llms.txt, the full documentation bundle is available at /next/zh/llms-full.txt, and this page is available as Markdown at /next/zh/help/spec.md.
Lynx
  • 简体中文
  • 管理规范

    Lynx Living Specification 是 Lynx 引擎的权威技术参考。

    位置

    规范源文件位于 packages/lynx-living-spec/。 源 .bs 文件具体位于 packages/lynx-living-spec/src/

    格式

    规范是用 Bikeshed (.bs) 编写的,这是 W3C 标准常用的规范文档预处理器。

    先决条件

    要构建规范,您需要安装 Bikeshed。我们推荐使用 pipx 安装它。

    安装 pipx

    如果您没有安装 pipx,可以通过 Homebrew(在 macOS 上)安装:

    brew install pipx

    安装 Bikeshed

    安装 pipx 后,安装 bikeshed

    pipx install bikeshed

    编辑规范

    1. 修改 packages/lynx-living-spec/src/ 中的 .bs 文件。
      • index.bs 是主要入口点。
      • 其他部分被拆分为单独的文件,如 styling.bsscripting.bs 等。
    2. 要在本地构建规范,请运行:
    pnpm gen:living-spec

    这使用脚本 (scripts/lynx-living-spec.js) 调用 bikeshed 并生成 HTML 输出至 docs/public/living-spec/index.html

    除非另有说明,本项目采用知识共享署名 4.0 国际许可协议进行许可,代码示例采用 Apache License 2.0 许可协议进行许可。