zenn2press
zenn2press is a Rust library to convert Zenn contents to VitePress.
Features
copy_markdown_files()
Copy Markdown files from a source directory to a destination directory with options to include or exclude specific files.
copy_images()
Copy image files from a source directory to a destination directory, also with options to include or exclude specific files.
Installation
Add zenn2press to your Cargo.toml:
[]
= "0.1.0"
Usage
CLI
Here is an example of how to use zenn2press with cli:
Parameters
| Argument | Short | Long | Value Name | Description |
|---|---|---|---|---|
src_dir |
-s |
--src-dir |
DIR |
Path of the root directory of Zenn content. |
dest_dir |
-d |
--dest-dir |
DIR |
The VitePress directory path (e.g. docs/entries) where you want to place the markdown for the articles. |
dest_images_dir |
-m |
--dest-images-dir |
DIR |
The VitePress directory path (e.g. public) where the image will be placed. |
config_file |
-c |
--config-file |
FILE |
Configuration file path. |
include |
-i |
--include |
<FILE> |
File names to include, separated by commas. |
exclude |
-e |
--exclude |
<FILE> |
File names to exclude, separated by commas. |
Package
Here is an example of how to use zenn2press in your project:
use ;
async
Config file (Optional)
zenn2press-config.json
License
This project is licensed under the MIT License - see the LICENSE file for details.