bingluen / CodiMD2Git

Export notes as git repos from self-hosting CodiMD

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CodiMD2Git

Export notes as git repositories from self-hosting CodiMD

Usage

Install dependency

pipenv install

Modify email_mapping.json

{
    "[User Email]": "User Name"
}

Exporting

python main.py [-h] [--db_type DB_TYPE] [--host HOST] [--prefix PREFIX] [--local_image_upload LOCAL_IMAGE_UPLOAD]
               database username password path
positional arguments:
  database              name of database.
  username              username to connection
  password              password to connection
  path                  path to saving exported notes

optional arguments:
  -h, --help            show this help message and exit
  --db_type DB_TYPE     database driver. default is postgres
  --host HOST           database host. default is localhost
  --prefix PREFIX       prefix of table name. default is ''
  --local_image_upload LOCAL_IMAGE_UPLOAD
                        path which saving upload image

LICENSE

MPL-2.0

About

Export notes as git repos from self-hosting CodiMD

License:Mozilla Public License 2.0


Languages

Language:Python 100.0%