Skip to content

Commit 2544e1f

Browse files
committed
feat: enhance documentation and AI features in index.html and zh/index.html
- Updated SEO meta tags to reflect new AI functionalities, including AI problem generation, chat hints, and solution generation. - Revised descriptions and keywords to emphasize the AI capabilities and Web IDE features. - Improved the content structure to highlight AI assistance in both English and Chinese versions. - Added a dedicated AI section to showcase the new features and their benefits for users. These changes improve the visibility and clarity of the application's capabilities, enhancing user engagement and understanding of the AI functionalities.
1 parent ca67ef8 commit 2544e1f

File tree

2 files changed

+59
-31
lines changed

2 files changed

+59
-31
lines changed

docs/index.html

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77

88
<!-- SEO Meta Tags -->
99
<title>Offline Code Practice - Free LeetCode-Style Algorithm Practice App | No Internet Required</title>
10-
<meta name="description" content="Practice coding algorithms 100% offline with our free desktop app. Supports JavaScript, TypeScript, and Python. Built-in problem library, AI problem generator, and VS Code-like editor. Available for Windows, macOS, and Linux.">
11-
<meta name="keywords" content="LeetCode, algorithm practice, coding interview, offline coding, JavaScript, TypeScript, Python, programming practice, data structures, coding problems, free, open source">
10+
<meta name="description" content="Practice coding algorithms 100% offline with a VS Code-like Web IDE. Includes AI problem generator, AI chat hints, and AI solution generation. Supports JavaScript, TypeScript, and Python. Available for Windows, macOS, and Linux. Free & open source.">
11+
<meta name="keywords" content="LeetCode, algorithm practice, coding interview, offline coding, AI coding assistant, AI solution, AI chat, AI problem generator, JavaScript, TypeScript, Python, programming practice, data structures, coding problems, free, open source">
1212
<meta name="author" content="zxypro1">
1313
<meta name="robots" content="index, follow">
1414
<link rel="canonical" href="https://zxypro1.github.io/OfflineCodePractice/">
@@ -19,14 +19,14 @@
1919
<meta property="og:type" content="website">
2020
<meta property="og:url" content="https://zxypro1.github.io/OfflineCodePractice/">
2121
<meta property="og:title" content="Offline Code Practice - Free Algorithm Practice App">
22-
<meta property="og:description" content="Practice coding algorithms 100% offline. Supports JavaScript, TypeScript, and Python. Free and open source.">
22+
<meta property="og:description" content="Practice algorithms offline with a Web IDE + AI assistant: AI problem generator, AI chat hints, and AI solution generation. Supports JavaScript/TypeScript/Python. Free & open source.">
2323
<meta property="og:image" content="https://raw.githubusercontent.com/zxypro1/OfflineCodePractice/main/public/icon.png">
2424

2525
<!-- Twitter -->
2626
<meta name="twitter:card" content="summary_large_image">
2727
<meta name="twitter:url" content="https://zxypro1.github.io/OfflineCodePractice/">
2828
<meta name="twitter:title" content="Offline Code Practice - Free Algorithm Practice App">
29-
<meta name="twitter:description" content="Practice coding algorithms 100% offline. Supports JavaScript, TypeScript, and Python. Free and open source.">
29+
<meta name="twitter:description" content="Practice algorithms offline with a Web IDE + AI assistant: AI problem generator, AI chat hints, and AI solution generation. Supports JavaScript/TypeScript/Python. Free & open source.">
3030
<meta name="twitter:image" content="https://raw.githubusercontent.com/zxypro1/OfflineCodePractice/main/public/icon.png">
3131

