mark/README.md

42 lines
1.5 KiB
Markdown
Raw Normal View History

2015-09-20 00:34:52 +06:00
# Mark
2015-09-20 00:58:49 +06:00
Mark it's tool for syncing your markdown documentation with Atlassian
Confluence pages.
2015-09-20 00:34:52 +06:00
This is very usable if you store documentation to your orthodox software in git
repository and don't want to do a handjob with updating Confluence page using
fucking tinymce wysiwyg enterprise core editor.
You can store a user credentials in the configuration file, which should be
2015-09-20 00:58:49 +06:00
located in `~/.config/mark` with following format:
2015-09-20 00:34:52 +06:00
```
username = "smith"
password = "matrixishere"
```
Mark can read Confluence page URL and markdown file path from another specified
2015-09-20 00:58:49 +06:00
configuration file, which you can specify using `-c <file>` flag. It is very
2015-09-20 00:34:52 +06:00
usable for git hooks. That file should have following format:
```toml
url = "http://confluence.local/pages/viewpage.action?pageId=123456"
file = "docs/README.md"
```
## Usage:
```
2015-09-20 00:58:49 +06:00
mark [--dry-run] [-u <username>] [-p <password>] -l <url> -f <file>
mark [--dry-run] [-u <username>] [-p <password>] -c <file>
2015-09-20 00:34:52 +06:00
mark -v | --version
mark -h | --help
```
- `-u <username>` - Use specified username for updating Confluence page.
- `-p <password>` - Use specified password for updating Confluence page.
- `-l <url>` - Edit specified Confluence page.
- `-f <file>` - Use specified markdown file for converting to html.
2015-09-20 00:58:49 +06:00
- `-c <file>` - Specify configuration file which should be used for reading
Confluence page URL and markdown file path.
- `--dry-run` - Show resulting HTML and don't update Confluence page content.
2015-09-20 00:34:52 +06:00
- `-v | --version` - Show version.
- `-h | --help` - Show help screen and call 911.