Skip to content

Commit

Permalink
Merge pull request #644 from helitopia/interactive-map
Browse files Browse the repository at this point in the history
Interactive Map For Experimental Deck
  • Loading branch information
axelboc authored Aug 17, 2024
2 parents a5e5e56 + 0f09943 commit 84edac8
Show file tree
Hide file tree
Showing 15 changed files with 1,154 additions and 327 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/integrity-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,12 @@ jobs:
python3 -m pip install --upgrade pipenv
pipenv install
- name: Validate
- name: Validate regular & extended decks
run: |
pipenv run build
- name: Validate experimental deck
run: |
pipenv run build_experimental
# TODO: Validate the csv file structure
4 changes: 4 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,7 @@ The sources and licenses of the flags (`ug-flag-...`) and maps (`ug-map-...`) in
`sources.csv` references only the licenses of the files themselves. Some flags, like the [European Union flag](https://www.coe.int/en/web/about-us/the-european-flag#column-5), may come with additional copyright restrictions.

All images have been optimised, resized and/or converted to reduce file size. Any further modifications are listed in the _Modifications_ column.

## jsvectormap

[MIT License — Copyright (c) 2020 Mustafa Omar](https://github.com/themustafaomar/jsvectormap/blob/main/LICENSE)
1 change: 1 addition & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ python_version = "3.7"

[scripts]
build = "brain_brew run recipes/source_to_anki.yaml"
build_experimental = "brain_brew run recipes/source_to_anki_[experimental].yaml"
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ The deck is available in **English**, **German**, **Spanish**, **French**, **Nor

## Features

The standard version of the deck comes with four note templates: _Country - Capital_, _Capital - Country_, _Flag - Country_, and _Map - Country_. An **extended version** is also available, with two additional note templates: _Country - Flag_ and _Country - Map_.
The standard version of the deck comes with four note templates: _Country - Capital_, _Capital - Country_, _Flag - Country_, and _Map - Country_. An **extended version** is also available, with two additional note templates: _Country - Flag_ and _Country - Map_. The [experimental version](https://github.com/anki-geo/ultimate-geography/wiki/Experimental-extended-deck) is a clone of extended version except it also provides interactivity for the _Country - Map_ note template.

<table>
<tr><th scope="col" colspan="2">Flag - Country</th></tr>
Expand Down Expand Up @@ -103,9 +103,10 @@ In order to install and later upgrade _Ultimate Geography_, you'll need to first
You're now ready to install _Ultimate Geography_:

1. Go to the **[_Releases_ page](https://github.com/anki-geo/ultimate-geography/releases)**.
1. In the latest release's _Assets_ section, download the ZIP archive of the version of the deck you'd like to use. You can choose between [a standard and an extended version](#features) in a number of [languages](#ultimate-geography) -- for instance, if you're after the standard German deck, download `Ultimate_Geography_v[...]_DE.zip`.
1. In the latest release's _Assets_ section, download the ZIP archive of the version of the deck you'd like to use. You can choose between [a standard, extended and experimental version](#features) in a number of [languages](#ultimate-geography) -- for instance, if you're after the standard German deck, download `Ultimate_Geography_v[...]_DE.zip`.
1. Extract the content of the archive on your computer.
1. Open Anki and make sure your devices are all synchronised.
1. Create [a manual backup](https://docs.ankiweb.net/backups.html#creating) via _File -> Create Backup_ in case something goes wrong.
1. In the _File_ menu, select _CrowdAnki: Import from disk_.
1. Browse for and select the folder you extracted from the archive, which contains the deck's JSON file and `media` folder -- e.g. `Ultimate Geography [DE]`.
1. Don't change anything in the _CrowdAnki Import Settings_ dialog box that opens -- just press _OK_ to start the import. A dialog box should then confirm that the import was successful.
Expand Down
11 changes: 7 additions & 4 deletions recipes/source_to_anki.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,11 @@
name: Ultimate Geography [ZH]

- media_group_from_folder:
- part_id: all_media
source: src/media
- part_id: maps
source: src/media/maps
recursive: true
- part_id: flags
source: src/media/flags
recursive: true


Expand Down Expand Up @@ -361,7 +364,7 @@
<<: &default_crowd_anki_gen
headers: default header
media:
parts: [all_media]
parts: [maps, flags]
note_models:
parts:
- part_id: Ultimate Geography
Expand Down Expand Up @@ -443,7 +446,7 @@
<<: &extended_deck
headers: default header
media:
parts: [ all_media ]
parts: [ maps, flags ]
note_models:
parts:
- part_id: Ultimate Geography [Extended]
Expand Down
Loading

0 comments on commit 84edac8

Please sign in to comment.