Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Risk-sensitive changes require the repository owner.
/.github/CODEOWNERS @Pigbibi
/.github/workflows/ @Pigbibi
/.github/scripts/ @Pigbibi
Comment thread
Pigbibi marked this conversation as resolved.
Resolved
6 changes: 4 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ updates:
directory: /
schedule:
interval: weekly
commit-message:
prefix: "chore"
groups:
actions-minor-and-patch:
actions:
patterns:
- "*"
update-types:
- minor
- patch
open-pull-requests-limit: 3
open-pull-requests-limit: 5
5 changes: 5 additions & 0 deletions .github/scripts/dependabot-policy.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"action_files": [
".github/workflows/docs-check.yml"
]
}
8 changes: 7 additions & 1 deletion .github/workflows/engineering-governance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ jobs:
tool="$RUNNER_TEMP/governance-commitlint"
npm install --prefix "$tool" --ignore-scripts --no-audit --no-fund \
@commitlint/cli@21.2.4 @commitlint/config-conventional@21.2.4
printf '%s\n' "module.exports = {extends: [require.resolve('@commitlint/config-conventional')], defaultIgnores: true, ignores: [(message) => /^Merge /.test(message)], rules: {'subject-case': [0], 'header-max-length': [2, 'always', 72], 'type-enum': [2, 'always', ['feat', 'fix', 'docs', 'refactor', 'test', 'chore', 'perf', 'ci']]}};" > "$tool/commitlint.config.cjs"
printf '%s\n' "module.exports = {extends: [require.resolve('@commitlint/config-conventional')], defaultIgnores: true, rules: {'subject-case': [0], 'header-max-length': [2, 'always', 72], 'type-enum': [2, 'always', ['feat', 'fix', 'docs', 'refactor', 'test', 'chore', 'perf', 'ci', 'build']]}};" > "$tool/commitlint.config.cjs"
for message in 'Merge bypass' 'Merge fix: bypass'; do
if printf '%s\n' "$message" | node "$tool/node_modules/@commitlint/cli/cli.js" --config "$tool/commitlint.config.cjs" >/dev/null 2>&1; then
echo "commitlint incorrectly ignored: $message" >&2
exit 1
fi
done
node "$tool/node_modules/@commitlint/cli/cli.js" \
--config "$tool/commitlint.config.cjs" --from "$PR_BASE" --to "$PR_HEAD" --verbose
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ python3 ../.github/scripts/check_style.py --root . --phase 2

## 约束

- 站点是公开的:不写真实账号、内网主机名、个人子域名或部署机路径。
- 站点是公开的:不写真实账号、内网主机名、个人子域名或部署机路径(GitHub 平台强制使用字面 `@username` 的 `.github/CODEOWNERS` 除外)。
- 图标改动必须符合 `site-icons/spec` 的几何与对比度要求,测试会检查。
- 只有 `site/` 会被发布;不要把仅供内部查看的材料放进 `site/`。
- 仅当安装、配置或对外行为变化时更新 `README.md`,不在其中写 `this PR`、`remains unchanged` 或阶段流水线编号。
71 changes: 70 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,71 @@
# quantstrategylab.github.io
QuantStrategyLab official website

English | [简体中文](README.zh-CN.md)

Static organization landing site for QuantStrategyLab, served from `site/` via GitHub Pages.

## Status

Active. This repository publishes the static organization landing page and icon assets. It is informational only, provides no financial or investment advice, and does not execute trades or connect to any broker.

## What this is

A dependency-free HTML and CSS landing page introducing QuantStrategyLab and its open-source repositories, together with the source icon specifications and local verification scripts used to build and check the published `site/` directory.

## What this is not

This repository does not contain trading strategies, market-data pipelines, execution engines, or user accounts. It has no backend service, server-side rendering, or third-party runtime dependencies.

## Quick start

Requirements: Node.js 20+ and Python 3.12+.

```bash
# Rebuild site icons and run the Node test suite
npm test

# Run the Python site checker tests and publication guard
python3 -m unittest discover -s scripts -p "test_*.py"
python3 scripts/check_site.py --phase 2
```

To preview the static site locally, serve the `site/` directory with any static HTTP server:

```bash
python3 -m http.server --directory site 8080
```

## Configuration

The site has no runtime environment variables or configuration files. GitHub Pages deployment is configured in `.github/workflows/pages.yml` and publishes only the `site/` directory.

