Skip to content
Snippets Groups Projects
user avatar
Philipp Stadler authored
f79fe343
History
user avatar f79fe343

Brand spanking new Anki Pack

Hi, do you want to build a new Anki pack? You can start with this repository!

If you want to learn, not create new content, see the user guide in English or German.

First-time setup for a new project

Create a new project in the Anki Packs namespace and choose Repository by URL with this repo:

https://gitlab.phaidra.org/kartenaale/templates/anki-pack.git

This step will also clone this README. You can change it later to remove this section and tell your users something about your pack instead.

Next, enable Gitlab CI for your project. With this feature, your new content will produce Anki packages on Merge Requests and on the main branch. To enable, open Settings in the new Gitlab project and expand Visibility, project features, permissions. CI/CD under Repository should be enabled. Customize Merge Requests and other settings to your liking ( Pipelines must succeed is highly recommended).

Everything below this point is not starter-project-specific, you may want to keep it

Importing the pack to your phone or PC

Open Deployments | Releases on the left, then click Browse all APKGS… on the newest release. There, click an APKG, download it, and import into Anki.

If you are completely new to Anki and feel a bit lost, check out the user guide in English or German.

Contributing

To add new content to this pack, either add .apkg files in the root next to content to include them unchanged, OR add subfolders to content/ with data in the form of CSV, images or APKGs and an .apkg-spec.yaml file that configures which HTML to use for the cards and how your data is laid out.

You can use the content in the starter template as your basis or just have a look to see how it works:

To get your changes back into the repository and test them, create a new branch with your changes and open a merge request. Check the APKGs in the CI/CD build job on the MR and if you are happy, merge to main.

Releasing a new version

Bump the version number in package.json in your merge request.

When your changes land on the main branch, a new release will be created in the releases section of the project and the kartenaale whatsapp group will be notified (if you go to the CI/CD job and link with your Whatsapp to send out the notification - restart the job if necessary).