Crates.io | octor |
lib.rs | octor |
version | 0.1.2 |
source | src |
created_at | 2024-03-18 15:12:07.785938 |
updated_at | 2024-03-18 15:24:17.681126 |
description | rmd combines all readmes into one |
homepage | |
repository | |
max_upload_size | |
id | 1177888 |
size | 186,038 |
Welcome to Octor, a versatile command-line tool designed for managing and transforming your markdown files with ease. Whether you're consolidating documentation, preparing content for web publishing, or simply organizing your markdown files, Markdown Merger is here to streamline the process. Built with simplicity and efficiency in mind, this tool supports merging multiple markdown files into a single document and converting markdown to HTML.
Merge Markdown Files: Combine multiple markdown documents into one, making it easier to manage and organize your documentation or notes. This feature is perfect for preparing comprehensive guides or consolidating notes.
Convert Markdown to HTML: Seamlessly convert your markdown files into HTML format, ready for web publishing or further processing into PDFs and other formats. Configuration Flexibility: Customize your merging process with a configuration file in TOML format. Exclude specific files, define merge order, and more, tailoring the output to your needs.
Command Line Simplicity: Everything is done through simple command-line instructions, giving you the power to automate and script processes as part of larger workflows.
First, ensure you have Rust installed on your system to use Octor. Then, follow these steps to get up and running:
cargo build --release
Running Markdown Merger: Navigate to the target directory where your markdown files are located and run the tool using the appropriate command for your task.
Merging Markdown Files To merge multiple markdown files into a single file, use the merge subcommand. Optionally, you can specify a custom output filename and a configuration file for advanced merging options.
octor merge --filename "output.md" --config_file "config.toml"
If no filename or configuration file is specified, defaults (output.md and octor.toml) are used.
Converting Markdown to HTML Convert a markdown file into HTML with the convert subcommand. Simply specify the markdown file you wish to convert.
octor convert --filename "your_file.md"
Verbose Output For detailed operation logs, especially useful for debugging or understanding the merge/conversion process, add the --verbose flag to any command.
octor merge --verbose
We welcome contributions! If you have suggestions for improvements, feel free to fork the repository and submit a pull request. For major changes, please open an issue first to discuss what you would like to change.
License This tool is open-sourced under the MIT License. See the LICENSE file for more details.
Enjoy using Octor for all your markdown processing needs!