Template to write Anki markdown decks
Template to use markdown as markup language for Anki decks
- Uses: md2apkg
Usage
- Choose: Use this template
- Run
npm i
Generate decks
Example
- This template has 2 examples to generate decks for learning the capitals of europe and south america. You can take this as examples.
Run npm run gen-europe
and npm run gen-south-america
to generate each deck.
Add your own decks
- Add your own decks in the
./decks/
folder. - Customize the
npm
commands in thepackage.json
- This template comes with a CI/CD pipeline to automatically generate the decks. Change the values there. Otherwise, they will just fail.
CI/CD
This template comes with 2 Pipelines:
- A code quality pipeline which check the code for format and linting compliance. You can run the check locally with:
npm run prettier
to check for formatting ornpm run lint
to check your linting withmarkdownlint
- A deck generation pipeline which automatically generates the Anki
.apkg
file. With this in place, you can directly download the deck and import it to Anki.
NOTE: You will need to customize the .github/workflows/gen-decks.yml
pipeline when you add your custom decks,
remove the current, or want to have your decks generated.