Skip to content

Commit b2dc719

Browse files
committed
docs: add videos to doc
1 parent 9e4f0d6 commit b2dc719

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+159
-153
lines changed

.vscode/settings.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
"titleBar.activeForeground": "#F8FCFD"
4848
},
4949
"cSpell.words": [
50+
"autoplay",
5051
"Codegee",
5152
"Codeium",
5253
"commitlint",
@@ -72,8 +73,5 @@
7273
"vitepress",
7374
"vsix",
7475
"Zhipu"
75-
],
76-
"aide.convertLanguagePairs": {
77-
"typescript": "python"
78-
}
76+
]
7977
}

.vscodeignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ scripts
1313
.vscode-test/**
1414
.vscode-test-web/**
1515
out/**
16+
website/**

README.md

Lines changed: 8 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,17 @@ Mastering Any Code In VSCode: One-click commenting and language conversion. 💪
1616

1717
</div>
1818

19+
## Document 📚
20+
21+
- See: [https://aide.nicepkg.cn](https://aide.nicepkg.cn)
22+
23+
<img src="https://github.com/user-attachments/assets/9eafa68b-30ec-4ad6-96de-317231e604b1" alt="Aide Intro" width="100%" />
24+
1925
## Features ✨
2026

2127
- 🔄 **Code Conversion**: One-click code transformation between languages.
2228
- 📖 **Code Annotation**: One-click detailed comments for better readability.
23-
- 📋 **Quick Copy**: Copy files/folders as AI prompts instantly.
29+
- 📋 **Quick Copy**: Batch copy files/folders as AI prompts.
2430
- 💬 **Custom Commands**: Execute custom AI commands on selected files.
2531
- 🔀 **Variable Rename**: Rename variables using AI-suggested variable names.
2632
- 🎛 **Prompt Templates**: Define flexible AI prompt templates.
@@ -35,76 +41,13 @@ Mastering Any Code In VSCode: One-click commenting and language conversion. 💪
3541
3. Search for "[Aide](https://marketplace.visualstudio.com/items?itemName=nicepkg.aide-pro)"
3642
4. Click Install
3743

38-
## Configuration 🛠
39-
40-
See: [Document](https://github.com/nicepkg/aide/tree/master/docs/configuration/README.md)
41-
42-
## Usage 🚀
43-
44-
### 1. Aide: Code Convert
45-
46-
Convert selected code from one programming language to another using AI.
47-
48-
**How to Use:**
49-
50-
- Select code in the editor.
51-
- Click the paper-like icon in the top right corner or right-click and choose `✨ Aide: Code Convert`.
52-
53-
### 2. Aide: Code Viewer Helper
54-
55-
Add comments to the selected code to make it readable for beginners, using AI.
56-
57-
**How to Use:**
58-
59-
- Select code in the editor.
60-
- Click the book-like icon in the top right corner or right-click and choose `✨ Aide: Code Viewer Helper`.
61-
62-
### 3. Aide: Copy As AI Prompt
63-
64-
Copy selected files' contents into the clipboard, formatted as a prompt for AI interaction.
65-
66-
**How to Use:**
67-
68-
- Select files or folders in the Explorer.
69-
- Right-click and choose `✨ Aide: Copy As AI Prompt`.
70-
71-
### 4. Aide: Ask AI
72-
73-
Prepare and execute custom AI commands based on selected files and user input.
74-
75-
**How to Use:**
76-
77-
- Select files or folders in the Explorer.
78-
- Right-click and choose `✨ Aide: Ask AI`.
79-
- Enter your question when prompted.
80-
81-
### 5. Aide: Rename Variable
82-
83-
Rename variables using AI-suggested variable names.
84-
85-
**How to Use:**
86-
87-
- Select a variable in the editor.
88-
- Right-click and choose `✨ Aide: Rename Variable`.
89-
- Select a suggested variable name.
90-
91-
### 6. Customizing Keyboard Shortcuts
92-
93-
Assign custom keyboard shortcuts to these commands for faster access:
94-
95-
1. Open the Keyboard Shortcuts editor (`Ctrl+K Ctrl+S` or `Cmd+K Cmd+S`).
96-
2. Search for the desired Aide command.
97-
3. Click the plus icon next to the command and press your desired key combination.
98-
99-
Enhance your productivity with Aide's AI-powered features. Install now and experience a smarter way to code!
100-
10144
## ChangeLog 📅
10245

10346
See the [CHANGELOG](https://github.com/nicepkg/aide/blob/master/CHANGELOG.md) for the latest updates.
10447

10548
## Contributing 🤝
10649

107-
Contributions are welcome! Please feel free to submit a Pull Request. See the [contributing guide](https://github.com/nicepkg/aide/blob/master/CONTRIBUTING.md) for more details.
50+
Contributions are welcome! Please feel free to submit a Pull Request. See the [Contributing Guide](https://github.com/nicepkg/aide/blob/master/CONTRIBUTING.md) for more details.
10851

10952
This project exists thanks to all the people who contribute:
11053

README_CN.md

Lines changed: 11 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,21 @@
1414

1515
</div>
1616

17+
## 文档 📚
18+
19+
- 查看:[https://aide.nicepkg.cn](https://aide.nicepkg.cn)
20+
21+
<img src="https://github.com/user-attachments/assets/9eafa68b-30ec-4ad6-96de-317231e604b1" alt="Aide Intro" width="100%" />
22+
1723
## 功能 ✨
1824

1925
- 🔄 **代码转换**:一键代码语言转换。
2026
- 📖 **代码注释**:一键添加详细注释,提升可读性。
21-
- 📋 **快速复制**即时复制文件/文件夹为AI提示
22-
- 💬 **自定义命令**对选定文件执行自定义AI命令
23-
- 🔀 **变量重命名**使用AI给出的变量名建议重命名变量
24-
- 🎛 **提示模板**定义灵活的AI提示模板
25-
- 📁 **多文件支持**:选择多个文件/文件夹进行AI提示或命令
27+
- 📋 **快速复制**批量复制文件/文件夹为 AI 提示
28+
- 💬 **自定义命令**对选定文件执行自定义 AI 命令
29+
- 🔀 **变量重命名**使用 AI 给出的变量名建议重命名变量
30+
- 🎛 **提示模板**定义灵活的 AI 提示模板
31+
- 📁 **多文件支持**:选择多个文件/文件夹进行 AI 提示或命令
2632
- 🚫 **忽略模式**:使用自定义 glob 规则排除文件/文件夹。
2733
-**快捷键**:设置你偏好的功能快捷键。
2834

@@ -33,69 +39,6 @@
3339
3. 搜索 “[Aide](https://marketplace.visualstudio.com/items?itemName=nicepkg.aide-pro)
3440
4. 点击安装
3541

36-
## 配置 🛠
37-
38-
查看:[文档](https://github.com/nicepkg/aide/tree/master/docs/configuration/README_CN.md)
39-
40-
## 用法 🚀
41-
42-
### 1. Aide: 代码转换
43-
44-
使用 AI 将选定的代码从一种编程语言转换为另一种。
45-
46-
**使用方法:**
47-
48-
- 在编辑器中选择代码。
49-
- 点击右上角的纸张图标或右键选择 `✨ Aide: 代码转换`
50-
51-
### 2. Aide: 代码查看器助手
52-
53-
使用 AI 为选定的代码添加注释,使其易于初学者阅读。
54-
55-
**使用方法:**
56-
57-
- 在编辑器中选择代码。
58-
- 点击右上角的书本图标或右键选择 `✨ Aide: 代码查看器助手`
59-
60-
### 3. Aide: 复制为 AI Prompt
61-
62-
将选定文件的内容复制到剪贴板,并格式化为 AI 交互提示。
63-
64-
**使用方法:**
65-
66-
- 在资源管理器中选择文件或文件夹。
67-
- 右键选择 `✨ Aide: 复制为 AI Prompt`
68-
69-
### 4. Aide: 问 AI
70-
71-
基于选定的文件和用户输入准备并执行自定义 AI 命令。
72-
73-
**使用方法:**
74-
75-
- 在资源管理器中选择文件或文件夹。
76-
- 右键选择 `✨ Aide: 问 AI`
77-
- 按提示输入您的问题。
78-
79-
### 5. Aide: 重命名变量
80-
81-
使用 AI 给出几个可能的变量名建议以及解释,帮助您更快地重命名变量。
82-
83-
**使用方法:**
84-
85-
- 在编辑器中选择变量。
86-
- 点击右键选择 `✨ Aide: 重命名变量`
87-
- 选择一个建议的变量名。
88-
89-
### 6. 自定义键盘快捷键
90-
91-
为这些命令分配自定义键盘快捷键以更快地访问:
92-
93-
1. 打开键盘快捷键编辑器(`Ctrl+K Ctrl+S``Cmd+K Cmd+S`)。
94-
2. 搜索所需的 Aide 命令。
95-
3. 点击命令旁的加号图标并按下您想要的快捷键组合。
96-
97-
通过 Aide 的 AI 驱动功能提升您的工作效率。立即安装,体验更智能的编码方式!
98-
9942
## 更新日志 📅
10043

10144
查看最新的更新和功能:[更新日志](https://github.com/nicepkg/aide/blob/master/CHANGELOG.md)

package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,6 @@
5959
],
6060
"main": "./dist/node/index.js",
6161
"icon": "res/icon.png",
62-
"files": [
63-
"dist"
64-
],
6562
"engines": {
6663
"vscode": "^1.82.0"
6764
},

website/.vitepress/config/en.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type { DefaultTheme } from 'vitepress'
33
import { defineConfig } from 'vitepress'
44

55
const require = createRequire(import.meta.url)
6-
const pkg = require('../../package.json')
6+
const pkg = require('../../../package.json')
77

88
export const en = defineConfig({
99
lang: 'en-US',
@@ -27,7 +27,7 @@ function nav(): DefaultTheme.NavItem[] {
2727
return [
2828
{
2929
text: 'Guide',
30-
link: '/guide/index',
30+
link: '/guide/getting-started/',
3131
activeMatch: '/guide/'
3232
},
3333
{

website/.vitepress/config/zh.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type { DefaultTheme } from 'vitepress'
33
import { defineConfig } from 'vitepress'
44

55
const require = createRequire(import.meta.url)
6-
const pkg = require('../../package.json')
6+
const pkg = require('../../../package.json')
77

88
export const zh = defineConfig({
99
lang: 'zh-Hans',
@@ -48,7 +48,7 @@ function nav(): DefaultTheme.NavItem[] {
4848
return [
4949
{
5050
text: '指南',
51-
link: '/zh/guide/index',
51+
link: '/zh/guide/getting-started/',
5252
activeMatch: '/zh/guide/'
5353
},
5454
{

website/.vitepress/theme/index.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
import DefaultTheme from 'vitepress/theme'
22
import type { App } from 'vue'
33

4+
import Video from '../../components/Video.vue'
5+
46
import 'uno.css'
57
import './style.css'
68

79
export default {
810
extends: DefaultTheme,
9-
enhanceApp({ app }: { app: App }) {}
11+
enhanceApp({ app }: { app: App }) {
12+
app.component('Video', Video)
13+
}
1014
}

website/components/Video.vue

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
<template>
2+
<div class="video-container">
3+
<div class="video-bg"></div>
4+
<video ref="video" class="rounded-2xl overflow-hidden w-full h-auto max-h-90vh" autoplay muted playsinline loop
5+
@click="enableControls">
6+
<source :src="src" type="video/mp4">
7+
Your browser does not support the video tag.
8+
</video>
9+
</div>
10+
</template>
11+
12+
<script setup>
13+
import { ref } from 'vue';
14+
15+
const video = ref(null);
16+
const props = defineProps({
17+
src: {
18+
type: String,
19+
required: true
20+
}
21+
});
22+
23+
const enableControls = () => {
24+
if (video.value) {
25+
video.value.controls = true;
26+
}
27+
};
28+
</script>
29+
30+
<style scoped>
31+
.video-container {
32+
width: 100%;
33+
position: relative;
34+
padding: 0.5rem;
35+
overflow: hidden;
36+
border-radius: 1rem;
37+
}
38+
39+
.video-bg {
40+
position: absolute;
41+
top: 0;
42+
left: 0;
43+
width: 100%;
44+
height: 100%;
45+
margin: 2rem;
46+
z-index: -1;
47+
background-image: linear-gradient(-45deg, #8c6bef 50%, #ef7b95 50%);
48+
filter: blur(44px);
49+
}
50+
51+
@media (min-width: 640px) {
52+
.video-bg {
53+
filter: blur(56px);
54+
}
55+
}
56+
57+
@media (min-width: 960px) {
58+
.video-bg {
59+
filter: blur(68px);
60+
}
61+
}
62+
</style>

website/en/guide/configuration/openai-key.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,6 @@ This configuration allows you to customize the OpenAI API key. You can obtain yo
99
"aide.openaiKey": ""
1010
}
1111
```
12+
13+
<br/>
14+
<Video src="/videos/aide-customize-configuration.mp4"/>

0 commit comments

Comments
 (0)