| Item | Required | Default | Purpose |
|---|---|---|---|
| `site/` | Yes | Repository root `site/` | Static HTML, CSS, icons, and manifest uploaded to GitHub Pages |
| `PORT` (local preview) | No | `8080` | Local HTTP server port when previewing `site/` |

## Architecture

The published site is pure static HTML and CSS in `site/` with zero external network requests at runtime. Icon masters and specifications live outside `site/` under `site-icons/` and are compiled into `site/` by `scripts/build-site-icons.mjs`. Publication checks verify icon integrity, contrast, i18n key parity, and public content boundaries before deployment.

## Repository layout

```text
site/ Published static site (index.html, assets/, icons, manifest)
site-icons/ Icon source assets, contrast measurements, and specifications
scripts/ Icon build script (build-site-icons.mjs) and site checks
tests/ Node test suite covering icons and landing page invariants
.github/ GitHub Actions workflows, CODEOWNERS, and Dependabot config
```

## Contributing

See [CONTRIBUTING.md](CONTRIBUTING.md) and [AGENTS.md](AGENTS.md) for contribution workflow, commit conventions, and public content boundaries.

## Security

See [SECURITY.md](SECURITY.md). Do not open a public issue for a vulnerability.

## License

Released under the [MIT License](LICENSE).
71 changes: 71 additions & 0 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# quantstrategylab.github.io

[English](README.md) | 简体中文

QuantStrategyLab 的静态组织官网仓库,通过 GitHub Pages 发布 `site/` 目录。

## 状态

维护中。本仓库发布静态组织主页与图标资源,仅用于项目信息展示,不构成任何金融或投资建议,也不执行交易或连接任何券商接口。

## 简介

本仓库包含介绍 QuantStrategyLab 及其开源项目的纯 HTML/CSS 落地页,以及用于生成和校验 `site/` 目录的图标源文件、规格定义与本地验证脚本。

## 不适用范围

本仓库不包含交易策略、行情数据管道、执行引擎或用户账号系统,也没有后端服务、服务端渲染或第三方运行时依赖。

## 快速开始

环境要求:Node.js 20+ 与 Python 3.12+。

```bash
# 重新生成站点图标并运行 Node 测试套件
npm test

# 运行 Python 站点检查单元测试与发布检查
python3 -m unittest discover -s scripts -p "test_*.py"
python3 scripts/check_site.py --phase 2
```

如需在本地预览静态站点,可使用任意静态 HTTP 服务器托管 `site/` 目录:

```bash
python3 -m http.server --directory site 8080
```

## 配置

本站点不需要运行时环境变量或配置文件。GitHub Pages 部署配置位于 `.github/workflows/pages.yml`,仅上传并发布 `site/` 目录。

| 配置项 | 必填 | 默认值 | 用途 |
|---|---|---|---|
| `site/` | 是 | 仓库内 `site/` | 上传至 GitHub Pages 的静态 HTML、CSS、图标与 manifest |
| 本地预览端口 | 否 | `8080` | 本地预览 `site/` 时使用的 HTTP 端口 |

## 架构

已发布站点为 `site/` 目录下的纯静态 HTML 与 CSS,运行时不发起任何外部网络请求。图标源文件与规格保存在 `site/` 之外的 `site-icons/` 目录中,由 `scripts/build-site-icons.mjs` 生成并同步到 `site/`。发布检查会在部署前校验图标完整性、对比度、双语键值一致性及公开内容边界。

## 仓库结构

```text
site/ 实际发布的静态站点(index.html、assets/、图标与 manifest)
site-icons/ 图标源文件、对比度测量数据与规格说明
scripts/ 图标构建脚本(build-site-icons.mjs)与站点检查脚本
tests/ 覆盖图标与落地页不变量的 Node 测试套件
.github/ GitHub Actions 工作流、CODEOWNERS 与 Dependabot 配置
```

## 参与贡献

贡献流程、提交规范与公开内容边界请参见 [CONTRIBUTING.md](CONTRIBUTING.md) 与 [AGENTS.md](AGENTS.md)。

## 安全

安全漏洞披露方式请参见 [SECURITY.md](SECURITY.md),请勿在公开 issue 中提交漏洞细节。

## 许可证

基于 [MIT License](LICENSE) 发布。
Loading