Convert a git repository with folders and files into a CSV file that can be imported into Anki
- Docker & Docker-Compose Community-Edition (CE) is fine
OR
make start
OR
cp ./config/parameters.yml.dist ./config/parameters.yml
composer install
With Docker how i can run something from the Console ?
docker-compose run --rm tools bin/console
How to "convert" the repository to a CSV file ?
bin/console export 'urltomyrepo.git'
You have to create files with the "card" extension.
The files can be in subfolder, as many as you want. The folder's name will be added to the tag list of the card.
Exemple:
/tag1/tag2/mycard.card
The card will have the tag1 and tag2.
Card content example:
tags: some,tags,list,comma,separated
-----
My question or some text ?
On many lines.
-----
The response.
Can be on many line too.
The file will be generated in the export /export
by default.
The format is : "question","content","tags"
In Anki, select the menu "File > Import". Select the generated CSV. Click on "deck" then create a new deck or select the deck that you want to be updated by the CSV. Leave the default options:
- type: basic
- field separator: semicolon
- allow HTML: not checked
- field 1: front
- field 2: back
- field 3: tags Then click on "import"
DONE
- Florian Belhomme a.k.a Solune
- The Community Contributors
Contributions to the repository are always welcome! Feedback is great.
Feel free to fork the project and make a PR.
If you are having problems, fill an issue.
This bundle is licensed under the MIT License