|
1 | | - |
| 1 | +--- |
| 2 | +sidebar_position: 5 |
| 3 | +--- |
2 | 4 |
|
3 | 5 | # Generate Context on Multiple Files |
4 | 6 |
|
5 | 7 | ## Step 1: Open the Dev-Docs Extension |
6 | | - |
7 | 8 |
|
8 | 9 | Open the Dev-Docs extension in your IDE. You should see options like "Sign Out", "Generate Context", "Create Custom Doc", etc. on the left side. |
9 | 10 |
|
10 | 11 | ## Step 2: Navigate to the Index File |
11 | | - |
12 | 12 |
|
13 | 13 | Navigate to the main index.js file of your project. This file typically contains the core functionality and imports. |
14 | 14 |
|
| 15 | + |
| 16 | + |
| 17 | + |
15 | 18 | ## Step 3: Access the "Generate Context" Feature |
16 | | - |
17 | 19 |
|
18 | 20 | Click on the "Generate Context" button in the Dev-Docs panel. This will open up the context generation interface. |
19 | 21 |
|
| 22 | + |
| 23 | + |
20 | 24 | ## Step 4: Select Multiple Files |
21 | | - |
22 | 25 |
|
23 | 26 | In the "Generate a new document for your repo" section, select multiple files to use as context. In this example, "/index.js", "/package.json", "/test.js", and "/tests/removeB" are selected. |
24 | 27 |
|
| 28 | + |
| 29 | + |
25 | 30 | ## Step 5: Choose Context Creation Location |
26 | | - |
27 | 31 |
|
28 | 32 | Decide where the context should be created. You have options like "codebase" or "user-facing docs". Select the appropriate option for your needs. |
29 | 33 |
|
| 34 | + |
| 35 | + |
| 36 | + |
| 37 | + |
30 | 38 | ## Step 6: Generate the New Document |
31 | | - |
32 | 39 |
|
33 | 40 | Click the "Generate New Doc" button to create the context document based on the selected files. |
34 | 41 |
|
| 42 | + |
| 43 | + |
| 44 | + |
35 | 45 | ## Step 7: View Generated Context |
36 | | - |
37 | 46 |
|
38 | 47 | The generated context document will open, showing a summary of the selected files. In this example, it displays information about the package.json configuration file, including project metadata, scripts, and dependencies. |
39 | 48 |
|
40 | | - |
| 49 | + |
0 commit comments