Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/taga3s/speedymd

A CLI tool for setting up Markdown speedily. :rocket:
https://github.com/taga3s/speedymd

cli markdown prompt rust

Last synced: 2 days ago
JSON representation

A CLI tool for setting up Markdown speedily. :rocket:

Awesome Lists containing this project

README

        

# speedymd

A CLI tool for setting up Markdown speedily. 🚀

## Install

- cargo
```bash
$ cargo install speedymd
```

> [!WARNING]
> This crate is unstable. Any breaking changes may happen near future.

## How to use?

Just run

```bash
$ speedymd
```

When you use this cli, you need to put the `speedymd.config.json` on the current directory.

Now, it supports

1. Generating `.md (.mdx)` file.
2. Customizing `Frontmatter` as you like.

## Config file `speedymd.config.json`

See example config file [here](https://github.com/taga3s/speedymd/blob/main/speedymd.config.json).

| key | description | required or not |
|-------------|-------------------------------------------|-----------------|
| ext | file extension, supporting `.md` or `.mdx`| required |
| outputPath | which path markdown would be outputted | required |
| frontmatter | frontmatter values | not |

- Specify frontmatter values

| key | description | required or not | example |
|-------------|----------------------------------------------------------------------------------|-----------------|----------------------------------|
| name | | required | title |
| type | supporting `text`, `boolean`, `select`, `multiselect` and `object` | required | text |
| question | | not | Please enter `title` |
| placeholder | | not | any title |
| options | when you specify `select` or `multiselect` to type, you need to specify this key | not | ["JavaScript", "Python", "Rust"] |
| properties | when you specify `object` to type, you need to specify this key | not | please see the example |
| required | | not | true |

## License

MIT