You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit fcf186d
Browse filesBrowse the repository at this point in the historyBrowse files
Map: cities as circles, a box below the map, black to green countries; make messages in Docker
The map of the page Countries draws 1 px white lines around each country;
countries without contributors are black, with contributors dark to light
green (logarithmic), with a legend. Cities of contributors are green circles
with a white border whose area grows with their contributors; they can be
pointed at. A box of a fixed size below the map names the country pointed
at, the city below it, the country chosen, or how to use the map. The border
of the country pointed at is three times as wide.
A click on a country chose nothing in real browsers: the captured pointer
is released on the whole map. The country is now taken when it is pressed;
a browser test points at and clicks the map.
make messages runs in a container of python:3.13-slim when GNU gettext is
not installed, as dashboard.pycal.org does; the catalogs are made with
gettext again.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: docs/explanation/countries.rst
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,11 +31,11 @@ The map
31
31
32
32
The map is drawn from the countries of `Natural Earth <https://www.naturalearthdata.com/>`_ (public domain, scale 1:50 million), in the Equal Earth projection, which keeps the areas of the countries: a big country is not drawn bigger than it is. Antarctica is left out. ``make world-map`` makes the map again (``scripts/world_map.py``).
33
33
34
-
- **Colours.** Gray is a country without contributors. The five greens go from few to the most contributors, on a logarithmic scale: with 100 contributors from one country and 1 from another, the shades are 1, 2 to 3 for 10, and 5 for 100, so one big country does not leave all others in the lightest shade.
35
-
- **Tool tip.** Pointing at a country shows *3 contributors from Germany*, or that nobody is from there.
34
+
- **Colours.** Black is a country without contributors. With contributors, a country is green: dark green for one contributor, light green for the country with the most, and in between on a logarithmic scale. With 100 contributors from one country, a country with 10 is halfway, so one big country does not leave all others nearly as dark as one contributor. White lines of 1 pixel separate the countries at every zoom.
35
+
- **The box below the map.** It always has the same size and place. Pointing at a country shows *3 contributors from Germany*, or that nobody is from there; pointing at a city shows the city below its country, such as *Berlin: 2 contributors*. Without anything pointed at, it shows the country chosen, and without that how to use the map. The border of the country pointed at is three times as wide.
36
36
- **Small countries.** Luxembourg, Malta or Singapore are a few pixels or less. A country smaller than about 12 square pixels at the current zoom is small: it gets a dot at its centre, and the pointer chooses it within 10 pixels of that centre, also on top of a bigger neighbour. Zoomed in, it becomes big enough to point at itself.
37
-
- **Clicks.** A click on a country opens ``#country=XX`` with its code, which shows the country below the map: its contributors and their locations, the first and the last contribution from there, and its official languages. The address can be shared.
38
-
- **Places.** Contributors with a clear city or place are red dots, one per place, with how many contributors are there. They cannot be clicked.
37
+
- **Clicks.** A click on a country or a city opens ``#country=XX`` with the code of the country, which shows the country below the map: its contributors and their locations, the first and the last contribution from there, and its official languages. The country is outlined, and the box keeps its text. The address can be shared.
38
+
- **Cities.** Contributors with a clear city or place are a green circle with a white border, one per place. Its area grows in proportion to the contributors there: the radius grows with the square root of their number, 3 pixels for one, 6 for four, at every zoom. Only the cities of contributors are on the map. Pointing at a city shows it in the box; a click chooses its country.
39
39
- **Zoom.** The mouse wheel or a pinch zooms, dragging moves the map, and the buttons zoom in, out, and back to the whole world.
Copy file name to clipboardExpand all lines: docs/how-to/translate.rst
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ The details of the errors, the names of the variables of queries, the charts and
16
16
Change or add a text
17
17
====================
18
18
19
-
1. Install `GNU gettext <https://www.gnu.org/software/gettext/>`_, for example ``sudo apt install gettext``.
19
+
1. Install `GNU gettext <https://www.gnu.org/software/gettext/>`_, for example ``sudo apt install gettext``. Without it, ``make messages`` runs in Docker: a container of ``python:3.13-slim`` installs gettext and the dependencies. Its virtual environment and the cache of uv are kept in ``.cache/`` of the project, so the next run is fast and the disk of Docker stays small.
20
20
2. Mark the new text in the template, the Python code or the JavaScript as above.
0 commit comments