Skip to content

Commit 00714b3

Browse files
author
Zhuoming Chen
committed
docs
1 parent c5deab7 commit 00714b3

4 files changed

Lines changed: 150 additions & 3 deletions

File tree

‎.github/workflows/docs.yaml‎

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
paths:
77
- "docs/**"
88
- "vortex_torch/**"
9+
- "assets/**"
910
- ".github/workflows/docs.yaml"
1011

1112
jobs:
@@ -26,8 +27,19 @@ jobs:
2627
run: |
2728
make -C docs html
2829
30+
- name: Assemble site (landing page at root, Sphinx docs under /docs)
31+
run: |
32+
rm -rf public
33+
mkdir -p public/docs public/assets
34+
# Sphinx HTML -> /docs
35+
cp -r docs/_build/html/. public/docs/
36+
# Welcome / landing page -> root
37+
cp docs/landing/index.html public/index.html
38+
# Assets referenced by the landing page (logo, etc.)
39+
cp assets/vortex_logo_flat.png public/assets/ || true
40+
2941
- name: Deploy to GitHub Pages
3042
uses: peaceiris/actions-gh-pages@v3
3143
with:
3244
github_token: ${{ secrets.GITHUB_TOKEN }}
33-
publish_dir: docs/_build/html
45+
publish_dir: public

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Vortex: A Flexible and Efficient Sparse Attention Framework
1111
</h3>
1212

1313
<p align="center">
14-
<a href="https://infini-ai-lab.github.io/vortex_torch/"><b>Documentation</b></a>
14+
<a href="https://infini-ai-lab.github.io/vortex_torch/docs/"><b>Documentation</b></a>
1515
</p>
1616

1717

‎docs/conf.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
myst_enable_extensions = ["deflist", "linkify", "substitution", "tasklist"]
7171

7272
templates_path = ["_templates"]
73-
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
73+
exclude_patterns = ["_build", "landing", "Thumbs.db", ".DS_Store"]
7474
language = "en"
7575

7676
# -- HTML --------------------------------------------------------------------

‎docs/landing/index.html‎

