2021-04-17 00:16:31 +00:00
|
|
|
# yaclog-ksp
|
2021-04-17 04:08:54 +00:00
|
|
|
|
2021-05-07 22:48:07 +00:00
|
|
|
[![PyPI version](https://badge.fury.io/py/yaclog-ksp.svg)](https://badge.fury.io/py/yaclog-ksp)
|
|
|
|
|
2021-05-06 21:55:18 +00:00
|
|
|
A command line tool based on [yaclog] for converting markdown changelogs to [KerbalChangelog] config files.
|
|
|
|
|
|
|
|
![a yak who is a log](https://github.com/drewcassidy/yaclog/raw/main/logo.png)
|
|
|
|
|
|
|
|
*Logo by Erin Cassidy*
|
2021-04-17 04:08:54 +00:00
|
|
|
|
|
|
|
## Installation
|
|
|
|
|
2021-04-17 05:24:44 +00:00
|
|
|
run `pip install yaclog-ksp`
|
2021-04-17 04:08:54 +00:00
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
```
|
|
|
|
Usage: yaclog-ksp [OPTIONS]
|
|
|
|
|
|
|
|
Converts markdown changelogs to KSP changelog configs.
|
|
|
|
|
|
|
|
Options:
|
2021-05-07 22:54:20 +00:00
|
|
|
--path FILE Location of the changelog file. [default: CHANGELOG.md]
|
2021-04-17 04:08:54 +00:00
|
|
|
-o, --output FILE Output file to write to. Uses
|
|
|
|
'GameData/{name}/Versioning/{name}ChangeLog.cfg' by
|
|
|
|
default.
|
|
|
|
|
|
|
|
-n, --name TEXT The name of the mod. Derived from the current directory
|
|
|
|
by default.
|
|
|
|
|
|
|
|
--version Show the version and exit.
|
|
|
|
--help Show this message and exit.
|
|
|
|
```
|
|
|
|
|
2021-05-07 22:54:20 +00:00
|
|
|
for example, running `yaclog-ksp --path MyLog.md -n "My KSP Mod"`
|
2021-04-17 04:08:54 +00:00
|
|
|
would output to `GameData/MyKSPMod/Versioning/MyKSPModChangeLog.cfg`
|
|
|
|
|
|
|
|
Input files are in markdown, and use a certain syntax to be readable by the tool. Metadata is included in a table at the
|
|
|
|
top of the file (which row you make the header doesnt matter). Each version is an subheading with the version, an
|
2021-04-17 04:10:07 +00:00
|
|
|
optional date, and the KSP version as a tag on the end in brackets
|
2021-04-17 04:08:54 +00:00
|
|
|
|
|
|
|
#### Example Changelog:
|
|
|
|
|
|
|
|
```markdown
|
|
|
|
# Changelog
|
|
|
|
|
|
|
|
This is the changelog for my cool mod!
|
|
|
|
|
|
|
|
| modName | MyCoolMod |
|
|
|
|
| ------- | ------------- |
|
|
|
|
| license | CC-By-SA |
|
|
|
|
| website | Example.com |
|
|
|
|
| author | A cool person |
|
|
|
|
|
|
|
|
## 1.0.0 - 2020-04-16 [KSP 1.11]
|
|
|
|
|
|
|
|
First full release
|
|
|
|
|
|
|
|
### Fixed
|
|
|
|
|
|
|
|
- Nyan Cat now has correct music
|
|
|
|
|
|
|
|
### Added
|
|
|
|
|
|
|
|
- Multiplayer
|
|
|
|
|
|
|
|
## 0.9.1 [KSP 1.10.1]
|
|
|
|
|
|
|
|
Supported versions: 0.2.0 beta to 1.10.x
|
|
|
|
|
|
|
|
### Changed
|
|
|
|
|
|
|
|
A very complicated thing that I can't easily explain in bullet points,
|
|
|
|
but this paragraph works pretty well to get the point across!
|
|
|
|
|
|
|
|
- Another thing that has multiple specific items
|
|
|
|
- this bullet point
|
|
|
|
* and this other one
|
|
|
|
+ oh and another one!
|
|
|
|
|
|
|
|
### Removed
|
|
|
|
|
|
|
|
- Herobrine
|
|
|
|
|
|
|
|
```
|
|
|
|
|
2021-05-06 21:55:18 +00:00
|
|
|
[yaclog]: https://github.com/drewcassidy/yaclog
|
2021-04-17 04:08:54 +00:00
|
|
|
[KerbalChangelog]: https://github.com/HebaruSan/KerbalChangelog
|