3232
<!-- Favicon -->
@@ -50,7 +50,7 @@
5050
"price": "0",
5151
"priceCurrency": "USD"
5252
},
53-
"description": "A standalone algorithm coding practice application that works 100% offline.",
53+
"description": "A standalone algorithm coding practice app that works 100% offline, with AI problem generator, AI chat assistant, and AI solution generation.",
5454
"downloadUrl": "https://github.com/zxypro1/OfflineCodePractice/releases",
5555
"softwareVersion": "0.1.7",
5656
"author": {
@@ -718,6 +718,7 @@
718718
<div class="nav-links">
719719
<a href="#features">Features</a>
720720
<a href="#languages">Languages</a>
721+
<a href="#ai">AI</a>
721722
<a href="#download">Download</a>
722723
<a href="./zh/" class="lang-btn" aria-label="Switch to Chinese">中文</a>
723724
<a href="https://github.com/zxypro1/OfflineCodePractice" target="_blank" rel="noopener" class="github-btn">
@@ -737,8 +738,8 @@
737738
<div class="badge">
738739
<span>v0.1.7 Released</span>
739740
</div>
740-
<h1>Practice Algorithms<br>Anywhere, Anytime</h1>
741-
<p>A 100% offline LeetCode-style coding practice app. No internet required. Supports JavaScript, TypeScript, and Python with WASM-powered browser execution.</p>
741+
<h1>Offline Practice<br>With AI Assistance</h1>
742+
<p>A 100% offline LeetCode-style coding practice app with a Web IDE. Use AI to generate problems, chat for hints, and generate complete solutions—then run tests locally. Supports JavaScript, TypeScript, and Python.</p>
742743
<div class="hero-buttons">
743744
<a href="#download" class="btn btn-primary">
744745
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="7 10 12 15 17 10"/><line x1="12" y1="15" x2="12" y2="3"/></svg>
@@ -778,8 +779,8 @@ <h3>VS Code Experience</h3>
778779
</article>
779780
<article class="feature-card fade-in">
780781
<div class="feature-icon">🤖</div>
781-
<h3>AI Problem Generator</h3>
782-
<p>Generate custom problems using AI. Supports DeepSeek, OpenAI, Claude, Qwen, and Ollama.</p>
782+
<h3>AI Assistant (3-in-1)</h3>
783+
<p>AI Problem Generator + AI Chat + AI Solution generation—configurable providers in Settings (DeepSeek/OpenAI/Claude/Qwen/Ollama).</p>
783784
</article>
784785
<article class="feature-card fade-in">
785786
<div class="feature-icon">📚</div>
@@ -891,12 +892,12 @@ <h3>Linux</h3>
891892
</section>
892893

893894
<!-- AI Section -->
894-
<section class="ai-section">
895+
<section class="ai-section" id="ai">
895896
<div class="container">
896897
<div class="ai-content">
897898
<div class="ai-text fade-in">
898-
<h2>AI-Powered Problem Generation</h2>
899-
<p>Describe what you want to practice in natural language, and AI will generate a complete problem with test cases and solutions. Works with multiple AI providers.</p>
899+
<h2>AI for the Whole Workflow</h2>
900+
<p>Generate new problems, ask for hints while you code, and generate full annotated solutions. All AI features share the same provider settings so you can switch models anytime.</p>
900901
<div class="ai-providers">
901902
<span class="provider-badge">🤖 DeepSeek</span>
902903
<span class="provider-badge">🧠 OpenAI</span>
@@ -907,17 +908,16 @@ <h2>AI-Powered Problem Generation</h2>
907908
</div>
908909
<div class="ai-visual fade-in">
909910
<div class="code-block">
910-
<p><span class="code-comment">// User prompt:</span></p>
911-
<p><span class="code-string">"Generate a dynamic programming problem about finding the longest increasing subsequence"</span></p>
911+
<p><span class="code-comment">// AI Chat:</span></p>
912+
<p><span class="code-string">"Give me a hint based on my current code..."</span></p>
912913
<br>
913-
<p><span class="code-comment">// AI generates:</span></p>
914-
<p><span class="code-keyword">const</span> <span class="code-function">problem</span> = {</p>
915-
<p>&nbsp;&nbsp;title: <span class="code-string">"Longest Increasing Subsequence"</span>,</p>
916-
<p>&nbsp;&nbsp;difficulty: <span class="code-string">"Medium"</span>,</p>
917-
<p>&nbsp;&nbsp;tags: [<span class="code-string">"dp"</span>, <span class="code-string">"array"</span>],</p>
918-
<p>&nbsp;&nbsp;tests: [<span class="code-comment">/* comprehensive test cases */</span>],</p>
919-
<p>&nbsp;&nbsp;solution: <span class="code-comment">/* working solution */</span></p>
920-
<p>};</p>
914+
<p><span class="code-comment">// AI Solution:</span></p>
915+
<p><span class="code-keyword">function</span> <span class="code-function">solution</span>(input) {</p>
916+
<p>&nbsp;&nbsp;<span class="code-comment">/* Solution 1: brute force (with notes) */</span></p>
917+
<p>&nbsp;&nbsp;<span class="code-comment">/* Solution 2: optimized (recommended) */</span></p>
918+
<p>&nbsp;&nbsp;<span class="code-comment">/* Complexity + explanation in comments */</span></p>
919+
<p>&nbsp;&nbsp;<span class="code-comment">/* ... */</span></p>
920+
<p>}</p>
921921
</div>
922922
</div>
923923
</div>

docs/zh/index.html

Lines changed: 37 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77

88
<!-- SEO Meta Tags -->
99
<title>Offline Code Practice - 离线算法刷题软件 | 无需联网的 LeetCode 风格练习工具</title>
10-
<meta name="description" content="一款 100% 离线可用的算法练习桌面应用:内置题库 + Web IDE(类 VS Code)+ 浏览器端 WASM 执行。支持 JavaScriptTypeScriptPythonWindows / macOS / Linux 全平台下载。">
11-
<meta name="keywords" content="离线刷题,算法练习,LeetCode,面试,数据结构,编程题,JavaScript,TypeScript,Python,桌面应用,开源,免费">
10+
<meta name="description" content="一款 100% 离线可用的算法刷题桌面应用:Web IDE(类 VS Code)+ WASM 本地运行 + AI 辅助(AI 生成题目 / AI 题解 / AI 对话提示)。支持 JavaScript / TypeScript / PythonWindows / macOS / Linux 全平台下载,免费开源">
11+
<meta name="keywords" content="离线刷题,算法练习,LeetCode,面试,AI题解,AI对话,AI生成题目,AI编程助手,数据结构,编程题,JavaScript,TypeScript,Python,桌面应用,开源,免费">
1212
<meta name="author" content="zxypro1">
1313
<meta name="robots" content="index, follow">
1414
<link rel="canonical" href="https://zxypro1.github.io/OfflineCodePractice/zh/">
@@ -19,14 +19,14 @@
1919
<meta property="og:type" content="website">
2020
<meta property="og:url" content="https://zxypro1.github.io/OfflineCodePractice/zh/">
2121
<meta property="og:title" content="Offline Code Practice - 离线算法刷题软件">
22-
<meta property="og:description" content="无需联网也能刷题:内置题库、Web IDEWASM 执行。支持 JS/TS/Python。免费开源。">
22+
<meta property="og:description" content="无需联网也能刷题:Web IDE + WASM 执行 + AI 辅助(AI 生成题目 / AI 题解 / AI 对话提示)。支持 JS/TS/Python。免费开源。">
2323
<meta property="og:image" content="https://raw.githubusercontent.com/zxypro1/OfflineCodePractice/main/public/icon.png">
2424

2525
<!-- Twitter -->
2626
<meta name="twitter:card" content="summary_large_image">
2727
<meta name="twitter:url" content="https://zxypro1.github.io/OfflineCodePractice/zh/">
2828
<meta name="twitter:title" content="Offline Code Practice - 离线算法刷题软件">
29-
<meta name="twitter:description" content="无需联网也能刷题:内置题库、Web IDEWASM 执行。支持 JS/TS/Python。免费开源。">
29+
<meta name="twitter:description" content="无需联网也能刷题:Web IDE + WASM 执行 + AI 辅助(AI 生成题目 / AI 题解 / AI 对话提示)。支持 JS/TS/Python。免费开源。">
3030
<meta name="twitter:image" content="https://raw.githubusercontent.com/zxypro1/OfflineCodePractice/main/public/icon.png">
3131

3232
<!-- Favicon -->
@@ -47,7 +47,7 @@
4747
"applicationCategory": "DeveloperApplication",
4848
"inLanguage": "zh-CN",
4949
"offers": { "@type": "Offer", "price": "0", "priceCurrency": "USD" },
50-
"description": "一款 100% 离线可用的算法刷题桌面应用,支持 JavaScript/TypeScript/Python。",
50+
"description": "一款 100% 离线可用的算法刷题桌面应用,支持 JavaScript/TypeScript/Python,并提供 AI 生成题目、AI 题解、AI 对话提示。",
5151
"downloadUrl": "https://github.com/zxypro1/OfflineCodePractice/releases",
5252
"softwareVersion": "0.1.7",
5353
"author": { "@type": "Person", "name": "zxypro1" }
@@ -69,6 +69,7 @@
6969
<div class="nav-links">
7070
<a href="#features">功能亮点</a>
7171
<a href="#languages">支持语言</a>
72+
<a href="#ai">AI 功能</a>
7273
<a href="#download">下载</a>
7374
<a href="../" class="lang-btn" aria-label="Switch to English">English</a>
7475
<a href="https://github.com/zxypro1/OfflineCodePractice" target="_blank" rel="noopener" class="github-btn">
@@ -88,8 +89,8 @@
8889
<div class="badge">
8990
<span>v0.1.7 已发布</span>
9091
</div>
91-
<h1>离线刷题<br>随时随地</h1>
92-
<p>一款 100% 离线可用的 LeetCode 风格算法练习应用,无需联网。支持 JavaScriptTypeScript、Python,并通过 WASM 在浏览器端直接运行测试</p>
92+
<h1>离线刷题<br>AI 随行</h1>
93+
<p>一款 100% 离线可用的 LeetCode 风格算法练习应用:Web IDE + WASM 本地执行。做题时可直接 AI 对话获取提示、一键生成带注释的 AI 题解,还能用 AI 生成新题。支持 JavaScript / TypeScript / Python</p>
9394
<div class="hero-buttons">
9495
<a href="#download" class="btn btn-primary">
9596
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="7 10 12 15 17 10"/><line x1="12" y1="15" x2="12" y2="3"/></svg>
@@ -129,8 +130,8 @@ <h3>类 VS Code 编辑器</h3>
129130
</article>
130131
<article class="feature-card fade-in">
131132
<div class="feature-icon">🤖</div>
132-
<h3>AI 辅助(可选</h3>
133-
<p>支持 AI 生成题目AI 题解、AI 对话(多供应商可配置)。</p>
133+
<h3>AI 辅助(3 合 1</h3>
134+
<p>AI 生成题目 + AI 对话提示 + AI 题解(带注释多解法)。支持多供应商统一在设置页配置(DeepSeek/OpenAI/Claude/Qwen/Ollama)。</p>
134135
</article>
135136
<article class="feature-card fade-in">
136137
<div class="feature-icon">📚</div>
@@ -146,6 +147,33 @@ <h3>跨平台</h3>
146147
</div>
147148
</section>
148149

150+
<!-- AI Section -->
151+
<section class="features" id="ai">
152+
<div class="container">
153+
<div class="section-title fade-in">
154+
<h2>AI 功能:从出题到题解</h2>
155+
<p>三大 AI 功能共用同一套供应商配置,可随时切换模型</p>
156+
</div>
157+
<div class="features-grid">
158+
<article class="feature-card fade-in">
159+
<div class="feature-icon">🧩</div>
160+
<h3>AI 生成题目</h3>
161+
<p>用自然语言描述练习目标,自动生成题目、示例与测试用例,直接加入本地题库。</p>
162+
</article>
163+
<article class="feature-card fade-in">
164+
<div class="feature-icon">💬</div>
165+
<h3>AI 对话</h3>
166+
<p>右下角对话框随时提问:提示、思路、复杂度分析、调试建议。上下文包含题目与当前代码。</p>
167+
</article>
168+
<article class="feature-card fade-in">
169+
<div class="feature-icon">🪄</div>
170+
<h3>AI 题解</h3>
171+
<p>一键生成带中文注释的完整题解:同一份代码中包含多种解法(暴力/优化/最优)并附复杂度说明。</p>
172+
</article>
173+
</div>
174+
</div>
175+
</section>
176+
149177
<!-- Languages Section -->
150178
<section class="languages" id="languages">
151179
<div class="container">

0 commit comments

Comments
 (0)