md-design-doc
WIP
Getting Started
Prerequisites
- Rust toolchain (nightly and stable, default to nightly)
First, install Rust.
https://www.rust-lang.org/tools/install
# check Rust installation
Install nightly toolchain and set it to default.
- Rust components
- clippy (for nightly)
- rustfmt (for stable)
- LLVM (for Windows)
For Windows, install LLVM Pre-built binaries of Windows(32bit or 64bit).
Run locally
- clone this repo and cd
- execute command to convert your
.mdinto.xlsx
# your markdown file and rule file
# or example files
Fow now, the output file name is same as input file name .
Run test and check the code coverage
Test
Coverage report
If this is your first time, install required modules.
To generate the coverage report,
It will be created to report and you can see the whole coverage report by accessing report/index.html .
Examples
Parsing Rule
WIP
# TODO: general settings
# general:
# copyright: hogehoge
# prefix: IT
doc:
blocks:
- title: Block Title 1
content:
- column: No
isNum: true
- group: Variation
columns:
- column: Variation 1
md: Heading2
- column: Variation 2
md: Heading3
- column: Variation 3
md: Heading4
- column: Variation 4
md: Heading5
- column: Variation 5
md: Heading6
- column: Variation 6
md: Heading7
- column: Variation 7
md: Heading8
- column: Description
md: List
- column: Procedure
md: List
customPrefix: "+"
- column: Tester
md: List
# You can also use any alphabets as custom prefix.
customPrefix: "T"
- title: Block Title 2
content:
- column: No
isNum: true
- column: another block's column 1
md: Heading2
- column: another block's column 2
md: Heading3
Markdown Pattern
WIP
* +*+++*+
Contributing
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Change the code
- Format your code (
cargo +stable fmt) - Run lint tool (clippy) , if errors, fix them (
cargo clippy --features excel -Z unstable-options -- -D warnings) - Run test (
cargo test --features excel) - Commit your Changes (
git commit). Please follow Angular Commit Message Format for your commit message. - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request