| Crates.io | doc2quarto |
| lib.rs | doc2quarto |
| version | 0.1.2 |
| created_at | 2025-11-07 08:08:48.480421+00 |
| updated_at | 2025-11-17 05:08:44.473304+00 |
| description | CLI tool to conver Docusaurus markdown files to quarto format |
| homepage | https://github.com/rvbug/doc2quarto |
| repository | https://github.com/rvbug/doc2quarto |
| max_upload_size | |
| id | 1921307 |
| size | 74,141 |
A CLI tool to convert Docusaurus markdown files to Quarto format, preserving structure and transforming syntax for seamless migration.
doc2quarto automates the conversion of Docusaurus documentation to Quarto, handling:
sidebar_position → order):::note → Quarto callout blocks)As documentation needs evolve, Quarto offers:
Read more about the migration rationale in this blog post.
# requires rust
$> cargo install doc2quarto
$> brew install rvbug/tap/doc2quarto
Download the .deb package from releases:
# Download latest release
$> wget https://github.com/rvbug/doc2quarto/releases/download/v0.1.1/doc2quarto_0.1.1-1_amd64.deb
# Install
$> sudo dpkg -i doc2quarto_0.1.1-1_amd64.deb
Requires Rust to be installed.
$> git clone https://github.com/rvbug/doc2quarto.git
$> cd doc2quarto
$> cargo install --path .
# Build and install to ~/.cargo/bin
cargo install --path .
# Now you can run 'doc2quarto' from anywhere
doc2quarto --help
$> doc2quarto --help
$> brew upgrade doc2quarto
$> cargo install doc2quarto
$> cargo install doc2quarto
$> cargo uninstall doc2quarto
$> sudo apt remove doc2quarto
# Basic usage
doc2quarto --source ./docs --dest ./quarto-docs
# Using short flags
doc2quarto -s ./docs -d ./quarto-docs
| Flag | Short | Description | Required |
|---|---|---|---|
--source |
-s |
Source directory containing Docusaurus markdown files | Yes |
--dest |
-d |
Destination directory for Quarto files | Yes |
Docusaurus:
---
title: "Getting Started"
sidebar_position: 1
---
Quarto:
---
title: "Getting Started"
order: 1
---
Docusaurus:
:::note Important Information
This is a note with a custom title
:::
:::warning
Be careful with this operation
:::
Quarto:
:::: {.callout-note}
## Important Information
This is a note with a custom title
::::
:::: {.callout-warning}
Be careful with this operation
::::
| Docusaurus | Quarto |
|---|---|
note |
note |
tip |
tip |
info |
note |
caution |
caution |
warning |
warning |
danger |
important |
docs/
├── intro.md
├── guide/
│ ├── quickstart.md
│ └── img/
│ └── diagram.png
└── api/
└── reference.md
quarto-docs/
├── intro.qmd
├── guide/
│ ├── quickstart.qmd
│ └── img/
│ └── diagram.png
└── api/
└── reference.qmd
cargo test
cargo run -- --source ./test-docs --dest ./output
doc2quarto/
├── src/
│ └── main.rs # Main conversion logic
├── tests/
│ ├── integration_test.rs
│ └── fixtures/ # Test markdown files
├── Cargo.toml
└── README.md
Support for more frontmatter fields
MDX component detection and warnings
Dry-run mode
Configuration file support
Parallel processing for large documentation sets
Support for other OS
This project is licensed under the MIT License - see the LICENSE file for details.
Note: After migration, review the generated .qmd files and test rendering with Quarto before archiving your Docusaurus setup.