|
| 1 | +vLLM-Ascend |
| 2 | +============================================ |
| 3 | + |
| 4 | +.. raw:: html |
| 5 | + |
| 6 | + <style> |
| 7 | + /* 样式隔离:仅作用于 vllm-ascend 首页 */ |
| 8 | + #vllm-ascend-portal { |
| 9 | + --va-primary: #0066cc; |
| 10 | + --va-secondary: #00a86b; |
| 11 | + --va-accent: #ff6b35; |
| 12 | + --va-purple: #9d4edd; |
| 13 | + --va-text-main: #1a1a1a; |
| 14 | + --va-text-sub: #666666; |
| 15 | + --va-border: #e1e4e8; |
| 16 | + --va-bg-light: #f6f8fa; |
| 17 | + font-family: -apple-system, system-ui, Segoe UI, Roboto, Helvetica; |
| 18 | + } |
| 19 | +
|
| 20 | + /* 英雄区 */ |
| 21 | + .va-hero { |
| 22 | + background: linear-gradient(135deg, var(--va-primary) 0%, #004a99 100%); |
| 23 | + color: white; |
| 24 | + padding: 60px 40px; |
| 25 | + border-radius: 12px; |
| 26 | + margin: 20px 0 40px 0; |
| 27 | + text-align: center; |
| 28 | + box-shadow: 0 8px 24px rgba(0, 102, 204, 0.15); |
| 29 | + } |
| 30 | + .va-hero h1 { color: white !important; border: none !important; margin: 0 0 15px 0 !important; font-size: 2.8rem !important; } |
| 31 | + .va-hero-subtitle { font-size: 1.2rem; opacity: 0.95; margin-bottom: 30px; } |
| 32 | + .va-hero-buttons { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; } |
| 33 | + .va-btn { |
| 34 | + padding: 12px 30px; border-radius: 6px; text-decoration: none !important; |
| 35 | + font-weight: 600; transition: all 0.3s ease; border: 2px solid white; |
| 36 | + } |
| 37 | + .va-btn-primary { background: white; color: var(--va-primary) !important; } |
| 38 | + .va-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 16px rgba(0,0,0,0.2); } |
| 39 | +
|
| 40 | + /* 快速开始卡片 */ |
| 41 | + .va-section-title { text-align: center; color: var(--va-primary); margin: 50px 0 30px 0; font-size: 2rem; border: none !important; } |
| 42 | + .va-quick-grid { |
| 43 | + display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); |
| 44 | + gap: 20px; margin-top: 30px; |
| 45 | + } |
| 46 | + .va-quick-card { |
| 47 | + text-decoration: none !important; border: 1px solid var(--va-border); |
| 48 | + padding: 25px; border-radius: 10px; text-align: center; transition: 0.3s; background: white; |
| 49 | + } |
| 50 | + .va-quick-card:hover { border-color: var(--va-primary); transform: scale(1.03); box-shadow: 0 10px 20px rgba(0,102,204,0.1); } |
| 51 | + .va-quick-card h4 { color: var(--va-primary); margin: 12px 0 6px 0 !important; border: none !important; font-size: 1.05rem !important; } |
| 52 | + .va-quick-card p { color: var(--va-text-sub); font-size: 0.85rem; margin: 0; } |
| 53 | +
|
| 54 | + /* 核心特性标签 */ |
| 55 | + .va-features-wrapper { |
| 56 | + background: var(--va-bg-light); border-radius: 12px; |
| 57 | + padding: 35px 25px; margin: 50px 0 20px 0; text-align: center; |
| 58 | + } |
| 59 | + .va-feature-tags { |
| 60 | + display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 20px; |
| 61 | + } |
| 62 | + .va-feature-tag { |
| 63 | + display: inline-flex; align-items: center; gap: 6px; |
| 64 | + background: white; border: 1px solid var(--va-border); border-radius: 20px; |
| 65 | + padding: 8px 18px; font-size: 0.9rem; color: var(--va-text-main); |
| 66 | + transition: all 0.3s ease; |
| 67 | + } |
| 68 | + .va-feature-tag:hover { border-color: var(--va-primary); box-shadow: 0 4px 8px rgba(0,102,204,0.1); } |
| 69 | +
|
| 70 | + @media (max-width: 768px) { |
| 71 | + .va-hero h1 { font-size: 2rem !important; } |
| 72 | + .va-quick-grid { grid-template-columns: 1fr 1fr; } |
| 73 | + } |
| 74 | + </style> |
| 75 | + |
| 76 | + <div id="vllm-ascend-portal"> |
| 77 | + |
| 78 | + <!-- 英雄区:仅 GitHub 按钮 --> |
| 79 | + <div class="va-hero"> |
| 80 | + <h1>vllm-ascend</h1> |
| 81 | + <p class="va-hero-subtitle"> |
| 82 | + 面向昇腾 NPU 的 vLLM 社区插件 · 高性能 LLM 推理加速 |
| 83 | + </p> |
| 84 | + <div class="va-hero-buttons"> |
| 85 | + <a href="https://github.com/vllm-project/vllm-ascend" class="va-btn va-btn-primary" target="_blank">📖 GitHub 仓库</a> |
| 86 | + </div> |
| 87 | + </div> |
| 88 | + |
| 89 | + <!-- 快速开始:第一视觉,4 张卡片 --> |
| 90 | + <h2 class="va-section-title">🚀 快速开始</h2> |
| 91 | + <div class="va-quick-grid"> |
| 92 | + <a href="../_generated/sources/vllm-ascend/installation.html" class="va-quick-card"> |
| 93 | + <div style="font-size: 2rem;">📦</div> |
| 94 | + <h4>安装指南</h4> |
| 95 | + <p>环境准备与安装步骤</p> |
| 96 | + </a> |
| 97 | + <a href="../_generated/sources/vllm-ascend/quick_start.html" class="va-quick-card"> |
| 98 | + <div style="font-size: 2rem;">🚀</div> |
| 99 | + <h4>快速上手</h4> |
| 100 | + <p>5 分钟跑通推理任务</p> |
| 101 | + </a> |
| 102 | + <a href="../_generated/sources/vllm-ascend/user_guide/feature_guide/index.html" class="va-quick-card"> |
| 103 | + <div style="font-size: 2rem;">📖</div> |
| 104 | + <h4>用户指南</h4> |
| 105 | + <p>特性配置与部署方案</p> |
| 106 | + </a> |
| 107 | + <a href="../_generated/sources/vllm-ascend/developer_guide/contribution/index.html" class="va-quick-card"> |
| 108 | + <div style="font-size: 2rem;">👨💻</div> |
| 109 | + <h4>开发者指南</h4> |
| 110 | + <p>贡献代码与特性开发</p> |
| 111 | + </a> |
| 112 | + </div> |
| 113 | + |
| 114 | + <!-- 核心特性:标签式一行展示 --> |
| 115 | + <div class="va-features-wrapper"> |
| 116 | + <h2 style="text-align:center; color:var(--va-primary); margin: 0 0 5px 0; border:none !important;">✨ 核心特性</h2> |
| 117 | + <div class="va-feature-tags"> |
| 118 | + <span class="va-feature-tag">🔌 硬件插件化架构</span> |
| 119 | + <span class="va-feature-tag">⚡ 高性能推理加速</span> |
| 120 | + <span class="va-feature-tag">🧩 丰富模型支持</span> |
| 121 | + <span class="va-feature-tag">🌐 分布式推理</span> |
| 122 | + <span class="va-feature-tag">🔧 完整工具链</span> |
| 123 | + <span class="va-feature-tag">🤝 社区共建</span> |
| 124 | + </div> |
| 125 | + </div> |
| 126 | + |
| 127 | + </div> |
| 128 | + |
| 129 | +---- |
| 130 | + |
| 131 | +.. 以下 toctree 直接引用 upstream submodule 的子目录 index 文件(如 tutorials/models/index), |
| 132 | +.. 无需额外的 nav RST 包装文件。路径从 sources/vllm-ascend/ 出发, |
| 133 | +.. 通过 ../_generated/sources/vllm-ascend/ 指向 make copy-docs 生成的内容。 |
| 134 | +.. Makefile 仅删除 upstream 根目录 index(避免与本文件冲突),子目录 index 完整保留。 |
| 135 | +
|
| 136 | +.. toctree:: |
| 137 | + :maxdepth: 2 |
| 138 | + :hidden: |
| 139 | + :caption: Getting Started |
| 140 | + |
| 141 | + ../_generated/sources/vllm-ascend/quick_start |
| 142 | + ../_generated/sources/vllm-ascend/installation |
| 143 | + ../_generated/sources/vllm-ascend/tutorials/models/index |
| 144 | + ../_generated/sources/vllm-ascend/tutorials/features/index |
| 145 | + ../_generated/sources/vllm-ascend/tutorials/hardwares/index |
| 146 | + ../_generated/sources/vllm-ascend/faqs |
| 147 | + |
| 148 | +.. toctree:: |
| 149 | + :maxdepth: 2 |
| 150 | + :hidden: |
| 151 | + :caption: User Guide |
| 152 | + |
| 153 | + ../_generated/sources/vllm-ascend/user_guide/support_matrix/index |
| 154 | + ../_generated/sources/vllm-ascend/user_guide/configuration/index |
| 155 | + ../_generated/sources/vllm-ascend/user_guide/feature_guide/index |
| 156 | + ../_generated/sources/vllm-ascend/user_guide/deployment_guide/index |
| 157 | + ../_generated/sources/vllm-ascend/user_guide/release_notes |
| 158 | + |
| 159 | +.. toctree:: |
| 160 | + :maxdepth: 2 |
| 161 | + :hidden: |
| 162 | + :caption: Developer Guide |
| 163 | + |
| 164 | + ../_generated/sources/vllm-ascend/developer_guide/contribution/index |
| 165 | + ../_generated/sources/vllm-ascend/developer_guide/feature_guide/index |
| 166 | + ../_generated/sources/vllm-ascend/developer_guide/evaluation/index |
| 167 | + ../_generated/sources/vllm-ascend/developer_guide/performance_and_debug/index |
| 168 | + |
| 169 | +.. toctree:: |
| 170 | + :maxdepth: 1 |
| 171 | + :hidden: |
| 172 | + :caption: Community |
| 173 | + |
| 174 | + ../_generated/sources/vllm-ascend/community/governance |
| 175 | + ../_generated/sources/vllm-ascend/community/contributors |
| 176 | + ../_generated/sources/vllm-ascend/community/versioning_policy |
| 177 | + ../_generated/sources/vllm-ascend/community/user_stories/index |
0 commit comments