No description
Find a file
2022-10-06 23:07:26 +02:00
src Make a lil post on mattermost when we find a new valid report 2022-10-06 23:07:26 +02:00
.gitignore Add new python code with mattermost scraping stuff 2022-10-06 22:44:08 +02:00
.tool-versions Add new python code with mattermost scraping stuff 2022-10-06 22:44:08 +02:00
Makefile Add new python code with mattermost scraping stuff 2022-10-06 22:44:08 +02:00
README.md Update README.md 2022-04-18 21:19:21 +00:00
requirements.txt Add new python code with mattermost scraping stuff 2022-10-06 22:44:08 +02:00

A 'simple' collection of bash scripts that syncs CodiMD files with a certain metadata block to Gitlab

You need to put the following block somewhere in you CodiMD file.

:::spoiler Gitlab sync
- sync-to: path/in/the/drive
:::

Setup

Install the glab tool using a package manager of your choice.

Set environment variable in your shell profile:

export GITLAB_HOST=https://git.zeus.gent
export GITLAB_TOKEN_NAME=the-token-name-in-gitlab
export GITLAB_TOKEN=********

export CMD_SERVER_URL=https://codimd.zeus.gent
export CMD_EMAIL=codimd.zeus.gent@mcbloch.dev
export CMD_PASSWORD=*******

TODO

  • Add a way to discover new markdown files.
    • Scraping Mattermost
    • ? Providing an api endpoint to post an url to ?

Used tech

References