Skip to content

Commit e27a7d3

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent d77f9db commit e27a7d3

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ pre:
3232
install:
3333
pnpm install
3434
pnpm update_data
35-
pnpm generate_content
35+
pnpm generate_content
3636

3737
dev:
3838
pnpm dev

scripts/download-data.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424

2525
def download_data(url: str) -> dict[str, Any]:
26-
#TODO: fix SSL cert and force verification
26+
#TODO: fix SSL cert and force verification
2727
with httpx.Client(verify=False) as client:
2828
response = client.get(url)
2929
response.raise_for_status()
@@ -35,7 +35,7 @@ def download_data(url: str) -> dict[str, Any]:
3535
def save_json_data(filename, data, directory="src/data"):
3636
os.makedirs(directory, exist_ok=True) # Ensure the directory exists
3737
file_path = os.path.join(directory, f"{filename}.json")
38-
38+
3939
with open(file_path, "w", encoding="utf-8") as file:
4040
json.dump(data, file, indent=4, ensure_ascii=False)
4141

scripts/generate_content.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,16 @@ def write_mdx(data: dict[str, Any], output_dir: pathlib.Path, content_key: str)
3737

3838
def load_json_data(filename, directory="src/data"):
3939
file_path = os.path.join(directory, f"{filename}.json")
40-
40+
4141
if not os.path.exists(file_path):
4242
raise FileNotFoundError(f"File {filename}.json not found in {directory}")
4343

4444
print(f"Load {filename}.json from {directory}")
4545
with open(file_path, "r", encoding="utf-8") as file:
4646
return json.load(file)
47-
47+
4848
def generate_content() -> None:
49-
speakers = load_json_data("speakers")
49+
speakers = load_json_data("speakers")
5050
sessions = load_json_data("sessions")
5151
schedule = load_json_data("schedule")
5252

src/pages/speaker/index.astro

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ const letters = [
1919
];
2020
---
2121
<Layout title="" description="">
22-
<main id="main-content" class="layout-wrapper overflow-x-clip">
23-
<div class="px-6">
22+
<main id="main-content" class="layout-wrapper overflow-x-clip">
23+
<div class="px-6">
2424
<div class="mb-4 prose prose-xl prose-li:m-0 prose-ul:m-0 prose-ul:mb-4 prose-a:underline prose-h1:text-text prose-headings:font-title prose-headings:text-text prose-a:text-text hover:prose-a:text-primary-hover prose-strong:text-text prose-strong:font-bold prose-li:marker:text-text">
2525

2626
<h1>Speakers</h1>
2727

28-
<div class="flex text-3xl font-bold flex-wrap mb-6">
28+
<div class="flex text-3xl font-bold flex-wrap mb-6">
2929
{letters.map(letter => (
3030
<a class="mx-1" href={`#letter-${letter}`}>{letter}</a>
3131
))}

0 commit comments

Comments
 (0)