Skip to content

Commit f7a8173

Browse files
committed
Migrate to Source Cooperative latest release for public website.
1 parent 163e5f1 commit f7a8173

3 files changed

Lines changed: 13 additions & 75 deletions

File tree

.claude/skills/update-site/SKILL.md

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@ Cooperative version folder.
2323
- `CONFLATED_PMTILES_URL``https://data.source.coop/henryspatialanalysis/openpois/<YYYY-MM-DD-vN>/conflated-pmtiles/conflated.pmtiles`
2424
- `OVERTURE_PMTILES_URL` → bump on monthly Overture release
2525

26-
3. **Update hardcoded links in [site/public/about.html](../../../site/public/about.html)** — the data-access section embeds both a `source.coop` browse link and a `data.source.coop` path; both must match the new version folder.
27-
28-
4. **Local preview**:
26+
3. **Local preview**:
2927
```bash
3028
cd site && npm run dev
3129
```
@@ -35,25 +33,24 @@ Cooperative version folder.
3533
- Taxonomy legend renders from `taxonomy.html`
3634
- POI popups show non-empty name/category/confidence
3735

38-
5. **Production build**:
36+
4. **Production build**:
3937
```bash
4038
npm run build
4139
```
4240
Inspect `dist/` output; flag large chunk-size increases if dependencies changed.
4341

44-
6. **Deploy** — per host's deployment mechanism (not scripted in-repo).
42+
5. **Deploy** — per host's deployment mechanism (not scripted in-repo).
4543

46-
7. **Post-deploy check** — load the deployed site, open browser console, confirm no CORS or 404s on the new Source Coop URLs.
44+
6. **Post-deploy check** — load the deployed site, open browser console, confirm no CORS or 404s on the new Source Coop URLs.
4745

4846
## Commit convention
4947

5048
Two separate commits, matching the recent history:
5149
- "Push to new data version" — `config.yaml` and publish-side changes
52-
- "Update to latest data version" — `site/src/constants.js` + `site/public/about.html`
50+
- "Update to latest data version" — `site/src/constants.js`
5351

5452
## Key files
5553

5654
- [site/src/constants.js](../../../site/src/constants.js) — PMTiles URLs, color ramps, zoom thresholds, CONFLATED_LABELS
57-
- [site/public/about.html](../../../site/public/about.html) — hardcoded data-access links
5855
- [site/vite.config.js](../../../site/vite.config.js) — code-split chunks (ol, duckdb, arrow, etc.)
59-
- [site/README.md](../../../site/README.md) — maintenance notes on the two sync points
56+
- [site/README.md](../../../site/README.md) — maintenance notes on the PMTiles URLs

site/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ is gitignored. Use the `sync-taxonomy` skill (or run `build_taxonomy.py`
1515
followed by `check_taxonomy_sync.py`) whenever the CSVs change. Only the
1616
display-label maps in `src/constants.js` are hand-maintained.
1717

18-
### S3 snapshot URLs
18+
### PMTiles URLs
1919

20-
When a new snapshot is uploaded to S3, update the date strings in two places:
20+
Public data is hosted on Source Cooperative. When a new version is
21+
published, bump the URLs in `src/constants.js`:
2122

22-
- `src/constants.js``OSM_S3_BASE` and `CONFLATED_S3_BASE`
23-
- `public/about.html` — hardcoded S3 paths and browse links in the data
24-
access section
23+
- `OSM_PMTILES_URL` and `CONFLATED_PMTILES_URL` — version folder matches
24+
`versions.source_coop` in `config.yaml`
25+
- `OVERTURE_PMTILES_URL` — bump on each monthly Overture release
2526

26-
OSM and conflated snapshots may have different dates, so update each URL
27-
individually.
27+
Each URL is independent; OSM and conflated versions may differ.

site/public/about.html

Lines changed: 0 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -209,46 +209,6 @@
209209
border: 1px solid rgba(0, 0, 0, 0.1);
210210
}
211211

212-
/* S3 data blocks */
213-
.s3-block {
214-
background: #fff;
215-
border: 1px solid #e5e7eb;
216-
border-radius: 6px;
217-
padding: 12px 16px;
218-
margin-bottom: 10px;
219-
}
220-
221-
.s3-block-header {
222-
display: flex;
223-
justify-content: space-between;
224-
align-items: baseline;
225-
margin-bottom: 8px;
226-
}
227-
228-
.s3-block-title {
229-
font-weight: 600;
230-
font-size: 14px;
231-
}
232-
233-
.s3-browse-link {
234-
font-size: 13px;
235-
color: #2563eb;
236-
text-decoration: none;
237-
}
238-
239-
.s3-browse-link:hover { text-decoration: underline; }
240-
241-
.s3-path {
242-
display: block;
243-
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
244-
font-size: 12px;
245-
color: #555;
246-
background: #f3f4f6;
247-
padding: 6px 10px;
248-
border-radius: 4px;
249-
word-break: break-all;
250-
}
251-
252212
/* API docs link */
253213
.docs-link {
254214
display: inline-block;
@@ -447,25 +407,6 @@ <h2>Data Access &amp; Licensing</h2>
447407
rel="noopener noreferrer">Source Cooperative</a> and can be queried
448408
directly with pyarrow, DuckDB, or any tool that reads HTTPS Parquet.
449409
</p>
450-
<div class="s3-block">
451-
<div class="s3-block-header">
452-
<span class="s3-block-title">OSM snapshot</span>
453-
<a class="s3-browse-link"
454-
href="https://source.coop/henryspatialanalysis/openpois/2026-04-23-v0/osm-parquet/"
455-
target="_blank" rel="noopener noreferrer">Browse files &rarr;</a>
456-
</div>
457-
<code class="s3-path">https://data.source.coop/henryspatialanalysis/openpois/2026-04-23-v0/osm-parquet/</code>
458-
</div>
459-
<div class="s3-block">
460-
<div class="s3-block-header">
461-
<span class="s3-block-title">Conflated dataset</span>
462-
<a class="s3-browse-link"
463-
href="https://source.coop/henryspatialanalysis/openpois/2026-04-23-v0/conflated-parquet/"
464-
target="_blank" rel="noopener noreferrer">Browse files &rarr;</a>
465-
</div>
466-
<code class="s3-path">https://data.source.coop/henryspatialanalysis/openpois/2026-04-23-v0/conflated-parquet/</code>
467-
</div>
468-
469410
<h2>Python API Documentation</h2>
470411
<p>
471412
The <code>openpois</code> Python package provides modules for

0 commit comments

Comments
 (0)