Metadata-Version: 2.1
Name: vdg
Version: 0.2.4
Summary: VCB-Studio Draft Generator 发布稿生成器
Author: diazchika
Author-email: halberd-civic.0c@icloud.com
Project-URL: github, https://github.com/diazchika/vdg
Classifier: Development Status :: 3 - Alpha
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
License-File: LICENSE

# VDG (VCB-S Draft Gen)

![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)
[![Deploy to PyPI](https://github.com/diazchika/vdg/actions/workflows/python-publish.yml/badge.svg)](https://github.com/diazchika/vdg/actions/workflows/python-publish.yml)

## Introduction

主要是使用 Jinja2 对 HTML 模版进行填充以达到生成发布稿的效果。只需要把发布信息填写在 YAML 文件里就可以轻松生成三分发布稿（并不是终稿）✌️。

[生成样品](https://github.com/diazchika/vdg/tree/main/test)

## Installation
`pip install vdg`

## Usage

### 生成新 YAML 文件

`vdg new --path <path>`

会在`<path>`路径下生成 `config.yaml`，里面很多发布信息要填...

`<path>` 默认为 `config.yaml`

YAML 里具体有什么看[这里](https://github.com/diazchika/vdg/blob/main/vdg/templates/yaml.template)。

### 生成发布稿件

`vdg gen --path <path-to-yaml>`

会读取`<path-to-yaml>`指定的 yaml 文件，并根据它生成发布稿。

`<path>` 默认为 `config.yaml`

### 其他

`vdg -h`

## 点评

diazchika: 总之就是一道大型填空题

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
