@@ -53,24 +53,12 @@ <h2>Default Endpoints</h2>
53
53
> Article</ a
54
54
>
55
55
</ li >
56
- < li >
57
- < a
58
- href ="/AMPArticle/https://amp.theguardian.com/world/2013/jun/09/edward-snowden-nsa-whistleblower-surveillance "
59
- > ⚡️Article</ a
60
- >
61
- </ li >
62
56
< li >
63
57
< a
64
58
href ="/Interactive/https://www.theguardian.com/global-development/ng-interactive/2022/jun/09/the-black-sea-blockade-mapping-the-impact-of-war-in-ukraine-on-the-worlds-food-supply-interactive "
65
59
> Interactive</ a
66
60
>
67
61
</ li >
68
- < li >
69
- < a
70
- href ="/AMPInteractive/https://www.theguardian.com/world/2021/mar/24/how-a-container-ship-blocked-the-suez-canal-visual-guide "
71
- > ⚡️Interactive</ a
72
- >
73
- </ li >
74
62
< li >
75
63
< a
76
64
href ="/AppsInteractive/https://www.theguardian.com/global-development/ng-interactive/2022/jun/09/the-black-sea-blockade-mapping-the-impact-of-war-in-ukraine-on-the-worlds-food-supply-interactive "
@@ -81,19 +69,12 @@ <h2>Default Endpoints</h2>
81
69
< a href ="/Front/https://www.theguardian.com/international "
82
70
> International Front</ a
83
71
>
84
- (< a href ="/FrontJSON/https://www.theguardian.com/international "
85
- > Enhanced JSON</ a
86
- > )
87
72
</ li >
88
73
< li >
89
74
< a
90
75
href ="/TagPage/https://www.theguardian.com/tone/minutebyminute "
91
76
> Tag Page</ a
92
77
>
93
- (< a
94
- href ="/FrontJSON/https://www.theguardian.com/tone/minutebyminute "
95
- > Enhanced JSON</ a
96
- > )
97
78
</ li >
98
79
< li >
99
80
< a
@@ -341,23 +322,20 @@ <h2>Article Examples</h2>
341
322
< td class ="links ">
342
323
< article-link product ="dotcom " env ="DEV "> </ article-link >
343
324
< article-link product ="apps " env ="DEV "> </ article-link >
344
- < article-link product ="amp " env ="DEV "> </ article-link >
345
325
</ td >
346
326
< td class ="links ">
347
327
< article-link
348
328
product ="dotcom "
349
329
env ="CODE "
350
330
> </ article-link >
351
331
< article-link product ="apps " env ="CODE "> </ article-link >
352
- < article-link product ="amp " env ="CODE "> </ article-link >
353
332
</ td >
354
333
< td class ="links ">
355
334
< article-link
356
335
product ="dotcom "
357
336
env ="PROD "
358
337
> </ article-link >
359
338
< article-link product ="apps " env ="PROD "> </ article-link >
360
- < article-link product ="amp " env ="PROD "> </ article-link >
361
339
</ td >
362
340
</ tr >
363
341
</ template >
@@ -405,9 +383,7 @@ <h2>Test Articles By Element</h2>
405
383
< div class ="test-article-header ">
406
384
< span > type</ span >
407
385
< span > local</ span >
408
- < span > local-amp</ span >
409
386
< span > production</ span >
410
- < span > production-amp</ span >
411
387
</ div >
412
388
</ div >
413
389
@@ -417,9 +393,7 @@ <h2>Test Articles By Atom Type</h2>
417
393
< div class ="test-article-header ">
418
394
< span > type</ span >
419
395
< span > local</ span >
420
- < span > local-amp</ span >
421
396
< span > production</ span >
422
- < span > production-amp</ span >
423
397
</ div >
424
398
</ div >
425
399
@@ -734,9 +708,7 @@ <h2>Test Articles By Element (Missing)</h2>
734
708
<div class="test-article">
735
709
<span>${ a . name } </span>
736
710
<span><a href="/Article/https://www.theguardian.com${ a . article } ">🔗</a> <a href="/Article/http://localhost:9000${ a . article } ">🔗(local FE)</a></span>
737
- <span><a href="/AMPArticle/https://www.theguardian.com${ a . article } ">🔗</a> <a href="/AMPArticle/http://localhost:9000${ a . article } ">🔗(local FE)</a></span>
738
711
<span><a href="https://www.theguardian.com${ a . article } ">example</a></span>
739
- <span><a href="https://amp.theguardian.com${ a . article } ">example</a></span>
740
712
</div>
741
713
` ;
742
714
@@ -916,7 +888,7 @@ <h2>${title}</h2>
916
888
917
889
class ArticleLink extends HTMLElement {
918
890
/**
919
- * @typedef {'dotcom' | 'apps' | 'amp' } Product
891
+ * @typedef {'dotcom' | 'apps' } Product
920
892
* @typedef {'PROD' | 'CODE' | 'DEV' } Env
921
893
*/
922
894
@@ -938,8 +910,6 @@ <h2>${title}</h2>
938
910
case 'dotcom' :
939
911
case 'apps' :
940
912
return 'https://www.theguardian.com' ;
941
- case 'amp' :
942
- return 'https://amp.theguardian.com' ;
943
913
}
944
914
}
945
915
@@ -952,8 +922,6 @@ <h2>${title}</h2>
952
922
case 'dotcom' :
953
923
case 'apps' :
954
924
return 'https://m.code.dev-theguardian.com' ;
955
- case 'amp' :
956
- return 'https://amp.code.dev-theguardian.com' ;
957
925
}
958
926
}
959
927
@@ -977,8 +945,6 @@ <h2>${title}</h2>
977
945
return '/Article' ;
978
946
case 'apps' :
979
947
return '/AppsArticle' ;
980
- case 'amp' :
981
- return '/AMPArticle' ;
982
948
}
983
949
}
984
950
@@ -1027,8 +993,6 @@ <h2>${title}</h2>
1027
993
return '🌍 Dotcom' ;
1028
994
case 'apps' :
1029
995
return '📱 Apps' ;
1030
- case 'amp' :
1031
- return '⚡️ AMP' ;
1032
996
}
1033
997
}
1034
998
@@ -1081,13 +1045,9 @@ <h2>${title}</h2>
1081
1045
const env = this . getAttribute ( 'env' ) ;
1082
1046
const href = this . getAttribute ( 'href' ) ;
1083
1047
1084
- if (
1085
- product !== 'dotcom' &&
1086
- product !== 'apps' &&
1087
- product !== 'amp'
1088
- ) {
1048
+ if ( product !== 'dotcom' && product !== 'apps' ) {
1089
1049
this . textContent =
1090
- "article-link error: 'product' must be one of: 'dotcom', 'apps' or 'amp '" ;
1050
+ "article-link error: 'product' must be one of: 'dotcom' or 'apps '" ;
1091
1051
return ;
1092
1052
}
1093
1053
0 commit comments