From b63efb52f1bf973658b4152321fbf35b6859afdf Mon Sep 17 00:00:00 2001 From: Will White <13312237+Willdotwhite@users.noreply.github.com> Date: Mon, 23 Mar 2026 07:36:04 +0000 Subject: [PATCH] Create file for gamedev sites --- .github/tasks/shuffle-webring-list.py | 11 +++++------ gamedev.json | 8 ++++++++ 2 files changed, 13 insertions(+), 6 deletions(-) create mode 100644 gamedev.json diff --git a/.github/tasks/shuffle-webring-list.py b/.github/tasks/shuffle-webring-list.py index 6d48bc1..174eb98 100644 --- a/.github/tasks/shuffle-webring-list.py +++ b/.github/tasks/shuffle-webring-list.py @@ -3,12 +3,8 @@ import random from datetime import datetime -# The GitHub Action runner runs from the root of the checked-out project, -# so we don't need to wrangle file paths for this file -data_file_path = f"data.json" - -def shuffle_data_array(): +def shuffle_data_array(data_file_path): # Generate a seed that will order list deterministically seed: str = datetime.today().strftime('%Y%m%d') with open(data_file_path, 'r+') as file: @@ -25,4 +21,7 @@ def shuffle_data_array(): if __name__ == "__main__": - shuffle_data_array() + # The GitHub Action runner runs from the root of the checked-out project, + # so we don't need to wrangle file paths for these files + shuffle_data_array("data.json") + shuffle_data_array("gamedev.json") diff --git a/gamedev.json b/gamedev.json new file mode 100644 index 0000000..f71231e --- /dev/null +++ b/gamedev.json @@ -0,0 +1,8 @@ +[ + { + "name": "Dotwo", + "description": "An odd mix", + "url": "https://dotwo.games", + "itch": "https://dotwogames.itch.io" + } +]