Skip to content

Strengthen AI quant SEO signals and Pages deployability - #85

Merged
xingwudao merged 1 commit into
mainfrom
seo-ai-quant-followup
Sep 2, 2026
Merged

xingwudao merged 1 commit into
mainfrom
seo-ai-quant-followup

Conversation

@xingwudao

Copy link
Copy Markdown
Owner

Linked Issue

Closes #84

Linked Docs / Plans

No public design or implementation plan document is linked. Internal SEO notes under docs/seo/ are intentionally excluded from version control in this PR.

Public SEO-facing artifacts in this change:

  • README.md
  • website/public/llms.txt
  • website/.vitepress/seo.mts
  • .github/workflows/docs-pages.yml
  • tests/docs/

Requirement Background

After the first Chinese SEO pass, the public site existed but still had gaps in machine-readable page signals and publication operations. The repository metadata and Pages settings were updated directly outside this PR, and this branch adds code-side guardrails so the site remains easier for search engines and AI crawlers to understand.

The user also clarified that docs/seo/ should not be kept in version control.

Design Constraints

  • Preserve canonical naming from AGENTS.md.
  • Do not touch trading, backtest, factor, broker, or strategy runtime logic.
  • Keep internal planning artifacts out of tracked docs paths.
  • Keep SEO metadata deterministic and validated from generated HTML.
  • Support manual Pages deployment from main without changing PR behavior.

Data Flow

  • VitePress renders markdown pages from website/.
  • website/.vitepress/seo.mts derives canonical URLs, Open Graph fields, Twitter fields, and JSON-LD from each page's VitePress metadata.
  • website/public/llms.txt is copied into the static site as an AI-readable entry-point index.
  • website/scripts/validate_site.py parses generated HTML and verifies required metadata, JSON-LD, sitemap, robots, and uniqueness constraints.
  • The GitHub Pages workflow builds and validates docs, then uploads and deploys the artifact for push or workflow_dispatch on main.

Non-goals

  • No Google Search Console automation.
  • No paid search or external distribution work.
  • No guarantee of ranking position for AI 量化 queries.
  • No public release runbook under docs/seo/.

Compatibility

  • Existing VitePress build flow remains unchanged for PR validation.
  • workflow_dispatch can now deploy only when the ref is refs/heads/main.
  • Existing generated skill and CLI pages remain deterministic.
  • docs/seo/, docs/infographic/, and docs/superpowers/ remain ignored internal artifact paths.

Key Review Scope

  • Correctness of JSON-LD type selection: homepage, FAQ, list pages, and article pages.
  • Completeness of Open Graph and Twitter metadata.
  • llms.txt URL accuracy and AI quant positioning.
  • Docs workflow deploy condition for manual dispatch.
  • Removal of tracked docs/seo/ files and related test updates.

Verification Results

Passed locally:

  • uv run pytest tests/docs tests/contracts/test_brand_naming.py -q
  • uv run ruff check website/scripts tests/docs
  • uv run mypy website/scripts
  • npm --prefix website run docs:check
  • npm --prefix website run docs:build
  • npm --prefix website run docs:validate
  • git diff --check

@xingwudao

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 2, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-02T06:03:47.348205Z 12361c0 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@xingwudao
xingwudao merged commit b96ebc0 into main Sep 2, 2026
2 checks passed

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 12361c05e4

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

assert "Google Search Console" in text
assert "gh repo view xingwudao/open-xquant" in text
def test_internal_seo_artifacts_are_not_versioned() -> None:
assert not (ROOT / "docs/seo").exists()

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Check tracking rather than directory existence

When a developer keeps private SEO notes under the newly ignored docs/seo/ path, this assertion fails even though none of those files are versioned—the exact state the ignore rule is meant to support. Check Git's tracked-file list instead of requiring the ignored directory to be absent, so the docs test suite remains usable with local internal artifacts.

Useful? React with 👍 / 👎.

@xingwudao
xingwudao deleted the seo-ai-quant-followup branch September 2, 2026 06:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Strengthen AI quant SEO signals and Pages deployability

1 participant