web/ is a static site generator for the dataset, in Python's standard library only. `python3 web/build.py --out _site` writes a page for each of the 138 records, a finder on the home page with a map of the 85 lines, region and route indexes, and the repository's documents as pages. Each line is offered as the record's GeoJSON and as a GPX simplified to 5 m, with two archives of everything. The site's name and address are set in web/site.toml: Long Hikes, at https://longhikes.org. The dataset keeps its own name. netlify.toml and web/static/_headers configure the Netlify site (content types, download dispositions, caching, a content security policy with no inline script). It is deployed with the Netlify CLI from a local build, because Netlify cannot build from this forge. MapLibre GL JS and the two typefaces are vendored under web/assets/; map tiles come from OpenFreeMap. Tests: python3 -m unittest discover -s web/tests (164). Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
c42cfbbe73
commit
abfbeb00bd
77 files changed
+9287
No files matched your search
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 520" preserveAspectRatio="xMidYMid slice" fill="none" stroke="#9b7650" stroke-opacity=".42" stroke-linejoin="round"><path stroke-width="1" d="M0 298Q31 293 42 289Q54 284 63 278Q72 272 90 258Q108 243 114 239Q120 235 129 232Q138 228 183 216Q228 205 273 197Q318 189 330 184Q342 180 348 175Q354 170 361 163Q367 155 385 126Q402 96 408 93Q414 89 426 87Q438 85 447 82Q456 79 468 72Q480 65 492 52Q504 40 517 20L529 0"/><path stroke-width="1" d="M975 520Q981 496 992 470Q1002 444 1005 434Q1008 424 1008 415Q1009 406 1008 403Q1008 400 1005 395Q1002 390 996 388Q990 385 984 385Q978 385 945 397Q912 409 903 411Q894 413 885 413Q876 413 870 412Q864 410 858 407Q852 404 840 390Q828 377 822 372Q816 368 810 365Q804 363 798 363Q792 362 784 363Q777 365 770 368Q763 371 759 374Q754 377 749 382Q744 388 738 398Q732 408 713 449Q694 490 683 505L673 520"/><path stroke-width="1" d="M1416 0Q1423 18 1428 39Q1432 60 1436 69L1440 79"/><path stroke-width="1" d="M0 328Q30 326 43 321Q57 317 67 310Q78 304 102 284Q126 265 135 259Q144 253 156 247Q168 240 180 236Q192 231 207 227Q222 223 237 222Q252 220 264 220Q276 220 294 223Q312 226 318 226Q324 226 333 225Q342 223 348 220Q354 217 364 210Q373 203 400 176Q427 149 454 128Q480 107 489 99Q498 90 510 74Q522 57 537 28L553 0"/><path stroke-width="1" d="M1104 520Q1099 502 1096 495Q1092 488 1086 481Q1080 475 1070 467Q1060 460 1055 454Q1051 448 1049 442Q1047 436 1043 409Q1038 383 1035 376Q1032 369 1027 364Q1021 359 1015 356Q1008 354 999 354Q990 354 981 356Q972 358 951 366Q930 374 921 377Q912 379 903 380Q894 380 888 378Q883 377 878 374Q874 371 863 358Q852 345 846 340Q840 335 831 331Q822 328 804 324Q786 320 780 317Q774 313 770 306Q766 299 763 281Q759 263 756 254Q753 245 750 239Q746 233 742 229Q738 226 732 222Q726 219 720 217Q714 215 681 210Q648 204 640 201Q632 197 619 189Q606 180 597 178Q588 176 582 177Q576 179 570 184Q564 190 561 196Q557 203 557 212Q556 221 560 229Q564 236 576 247Q587 257 591 263Q595 269 598 278Q601 287 606 308Q610 329 614 338Q617 347 621 351Q624 356 630 361Q636 365 642 367Q648 369 663 372Q678 375 684 377Q690 380 693 383Q696 385 698 390Q700 394 700 400Q700 406 699 415Q697 424 689 445Q681 466 672 481Q663 496 650 508L637 520"/><path stroke-width="1" d="M1348 0Q1380 6 1385 9Q1391 12 1394 15Q1397 18 1402 27Q1407 36 1414 61Q1422 86 1425 91Q1428 96 1434 102L1440 109"/><path stroke-width="1" d="M0 353Q30 350 45 343Q60 337 72 329Q84 321 117 295Q150 269 162 262Q174 255 186 250Q198 246 210 243Q222 240 234 240Q246 239 255 240Q264 241 285 247Q306 253 315 254Q324 254 333 252Q342 251 354 245Q366 239 378 230Q390 221 417 196Q444 170 471 151Q499 131 505 126Q512 120 520 107Q528 94 542 62Q555 30 563 15L570 0"/><path stroke-width="1" d="M1143 520Q1135 508 1126 486Q1116 465 1110 456Q1104 448 1091 433Q1078 418 1075 412Q1071 406 1062 383Q1052 359 1048 353Q1044 348 1040 344Q1036 341 1028 337Q1020 334 1011 333Q1002 332 990 333Q978 335 954 340Q930 344 924 344Q918 344 912 342Q906 341 902 338Q898 335 887 324Q876 313 870 309Q864 306 858 303Q852 301 834 297Q816 292 807 287Q798 283 793 276Q788 269 777 248Q767 227 758 219Q750 211 741 207Q732 203 708 197Q684 192 675 189Q666 186 657 181Q648 176 630 162Q612 149 606 146Q600 144 591 142Q582 140 573 141Q564 142 558 144Q552 147 546 151Q540 155 536 161Q532 167 528 176Q524 185 520 200Q516 215 515 227Q513 239 514 248Q515 257 518 263Q522 270 525 272Q528 275 543 283Q558 290 565 298Q572 305 576 314Q579 323 585 347Q590 371 595 380Q599 389 606 393Q612 397 630 402Q648 407 654 411Q660 416 662 423Q665 430 664 439Q663 448 659 457Q655 466 649 476Q642 485 633 493Q624 501 615 506Q606 511 597 514Q588 516 579 516Q570 516 564 514Q558 512 546 502Q534 492 528 491Q522 489 513 493Q504 496 498 501Q492 505 486 513L479 520"/><path stroke-width="1" d="M1262 0Q1296 13 1326 18Q1356 23 1365 27Q1374 30 1377 33Q1381 36 1385 42Q1389 48 1396 69Q1404 90 1408 99Q1413 108 1419 114Q1424 120 1432 125L1440 130"/><path stroke-width="1" d="M0 375Q30 369 45 362Q60 356 75 345Q90 335 120 311Q150 286 162 279Q174 272 183 268Q192 264 204 261Q216 258 225 258Q234 257 243 259Q252 260 276 268Q300 276 309 276Q318 277 330 276Q342 274 354 270Q366 266 375 261Q384 257 411 236Q438 215 444 211Q450 208 456 206Q462 204 465 205Q468 205 471 210Q474 215 473 227Q472 239 467 254Q463 269 451 299Q439 329 438 335Q437 341 438 347Q438 354 441 358Q444 361 450 361Q456 361 480 348Q504 336 510 334Q516 333 522 333Q528 333 534 337Q540 340 542 343Q544 347 546 353Q548 359 548 365Q548 371 546 380Q545 389 541 397Q536 406 531 412Q527 418 512 432Q498 445 489 455Q480 465 471 479Q462 492 454 506L447 520"/><path stroke-width="1" d="M1203 520Q1176 514 1171 511Q1166 508 1162 504Q1158 500 1155 495Q1151 490 1139 466Q1128 442 1110 420Q1092 398 1077 370Q1062 342 1059 338Q1056 334 1050 330Q1044 325 1038 322Q1032 320 1023 318Q1014 316 987 316Q960 316 951 315Q942 314 933 310Q924 306 912 297Q900 288 894 284Q888 281 879 278Q870 275 852 272Q834 268 828 266Q822 264 814 257Q806 251 793 233Q780 215 771 208Q762 200 752 196Q742Line truncated
|
||||
|
After Width: | Height: | Size: 13 KiB |
Reference in new issue
Block a user