Synchronize Markdown documents to services.
Supported services are:
$ npm install -g marksync
Create environment configuration file (.marksync) in top of documents directory structure.
# Qiita
SERVICE=qiita
QIITA_USERNAME=
QIITA_ACCESS_TOKEN=
# S3 uploader
#UPLOADER=s3
#S3_BUCKET_NAME=
#S3_PREFIX=
#S3_BASE_URL=
#AWS_PROFILE=
#AWS_ACCESS_KEY_ID=
#AWS_SECRET_ACCESS_KEY=
# esa
SERVICE=esa
ESA_TEAM=
ESA_USERNAME=
ESA_ACCESS_TOKEN=
To import all documents from the service, run
$ marksync import -o <output>
Create a directory and document file (index.md) inside it, and run
$ marksync new
This will create the meta file (marksync.xxxx.yaml).
To check if there are differences between the local file and document on the service, run
$ marksync status
To print differences between the local file and document on the service, run
$ marksync diff
$ marksync update
This will update the document on the service by the local file.