Repository navigation
docs: align README, CODEOWNERS, and governance workflows #23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| { | ||
| "action_files": [ | ||
| ".github/workflows/docs-check.yml" | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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) 发布。 |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.