Skip to content

Commit 413625c

Browse files
committed
fix: fix pre-commit issues
- use relative file links - add jekyll-relative-links plugin
1 parent dbcd396 commit 413625c

26 files changed

Lines changed: 83 additions & 69 deletions

.pre-commit-config.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,13 @@ repos:
44
hooks:
55
- id: lychee
66
files: \.md$
7-
args: ["--no-progress", "--root-dir=.", "."]
7+
args:
8+
- "--no-progress"
9+
- "--root-dir=."
10+
- "--exclude-path=_includes"
11+
- "--exclude-path=_layouts"
12+
- "--exclude-path=_site"
13+
- "."
814
pass_filenames: false
915

1016
- repo: https://github.com/crate-ci/typos

_config.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,14 @@ plugins:
1212
- jekyll-seo-tag
1313
- jekyll-sitemap
1414
- jekyll-toc
15+
- jekyll-relative-links
16+
17+
# Rewrite Markdown links to *.md files into their rendered permalinks at build
18+
# time. Lets us author plain relative .md links (which lychee can verify on
19+
# disk) instead of hand-maintaining permalink URLs.
20+
relative_links:
21+
enabled: true
22+
collections: false
1523

1624
# Markdown processor (jekyll-commonmark-ghpages)
1725
markdown: CommonMarkGhPages

assets/docs/about_data/files/global_exports/projects.csv

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

assets/docs/about_data/files/global_exports/projects_centroid.geojson

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,4 +313,4 @@
313313
}
314314
}
315315
]
316-
}
316+
}

assets/docs/about_data/files/global_exports/projects_geom.geojson

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9468,4 +9468,4 @@
94689468
}
94699469
}
94709470
]
9471-
}
9471+
}

assets/docs/about_data/files/project_exports/agg_results_by_task_2962_geom.geojson

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,4 +543,4 @@
543543
}
544544
}
545545
]
546-
}
546+
}

assets/docs/about_data/files/project_exports/hot_tm_2962.geojson

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,4 +389,4 @@
389389
}
390390
}
391391
]
392-
}
392+
}

assets/docs/about_data/files/project_exports/yes_maybe_2962.geojson

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1229,4 +1229,4 @@
12291229
}
12301230
}
12311231
]
1232-
}
1232+
}

docs/about_data.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,23 @@ Swiping is just the beginning. MapSwipe data is created by our users and accessi
1515
## Global Exports
1616
Exports that describe the whole MapSwipe project catalog.
1717

18-
- [Projects Overview](/docs/about_data/projects/) (`projects.csv`) — every project in MapSwipe, one row per project.
19-
- [Projects with Geometry](/docs/about_data/projects_geom/) (`projects_geom.geojson`) — project metadata + each project's area-of-interest polygon(s).
20-
- [Projects with Centroid](/docs/about_data/projects_centroid/) (`projects_centroid.geojson`) — same metadata but with a single centroid point per project.
21-
- [Project Type's Stats](/docs/about_data/project_stats_by_types/) (`project_stats_by_types.csv`) — aggregated stats grouped by project type.
18+
- [Projects Overview](about_data/projects.md) (`projects.csv`) — every project in MapSwipe, one row per project.
19+
- [Projects with Geometry](about_data/projects_geom.md) (`projects_geom.geojson`) — project metadata + each project's area-of-interest polygon(s).
20+
- [Projects with Centroid](about_data/projects_centroid.md) (`projects_centroid.geojson`) — same metadata but with a single centroid point per project.
21+
- [Project Type's Stats](about_data/project_stats_by_types.md) (`project_stats_by_types.csv`) — aggregated stats grouped by project type.
2222

2323
## Project Specific Exports
2424
Exports scoped to a single project. For the examples on the following pages we use:
2525

2626
> *Find Features - Find Buildings - Mozambique Floods 2026 - Chibuto (1) HOT — `id` `2962`, `firebaseId` `01KMMX0C9MG396SCV8W8CZ8RY3`*
2727
28-
- [Aggregated Results](/docs/about_data/aggregated_results/) — unfiltered MapSwipe results aggregated on the task level (CSV).
29-
- [Aggregated Results (with Geometry)](/docs/about_data/aggregated_results_with_geometry/) — same data as Aggregated Results, delivered as a GeoJSON `FeatureCollection`.
30-
- [Groups](/docs/about_data/groups/) — task groups and their progress.
31-
- [History](/docs/about_data/history/) — daily activity timeline.
32-
- [Results](/docs/about_data/results/) — individual user contributions per task.
33-
- [Tasks](/docs/about_data/tasks/) — task identifiers and geometries.
34-
- [Users](/docs/about_data/users/) — contributor stats for this project.
35-
- [Area of Interest](/docs/about_data/area_of_interest/) — the project's region as GeoJSON.
36-
- [HOT Tasking Manager Geometries](/docs/about_data/hot_tm/) — filtered geometries ready for import into HOT Tasking Manager.
37-
- [Moderate to High Agreement Yes Maybe Geometries](/docs/about_data/yes_maybe/) — merged polygons of areas marked yes / maybe.
28+
- [Aggregated Results](about_data/aggregated_results.md) — unfiltered MapSwipe results aggregated on the task level (CSV).
29+
- [Aggregated Results (with Geometry)](about_data/aggregated_results_with_geometry.md) — same data as Aggregated Results, delivered as a GeoJSON `FeatureCollection`.
30+
- [Groups](about_data/groups.md) — task groups and their progress.
31+
- [History](about_data/history.md) — daily activity timeline.
32+
- [Results](about_data/results.md) — individual user contributions per task.
33+
- [Tasks](about_data/tasks.md) — task identifiers and geometries.
34+
- [Users](about_data/users.md) — contributor stats for this project.
35+
- [Area of Interest](about_data/area_of_interest.md) — the project's region as GeoJSON.
36+
- [HOT Tasking Manager Geometries](about_data/hot_tm.md) — filtered geometries ready for import into HOT Tasking Manager.
37+
- [Moderate to High Agreement Yes Maybe Geometries](about_data/yes_maybe.md) — merged polygons of areas marked yes / maybe.

docs/about_data/aggregated_results.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ permalink: /docs/about_data/aggregated_results/
66
---
77

88
# Aggregated Results
9-
This gives you the unfiltered MapSwipe results aggregated on the task level. This is most suited if you want to apply some custom data processing with the MapSwipe data, e.g. select only specific tasks. If you want geometries on each task instead of a `geom` column, see [Aggregated Results (with Geometry)](/docs/about_data/aggregated_results_with_geometry/).
9+
This gives you the unfiltered MapSwipe results aggregated on the task level. This is most suited if you want to apply some custom data processing with the MapSwipe data, e.g. select only specific tasks. If you want geometries on each task instead of a `geom` column, see [Aggregated Results (with Geometry)](aggregated_results_with_geometry.md).
1010

1111
## Schema
1212

0 commit comments

Comments
 (0)