Lines changed: 135 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,135 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1" />
6+
<title>Vortex — A Flexible and Efficient Sparse Attention Framework</title>
7+
<meta name="description" content="Vortex is a JIT-compiled sparse-attention framework for fast LLM decoding. Describe a sparse-attention flow in a few lines of Python and compile it into fused Triton kernels for SGLang." />
8+
<style>
9+
:root {
10+
--bg: #0b0d12;
11+
--bg-soft: #12151d;
12+
--card: #161a24;
13+
--border: #232838;
14+
--fg: #e8ecf4;
15+
--muted: #9aa4b8;
16+
--accent: #6ea8fe;
17+
--accent-2: #b88cff;
18+
}
19+
* { box-sizing: border-box; }
20+
html, body { margin: 0; padding: 0; }
21+
body {
22+
background: radial-gradient(1200px 600px at 50% -10%, #1a2030 0%, var(--bg) 60%);
23+
color: var(--fg);
24+
font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
25+
min-height: 100vh;
26+
}
27+
.wrap { max-width: 880px; margin: 0 auto; padding: 72px 24px 96px; }
28+
header { text-align: center; }
29+
.logo { width: min(360px, 70%); height: auto; margin: 0 auto 12px; display: block; }
30+
h1 { font-size: 2.6rem; margin: 8px 0 4px; letter-spacing: -0.02em; }
31+
.tagline { color: var(--muted); font-size: 1.15rem; margin: 0 auto 8px; max-width: 620px; }
32+
.badges { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 20px 0 0; }
33+
.badge {
34+
font-size: 0.82rem; color: var(--muted); border: 1px solid var(--border);
35+
border-radius: 999px; padding: 4px 12px; background: var(--bg-soft);
36+
}
37+
.cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 36px 0 8px; }
38+
.btn {
39+
display: inline-flex; align-items: center; gap: 9px; text-decoration: none;
40+
padding: 12px 22px; border-radius: 12px; font-weight: 600; font-size: 1rem;
41+
border: 1px solid var(--border); color: var(--fg); background: var(--card);
42+
transition: transform .12s ease, border-color .12s ease, background .12s ease;
43+
}
44+
.btn:hover { transform: translateY(-2px); border-color: var(--accent); }
45+
.btn.primary {
46+
background: linear-gradient(120deg, var(--accent), var(--accent-2));
47+
color: #0b0d12; border-color: transparent;
48+
}
49+
.btn svg { width: 18px; height: 18px; }
50+
51+
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 48px 0 0; }
52+
.card {
53+
display: block; text-decoration: none; color: inherit;
54+
background: var(--card); border: 1px solid var(--border); border-radius: 16px;
55+
padding: 22px; transition: transform .12s ease, border-color .12s ease;
56+
}
57+
.card:hover { transform: translateY(-3px); border-color: var(--accent); }
58+
.card h3 { margin: 0 0 6px; font-size: 1.12rem; }
59+
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
60+
.card .arrow { color: var(--accent); font-weight: 700; }
61+
62+
section.snippet { margin: 56px 0 0; }
63+
section.snippet h2 { font-size: 1.05rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 12px; }
64+
pre {
65+
background: var(--bg-soft); border: 1px solid var(--border); border-radius: 14px;
66+
padding: 18px 20px; overflow-x: auto; font-size: 0.9rem; line-height: 1.55;
67+
color: #d7def0;
68+
}
69+
code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace; }
70+
footer { text-align: center; color: var(--muted); font-size: 0.88rem; margin-top: 64px; }
71+
footer a { color: var(--accent); text-decoration: none; }
72+
</style>
73+
</head>
74+
<body>
75+
<div class="wrap">
76+
<header>
77+
<img class="logo" src="assets/vortex_logo_flat.png" alt="Vortex" onerror="this.style.display='none'" />
78+
<h1>Vortex</h1>
79+
<p class="tagline">A flexible and efficient <strong>sparse-attention</strong> framework for fast LLM decoding. Describe a flow in a few lines of Python — Vortex JIT-compiles it into fused Triton kernels that plug straight into SGLang.</p>
80+
<div class="badges">
81+
<span class="badge">JIT-compiled</span>
82+
<span class="badge">Triton kernels</span>
83+
<span class="badge">SGLang backend</span>
84+
<span class="badge">PyTorch-like frontend</span>
85+
</div>
86+
<div class="cta">
87+
<a class="btn primary" href="docs/">
88+
📖 Read the Docs
89+
</a>
90+
<a class="btn" href="https://github.com/Infini-AI-Lab/vortex_torch">
91+
<svg viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.01 8.01 0 0016 8c0-4.42-3.58-8-8-8z"/></svg>
92+
GitHub
93+
</a>
94+
</div>
95+
</header>
96+
97+
<div class="cards">
98+
<a class="card" href="docs/">
99+
<h3>Documentation <span class="arrow">→</span></h3>
100+
<p>API reference, tutorials, and the full op set for building custom sparse-attention flows.</p>
101+
</a>
102+
<a class="card" href="https://github.com/Infini-AI-Lab/vortex_torch">
103+
<h3>Source on GitHub <span class="arrow">→</span></h3>
104+
<p>Clone the repo, file issues, and contribute. Includes vendored SGLang and example flows.</p>
105+
</a>
106+
<a class="card" href="docs/#quick-example">
107+
<h3>Quick Example <span class="arrow">→</span></h3>
108+
<p>Centroid-based block-sparse routing in a dozen lines of high-level Python ops.</p>
109+
</a>
110+
<a class="card" href="https://openhands.dev/">
111+
<h3>AI-Generated Attention <span class="arrow">→</span></h3>
112+
<p>Use SOTA agents like OpenHands to generate and benchmark sparse-attention algorithms.</p>
113+
</a>
114+
</div>
115+
116+
<section class="snippet">
117+
<h2>Install</h2>
118+
<pre><code>git clone --recursive https://github.com/Infini-AI-Lab/vortex_torch.git
119+
cd vortex_torch
120+
121+
# SGLang dependency (vendored)
122+
cd third_party/sglang/v0.5.9/sglang
123+
pip install -e "python"
124+
cd ../../../../
125+
126+
# Vortex
127+
pip install -e .</code></pre>
128+
</section>
129+
130+
<footer>
131+
<p>Vortex — Infini-AI-Lab · <a href="https://github.com/Infini-AI-Lab/vortex_torch">GitHub</a> · <a href="docs/">Docs</a></p>
132+
</footer>
133+
</div>
134+
</body>
135+
</html>

0 commit comments

Comments
 (0)