Skip to content

Commit c801221

Browse files
authored
Redesign homepage around research use (#5)
1 parent 3f3d4dd commit c801221

10 files changed

Lines changed: 6971 additions & 5214 deletions

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,19 @@ make check
2626
```bash
2727
bun run start
2828
```
29+
30+
## Refresh public research data
31+
32+
The site checks in snapshots of papers citing TorchGeo and public repositories
33+
that depend on it. Refresh both before a data update:
34+
35+
```bash
36+
S2_API_TOKEN=... python3 scripts/fetch_citations.py
37+
python3 scripts/fetch_dependents.py
38+
```
39+
40+
The citation collector combines Semantic Scholar and OpenAlex, then reuses
41+
existing affiliation enrichment for unchanged records. The dependents collector
42+
requires an authenticated GitHub CLI (`gh auth status`). Both commands write to
43+
`public/data/`; review the diffs before publishing because live indexes can add
44+
or remove records.

app/code-tabs.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,8 @@ const SAMPLES: Sample[] = [
141141
title: "Building-footprint segmentation on Inria.",
142142
desc: (
143143
<>
144-
Pixel-wise binary segmentation on 0.3 m aerial imagery. A U-Net with a
145-
SeCo-pretrained ResNet-50 encoder reaches strong IoU in fewer than 30
144+
Pixel-wise binary segmentation on 0.3 m aerial imagery. This example
145+
optimizes a U-Net with a SeCo-pretrained ResNet-50 encoder for 30
146146
epochs.
147147
</>
148148
),
@@ -642,7 +642,7 @@ export function CodeTabs() {
642642
{active.file}
643643
<span className="ext">.py</span>
644644
</span>
645-
<span className="code-card__pill">runs as-is</span>
645+
<span className="code-card__pill">complete example</span>
646646
</div>
647647
<div className="code-card__body">
648648
<CodeBody code={active.code} />

app/layout.tsx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
import type { Metadata, Viewport } from "next";
2-
import { Inter_Tight, JetBrains_Mono } from "next/font/google";
2+
import { JetBrains_Mono, Source_Serif_4 } from "next/font/google";
33
import "./globals.css";
4+
import "./research.css";
45

56
const SITE_URL = "https://torchgeo.org";
67
const SITE_TITLE = "TorchGeo · Geospatial deep learning for PyTorch";
78
const SITE_DESCRIPTION =
89
"TorchGeo is a PyTorch domain library for satellite and aerial imagery — datasets, samplers, transforms, and pretrained models for geospatial machine learning.";
910

10-
const interTight = Inter_Tight({
11+
const sourceSerif = Source_Serif_4({
1112
subsets: ["latin"],
1213
variable: "--font-body",
1314
weight: ["400", "500", "600", "700"],
@@ -38,7 +39,9 @@ export const metadata: Metadata = {
3839
"Sentinel-2",
3940
"multispectral",
4041
],
41-
authors: [{ name: "The TorchGeo Authors", url: "https://github.com/torchgeo" }],
42+
authors: [
43+
{ name: "The TorchGeo Authors", url: "https://github.com/torchgeo" },
44+
],
4245
creator: "The TorchGeo Authors",
4346
publisher: "The TorchGeo Organization",
4447
alternates: {
@@ -138,7 +141,7 @@ export default function RootLayout({
138141
}>) {
139142
return (
140143
<html lang="en">
141-
<body className={`${interTight.variable} ${jetbrainsMono.variable}`}>
144+
<body className={`${sourceSerif.variable} ${jetbrainsMono.variable}`}>
142145
{children}
143146
<script
144147
type="application/ld+json"

0 commit comments

Comments
 (0)