https://github.com/keenlychuang/mdx-to-docs
Lightweight Python script to convert directory of mdx files to pdf or docx
https://github.com/keenlychuang/mdx-to-docs
content-processing document-conversion docx file-conversion markdown mdx pdf-generation python-scripts
Last synced: 3 months ago
JSON representation
Lightweight Python script to convert directory of mdx files to pdf or docx
- Host: GitHub
- URL: https://github.com/keenlychuang/mdx-to-docs
- Owner: keenlychuang
- License: mit
- Created: 2025-03-15T18:37:41.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2025-03-15T18:48:47.000Z (3 months ago)
- Last Synced: 2025-03-15T19:32:22.772Z (3 months ago)
- Topics: content-processing, document-conversion, docx, file-conversion, markdown, mdx, pdf-generation, python-scripts
- Language: Python
- Homepage:
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mdx-to-docs
Lightweight Python script to convert directory of mdx files to pdf or docx
## Install required dependencies
```bash
pip install -r requirements.txt
```## Usage
1. To convert a single MDX file to both formats (default):
```bash
python mdx_converter.py path/to/your-file.mdx output-directory/
```2. To convert a single MDX file to PDF only:
```bash
python mdx_converter.py path/to/your-file.mdx output-directory/ --format pdf
```3. To convert a single MDX file to DOCX only:
```bash
python mdx_converter.py path/to/your-file.mdx output-directory/ --format docx
```4. To convert all MDX files in a directory to a specific format:
```bash
python mdx_converter.py path/to/mdx-directory/ output-directory/ --format pdf
```