htmlroc/README.md

39 lines
1.0 KiB
Markdown
Raw Permalink Normal View History

2019-06-13 22:15:31 +00:00
# htmlroc
2019-06-14 09:37:08 +00:00
Converts MLP:CCG rule files from text to HTML!
2019-06-13 22:15:31 +00:00
## Installation
2019-06-14 09:37:08 +00:00
### Requirements
- Go 1.12+
- The text rules from Hithroc's site:
https://horse.cards/rules/latest.txt
2019-06-14 13:21:11 +00:00
- Node.js **(optional)**
2019-06-14 09:37:08 +00:00
### Running htmlroc
2019-06-13 22:15:31 +00:00
1. Clone project locally and `cd` to it
2019-06-14 09:37:08 +00:00
2. Place the text rules inside the project's folder as `rules.txt`
2019-06-13 22:15:31 +00:00
3. Run this command:
```
go run .
```
Alternately, you can compile with `go install` and use the command line flags to specify location of `rules.txt` and `template.html`
2019-06-14 13:21:11 +00:00
### Rebuilding static assets
If you have node.js installed, you can also modify the static assets and rebuild them. Source files are in `static-src`. To rebuild, run either `npm i` or `yarn install` depending on your package manager of choice and then:
```
yarn build
```
This will build the CSS/JS files needed for the provided template.
2019-06-13 22:15:31 +00:00
## Thanks to
2019-09-03 09:00:54 +00:00
- [Hithroc](https://hithroc.org/) for maintaining text versions of the rules
- [CommentaryIsMagic](http://www.commentaryismagic.com/) for maintaining the official rules