|
1 | 1 |
|
2 | | -a system to join docs into a single markdown file |
| 2 | +# Doc-Join |
| 3 | + |
| 4 | +A professional documentation aggregation tool that combines multiple documents into a single markdown file. |
| 5 | + |
| 6 | +## Overview |
| 7 | + |
| 8 | +Doc-Join streamlines the process of consolidating documentation by automatically merging multiple markdown files and directories into a cohesive single document. This tool is particularly useful for creating comprehensive documentation packages, reports, or consolidated references. |
| 9 | + |
| 10 | +## Prerequisites |
| 11 | + |
| 12 | +Doc-Join requires VibeScript as a runtime dependency. Please ensure you have `gcc` or `clang` installed on your system before proceeding. |
| 13 | + |
3 | 14 | ## Installation |
4 | | -- step 1 : Install vibescript |
5 | | -Install [vibescript](https://github.com/OUIsolutions/VibeScript) if you don't have it yet: |
6 | 15 |
|
7 | | -### Linux |
8 | | -Run the following command to install VibeScript on Linux: |
| 16 | +### Step 1: Install VibeScript |
| 17 | + |
| 18 | +Choose the appropriate installation method for your operating system: |
9 | 19 |
|
| 20 | +#### Option A: Pre-compiled Binary (Linux only) |
10 | 21 | ```bash |
11 | 22 | curl -L https://github.com/OUIsolutions/VibeScript/releases/download/0.32.0/vibescript.out -o vibescript.out && chmod +x vibescript.out && sudo mv vibescript.out /usr/local/bin/vibescript |
12 | 23 | ``` |
13 | 24 |
|
14 | | -### Linux and macOS |
15 | | -You need to have `gcc` or `clang` installed: |
16 | | - |
| 25 | +#### Option B: Compile from Source (Linux and macOS) |
17 | 26 | ```bash |
18 | 27 | curl -L https://github.com/OUIsolutions/VibeScript/releases/download/0.35.0/amalgamation.c -o vibescript.c && gcc vibescript.c -o vibescript.out && sudo mv vibescript.out /usr/local/bin/vibescript |
19 | 28 | ``` |
20 | | -- step 2 : Install doc_join |
| 29 | + |
| 30 | +### Step 2: Install Doc-Join |
21 | 31 | ```bash |
22 | | -vibescript add_script --file https://github.com/Igreja-ChimpStack/Doc-Join/releases/download/0.1.0/doc_join.lua doc_join |
| 32 | +vibescript add_script --file https://github.com/Igreja-ChimpStack/Doc-Join/releases/download/0.1.0/doc_join.lua doc_join |
23 | 33 | ``` |
24 | 34 |
|
| 35 | +## Usage |
25 | 36 |
|
| 37 | +### Basic Syntax |
| 38 | +```bash |
| 39 | +doc_join --entries <input_files_or_directories> --output <output_file> |
| 40 | +``` |
26 | 41 |
|
27 | | -## Usage |
| 42 | +### Example |
28 | 43 | ```bash |
29 | | - doc_join --entries docs README.md --output teste.md |
| 44 | +doc_join --entries docs README.md --output consolidated_documentation.md |
30 | 45 | ``` |
31 | 46 |
|
| 47 | +This command will process all files in the `docs` directory along with the `README.md` file, combining them into `consolidated_documentation.md`. |
| 48 | + |
| 49 | +## Parameters |
| 50 | + |
| 51 | +- `--entries`: Specify input files and/or directories to be processed |
| 52 | +- `--output`: Define the output filename for the consolidated markdown document |
| 53 | + |
| 54 | +## License |
| 55 | + |
| 56 | +This project is released into the public domain under the [Unlicense](LICENSE). You are free to use, modify, and distribute this software without any restrictions. |
| 57 | + |
| 58 | +## Contributing |
| 59 | + |
| 60 | +For contributions, bug reports, or feature requests, please visit the [project repository](https://github.com/Igreja-ChimpStack/Doc-Join). |
| 61 | + |
0 commit comments