A worker that helps us archive discussion is recorded in HackMD periodically. The detailed working flow is as follows:
-
(Prerequisite) Define the storing directories mapping in
directory_hierarchy.yaml
for the documents according to the tags. -
Download all the documents from HackMD through HackMD API.
-
For each downloaded document, parse its tags and move it to the current directory following the definition in
directory_hierarchy.yaml
. -
After arranging the documents, push the documents to the new branch for archiving.
For running the app, you need to install the following dependencies by following command:
pipenv install -d
- Crawling all the notes
pipenv run sync_all_notes