You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(documentation)📝: Add guided tutorial for llamabot docs write command
- Create a new documentation file for the LlamaBot CLI.
- Include usage instructions and options for `llamabot docs write`.
- Provide information on the `--force` flag usage.
- Explain requirements for target documentation file formatting and placement.
- Detail necessary frontmatter key-value pairs for the command.
- Provide reader with a guided tutorial that shows how to use the `llamabot docs write`
4
+
command at the terminal to generate documentation.
5
+
- Specifically add in information about the `--force` flag.
6
+
- Describe the frontmatter key-value pairs needed to make it work.
7
+
linked_files:
8
+
- llamabot/cli/docs.py
9
+
- pyproject.toml
10
+
---
11
+
12
+
# LlamaBot Documentation
13
+
14
+
## Installation
15
+
16
+
To install LlamaBot, follow these steps:
17
+
18
+
1. Ensure you have Python 3.10 or higher installed on your system.
19
+
2. Install LlamaBot using pip:
20
+
21
+
```bash
22
+
pip install llamabot
23
+
```
24
+
25
+
3. Verify the installation by running:
26
+
27
+
```bash
28
+
llamabot --help
29
+
```
30
+
31
+
## Usage
32
+
33
+
To use LlamaBot to generate documentation, run the following command in the terminal:
34
+
35
+
```bash
36
+
llamabot docs write <path_to_markdown_file>
37
+
```
38
+
39
+
### Options
40
+
41
+
-`--force`: Use this flag to force the documentation update even if it is not detected as out of date.
42
+
43
+
## Additional Information
44
+
45
+
For more information, refer to the [official documentation](https://llamabotdocs.com).
46
+
47
+
## Explanation
48
+
49
+
To make the `llamabot docs write` command work, ensure that your Markdown source files are properly formatted and located in the correct directory. The command will read the source files, check if the documentation is up-to-date, and update it if necessary. If you use the `--force` flag, the documentation will be updated regardless of its current status.
50
+
51
+
### Requirements for Target Documentation File
52
+
53
+
1.**Proper Formatting**: Ensure your Markdown files are correctly formatted.
54
+
2.**Correct Directory**: Place your Markdown files in the appropriate directory as expected by the `llamabot docs write` command.
55
+
3.**Linked Files**: If your documentation references other files, ensure these are correctly linked and accessible.
56
+
57
+
### Frontmatter Key-Value Pairs
58
+
59
+
To use the `llamabot docs write` command effectively, your Markdown files should include the following frontmatter:
60
+
61
+
```markdown
62
+
---
63
+
intents:
64
+
- Point 1 that the documentation should cover.
65
+
- Point 2 that the documentation should cover.
66
+
- ...
67
+
linked_files:
68
+
- path/to/relevant_file1.py
69
+
- path/to/relevant_file2.toml
70
+
- ...
71
+
---
72
+
```
73
+
74
+
By following these guidelines, you can effectively use LlamaBot to manage and update your documentation.
0 commit comments