Crates.io | mdxtree |
lib.rs | mdxtree |
version | 0.1.2 |
source | src |
created_at | 2024-08-26 13:16:18.288555 |
updated_at | 2024-08-26 14:23:21.347119 |
description | A tool to generate file tree structure in MDX format for Astro's Starlight components |
homepage | |
repository | https://github.com/mayneyao/mdxtree |
max_upload_size | |
id | 1352207 |
size | 18,538 |
A Rust command-line tool that generates a file tree structure in MDX format for use with Astro's Starlight components.
https://starlight.astro.build/guides/components/#file-tree
Install from crates.io:
cargo install mdxtree
mdxtree [OPTIONS] [PATH]
Arguments:
- `PATH`: Path to generate file tree from (default: current directory)
Options:
- `-o, --output <FILE>`: Output file path (default: stdout)
- `-i, --include-import`: Include import statement for FileTree component
- `-h, --help`: Print help information
- `-V, --version`: Print version information
Generate a file tree for the current directory and output to stdout:
mdxtree .
<FileTree>
- Cargo.toml
- Cargo.lock
- readme.md
- .gitignore
- src/
- main.rs
</FileTree>