circuitpython-org/_blinka
Jeff Epler 4715875cc4 Fix board dates to always be of the form YYYY-MM-DD
.. leading zeros are required for `frontmatter` to treat them as dates
rather than strings, apparently per the YAML specification.

This was done by script:
```py
import re
import datetime
import pathlib
import sys

import frontmatter

rx = re.compile(r'^(\s*)date_added:.*$', re.M)

for path_str in sys.argv[1:]:
    print(path_str)
    path = pathlib.Path(path_str)

    post = frontmatter.load(path)
    date_added = post.get("date_added", "")

    if isinstance(date_added, datetime.date):
        continue

    if isinstance(date_added, str):
        try:
            date_added = datetime.datetime.strptime(date_added, "%Y-%m-%d")
        except ValueError as exc:
            print(f"Failed to parse date {date_added} in {path_str}: {exc}")
            continue

    date_added = date_added.date()
    content = path.read_text("utf-8")
    new_content = rx.sub(lambda m: f"{m.group(1)}date_added: {date_added}", content)
    assert content != new_content

    path.write_text(new_content, "utf-8")
```
2024-03-22 11:31:45 -05:00
..
adafruit_feather_rp2040.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
adafruit_feather_rp2040_can.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
adafruit_feather_rp2040_rfm.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
adafruit_feather_rp2040_rfm69.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
adafruit_feather_rp2040_thinkink.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
adafruit_itsybitsy_rp2040.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
adafruit_kb2040.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
adafruit_macropad_rp2040.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
adafruit_qt2040_trinkey.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
adafruit_qtpy_rp2040.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
avnet_iiot_gateway.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
banana_pi_bpi_m2_plus.md Add Blinka boards 2023-12-08 11:21:51 -08:00
banana_pi_bpi_m2_zero.md Add Blinka boards 2023-12-08 11:21:51 -08:00
banana_pi_bpi_m5.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
beaglebone.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
beaglebone_ai.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
beaglebone_black.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
beaglebone_black_industrial.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
beaglebone_black_wireless.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
beaglebone_blue.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
beaglebone_green_gateway.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
beaglebone_green_wireless.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
beaglev_starlight.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
binho_nova.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
clara_agx_xavier.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
clockworkpi.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
diodes_delight_piunora.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
dragonboard_410c.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
ft232h.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
giant_board.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
google_coral.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
google_coral_mini.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
greatfet_one.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
hifive_unleashed.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
jetson_agx_orin.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
jetson_nano.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
jetson_orin_nano.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
jetson_orin_nx.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
jetson_tx1.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
jetson_tx2.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
jetson_tx2_nx.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
jetson_xavier.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
jetson_xavier_nx.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
khadas_vim3.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
lemaker_banana_pro.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
libre_aml-s905x-cc.md Add Blinka boards 2023-12-08 11:21:51 -08:00
libre_roc-rk3328-cc.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
lichee_pi_4a.md added Lichee Pi 4A 2024-01-24 01:45:36 +00:00
lichee_rv_dock_d1.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
lubancat-4.md Add Blinka boards 2023-12-08 11:21:51 -08:00
lubancat1.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
lubancat1n.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
lubancat2.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
lubancat2n.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
lubancat_i.mx6ull.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
lubancat_zero_n.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
lubancat_zero_w.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
mcp2221.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
milkv_duo.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
nanopi_duo2.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
nanopi_neo_air.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
nanopi_neo_h3.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
octavo_osd32mp1_brk.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
octavo_osd32mp1_red.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
odroid_c2.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
odroid_c4.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
odroid_m1.md Add Blinka boards 2023-12-08 11:21:51 -08:00
odroid_m1s.md Add Blinka boards 2023-12-08 11:21:51 -08:00
odroid_n2.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
odroid_xu4.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
odroid_xu4q.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
odyssey_x86j4105.md Add Blinka boards 2023-12-08 11:21:51 -08:00
olimex_a20_lime2.md Add new Blinka boards 2023-12-11 16:33:51 -08:00
onion_omega2plus.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
orange_pi_2.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
orange_pi_3.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
orange_pi_4.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
orange_pi_4_lts.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
orange_pi_5.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
orange_pi_5_plus.md Add new Blinka boards 2023-12-11 16:33:51 -08:00
orange_pi_lite.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
orange_pi_one.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
orange_pi_pc.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
orange_pi_pc_plus.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
orange_pi_plus_2e.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
orange_pi_r1.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
orange_pi_zero.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
orange_pi_zero2.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
orange_pi_zero_plus.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
orange_pi_zero_plus2_h5.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
pcduino2.md Add Blinka boards 2023-12-08 11:21:51 -08:00
pcduino3.md Add Blinka boards 2023-12-08 11:21:51 -08:00
pine64.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
pine_h64.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
pocketbeagle.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
pyboard_v11.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
radxa_cm3_io_board.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
radxa_rock_3a.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
radxa_rock_3c.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
radxa_rock_4se.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
radxa_rock_5b.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
radxa_zero.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
raspberry_pi_1a.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
raspberry_pi_1aplus.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
raspberry_pi_1b.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
raspberry_pi_1bplus.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
raspberry_pi_2b.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
raspberry_pi_3aplus.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
raspberry_pi_3b.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
raspberry_pi_3bplus.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
raspberry_pi_4b.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
raspberry_pi_5.md Add Blinka boards 2023-12-08 11:21:51 -08:00
raspberry_pi_400.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
raspberry_pi_cm1.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
raspberry_pi_cm3.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
raspberry_pi_cm3lite.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
raspberry_pi_cm3plus.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
raspberry_pi_cm3pluslite.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
raspberry_pi_cm4io.md Add Blinka boards 2023-12-08 11:21:51 -08:00
raspberry_pi_pico.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
raspberry_pi_zero.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
raspberry_pi_zero_2_w.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
raspberry_pi_zerow.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
rock_pi_4c.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
rock_pi_4c_plus.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
rock_pi_e.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
rock_pi_s.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
siemens_simatic_iot2050.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
siemens_simatic_iot2050_advance.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
sopine_a64.md Add Blinka boards 2023-12-08 11:21:51 -08:00
stm32mp157c_dk2.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00
udoo_x86_ii_ultra.md Fix board dates to always be of the form YYYY-MM-DD 2024-03-22 11:31:45 -05:00