diff --git a/docs/01_ko.html b/docs/01_ko.html index 382c78768ddd584789ea289b59a1a719b8336dd2..43c71570c51cfe9e5c1633bbc9ca6f0bb7b337d8 100644 --- a/docs/01_ko.html +++ b/docs/01_ko.html @@ -6,7 +6,7 @@ <meta charset="UTF-8"> <meta content="text/html;charset=utf-8" http-equiv="Content-Type"> <meta content="utf-8" http-equiv="encoding"> - <meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1" + <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <meta name="keywords" content="Rust, Programming, Learning"> <meta name="description" content="Rust tutorial website based on tour_of_rust"> <meta name="theme-color" content="#ff6801"/> diff --git a/docs/02_ko.html b/docs/02_ko.html index 1e10a64f623bb1dd04f95c83e83e03a0ce9469b0..f1b8447135b15551ee57baafda82f8aef90fb92b 100644 --- a/docs/02_ko.html +++ b/docs/02_ko.html @@ -6,7 +6,7 @@ <meta charset="UTF-8"> <meta content="text/html;charset=utf-8" http-equiv="Content-Type"> <meta content="utf-8" http-equiv="encoding"> - <meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1" + <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <meta name="keywords" content="Rust, Programming, Learning"> <meta name="description" content="Rust tutorial website based on tour_of_rust"> <meta name="theme-color" content="#ff6801"/> diff --git a/docs/03_ko.html b/docs/03_ko.html index 5c5000d55893e250cfc7b4a3d9de9a41626070d3..2f020836509fa1b0ea8d2bae92bc1972dde69e90 100644 --- a/docs/03_ko.html +++ b/docs/03_ko.html @@ -6,7 +6,7 @@ <meta charset="UTF-8"> <meta content="text/html;charset=utf-8" http-equiv="Content-Type"> <meta content="utf-8" http-equiv="encoding"> - <meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1" + <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <meta name="keywords" content="Rust, Programming, Learning"> <meta name="description" content="Rust tutorial website based on tour_of_rust"> <meta name="theme-color" content="#ff6801"/> diff --git a/docs/04_ko.html b/docs/04_ko.html index d5c419e0556a6f496f06d578edd159f59325fcad..e277dd6791440fd2c4482d53240f720711fac1c3 100644 --- a/docs/04_ko.html +++ b/docs/04_ko.html @@ -6,7 +6,7 @@ <meta charset="UTF-8"> <meta content="text/html;charset=utf-8" http-equiv="Content-Type"> <meta content="utf-8" http-equiv="encoding"> - <meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1" + <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <meta name="keywords" content="Rust, Programming, Learning"> <meta name="description" content="Rust tutorial website based on tour_of_rust"> <meta name="theme-color" content="#ff6801"/> diff --git a/docs/06_ko.html b/docs/06_ko.html index fb829f93a3b8fcccf42e33e3d668a24b69089f81..2885a8f4682978da64b6ae2671bec60638dedbfa 100644 --- a/docs/06_ko.html +++ b/docs/06_ko.html @@ -6,7 +6,7 @@ <meta charset="UTF-8"> <meta content="text/html;charset=utf-8" http-equiv="Content-Type"> <meta content="utf-8" http-equiv="encoding"> - <meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1" + <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <meta name="keywords" content="Rust, Programming, Learning"> <meta name="description" content="Rust tutorial website based on tour_of_rust"> <meta name="theme-color" content="#ff6801"/> diff --git a/docs/07_ko.html b/docs/07_ko.html index 0ae59e10566360ee8c016f3f62b82a5b2a43e1d0..1f7f475ce42e3cef3dd2bbd0b1ce41c5f382329c 100644 --- a/docs/07_ko.html +++ b/docs/07_ko.html @@ -6,7 +6,7 @@ <meta charset="UTF-8"> <meta content="text/html;charset=utf-8" http-equiv="Content-Type"> <meta content="utf-8" http-equiv="encoding"> - <meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1" + <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <meta name="keywords" content="Rust, Programming, Learning"> <meta name="description" content="Rust tutorial website based on tour_of_rust"> <meta name="theme-color" content="#ff6801"/> diff --git a/docs/08_ko.html b/docs/08_ko.html index bea90db584f7581fa5e9c0689e9c2bbce18b7bf8..250a516d258510c42d30bd01e47040e7e414d1bd 100644 --- a/docs/08_ko.html +++ b/docs/08_ko.html @@ -6,7 +6,7 @@ <meta charset="UTF-8"> <meta content="text/html;charset=utf-8" http-equiv="Content-Type"> <meta content="utf-8" http-equiv="encoding"> - <meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1" + <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <meta name="keywords" content="Rust, Programming, Learning"> <meta name="description" content="Rust tutorial website based on tour_of_rust"> <meta name="theme-color" content="#ff6801"/> diff --git a/docs/09_ko.html b/docs/09_ko.html index d2f0c8de5697680d5007dcbc8a7effabcd6efd84..d2d0ddc1a0c6616466da93f569077970fc310f2b 100644 --- a/docs/09_ko.html +++ b/docs/09_ko.html @@ -6,7 +6,7 @@ <meta charset="UTF-8"> <meta content="text/html;charset=utf-8" http-equiv="Content-Type"> <meta content="utf-8" http-equiv="encoding"> - <meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1" + <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <meta name="keywords" content="Rust, Programming, Learning"> <meta name="description" content="Rust tutorial website based on tour_of_rust"> <meta name="theme-color" content="#ff6801"/> diff --git a/docs/10_ko.html b/docs/10_ko.html index 22e6f90dd38819bd57cedb0210f2e2187bf7d430..0f402e3e4fd8ebfd58ed73f71ee964853c206880 100644 --- a/docs/10_ko.html +++ b/docs/10_ko.html @@ -6,7 +6,7 @@ <meta charset="UTF-8"> <meta content="text/html;charset=utf-8" http-equiv="Content-Type"> <meta content="utf-8" http-equiv="encoding"> - <meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1" + <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <meta name="keywords" content="Rust, Programming, Learning"> <meta name="description" content="Rust tutorial website based on tour_of_rust"> <meta name="theme-color" content="#ff6801"/> diff --git a/docs/11_ko.html b/docs/11_ko.html index 8e7362a51935594c4db0ed9730483378a9283de7..b8cd4a0539ef89db29de39bce7f81ea0f119ff87 100644 --- a/docs/11_ko.html +++ b/docs/11_ko.html @@ -6,7 +6,7 @@ <meta charset="UTF-8"> <meta content="text/html;charset=utf-8" http-equiv="Content-Type"> <meta content="utf-8" http-equiv="encoding"> - <meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1" + <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <meta name="keywords" content="Rust, Programming, Learning"> <meta name="description" content="Rust tutorial website based on tour_of_rust"> <meta name="theme-color" content="#ff6801"/> diff --git a/docs/12_ko.html b/docs/12_ko.html index a28c74adcc47f1fbab8640d5494209d1cfbaba00..88ba123f652335e43fc26b559870b3630b31d3b2 100644 --- a/docs/12_ko.html +++ b/docs/12_ko.html @@ -6,7 +6,7 @@ <meta charset="UTF-8"> <meta content="text/html;charset=utf-8" http-equiv="Content-Type"> <meta content="utf-8" http-equiv="encoding"> - <meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1" + <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <meta name="keywords" content="Rust, Programming, Learning"> <meta name="description" content="Rust tutorial website based on tour_of_rust"> <meta name="theme-color" content="#ff6801"/> diff --git a/docs/13_ko.html b/docs/13_ko.html index 5beebea10b61729d4eb88a8afe97a8407710fbb8..e948bd82d656044cf47d280a2cec67a30fe3e31b 100644 --- a/docs/13_ko.html +++ b/docs/13_ko.html @@ -6,7 +6,7 @@ <meta charset="UTF-8"> <meta content="text/html;charset=utf-8" http-equiv="Content-Type"> <meta content="utf-8" http-equiv="encoding"> - <meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1" + <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <meta name="keywords" content="Rust, Programming, Learning"> <meta name="description" content="Rust tutorial website based on tour_of_rust"> <meta name="theme-color" content="#ff6801"/> diff --git a/docs/14_ko.html b/docs/14_ko.html index 4fe3f5f77bae91bf7bf885068c17ebcda2cdda05..0345c0edf6e5991d1185a3a0b9369388d8e8902f 100644 --- a/docs/14_ko.html +++ b/docs/14_ko.html @@ -6,7 +6,7 @@ <meta charset="UTF-8"> <meta content="text/html;charset=utf-8" http-equiv="Content-Type"> <meta content="utf-8" http-equiv="encoding"> - <meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1" + <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <meta name="keywords" content="Rust, Programming, Learning"> <meta name="description" content="Rust tutorial website based on tour_of_rust"> <meta name="theme-color" content="#ff6801"/> diff --git a/docs/15_ko.html b/docs/15_ko.html index 3d474a45727bb6cb28b03115998b07f94072a3a1..bb5b362ab090603d9c9ed600fde2cf4c40239fde 100644 --- a/docs/15_ko.html +++ b/docs/15_ko.html @@ -6,7 +6,7 @@ <meta charset="UTF-8"> <meta content="text/html;charset=utf-8" http-equiv="Content-Type"> <meta content="utf-8" http-equiv="encoding"> - <meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1" + <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <meta name="keywords" content="Rust, Programming, Learning"> <meta name="description" content="Rust tutorial website based on tour_of_rust"> <meta name="theme-color" content="#ff6801"/> diff --git a/docs/16_ko.html b/docs/16_ko.html index 577907bc4d40ce4bea80dff8b91d6fd94d38bd54..8d6c6bf73654eeef20f19a11b83ec5934fcc5bd7 100644 --- a/docs/16_ko.html +++ b/docs/16_ko.html @@ -6,7 +6,7 @@ <meta charset="UTF-8"> <meta content="text/html;charset=utf-8" http-equiv="Content-Type"> <meta content="utf-8" http-equiv="encoding"> - <meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1" + <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <meta name="keywords" content="Rust, Programming, Learning"> <meta name="description" content="Rust tutorial website based on tour_of_rust"> <meta name="theme-color" content="#ff6801"/> diff --git a/docs/17_ko.html b/docs/17_ko.html index 3c99a86901635ef5839f8c9e0cf1e0a5a3da3953..9c5f09438e4ca5706df83ce62367061287c3c6de 100644 --- a/docs/17_ko.html +++ b/docs/17_ko.html @@ -6,7 +6,7 @@ <meta charset="UTF-8"> <meta content="text/html;charset=utf-8" http-equiv="Content-Type"> <meta content="utf-8" http-equiv="encoding"> - <meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1" + <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <meta name="keywords" content="Rust, Programming, Learning"> <meta name="description" content="Rust tutorial website based on tour_of_rust"> <meta name="theme-color" content="#ff6801"/> diff --git a/docs/18_ko.html b/docs/18_ko.html index f0a10ddd3acabd038b12a4e0b5877c3a34d5610c..93293705948bee3fb8ddab143d12b86b935f0670 100644 --- a/docs/18_ko.html +++ b/docs/18_ko.html @@ -6,7 +6,7 @@ <meta charset="UTF-8"> <meta content="text/html;charset=utf-8" http-equiv="Content-Type"> <meta content="utf-8" http-equiv="encoding"> - <meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1" + <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <meta name="keywords" content="Rust, Programming, Learning"> <meta name="description" content="Rust tutorial website based on tour_of_rust"> <meta name="theme-color" content="#ff6801"/> diff --git a/docs/19_ko.html b/docs/19_ko.html index e566377106ae9186ee16bddf99a2ad5844c6df1c..62052da7545609933dbe0e1b090753aa9ae100ea 100644 --- a/docs/19_ko.html +++ b/docs/19_ko.html @@ -6,7 +6,7 @@ <meta charset="UTF-8"> <meta content="text/html;charset=utf-8" http-equiv="Content-Type"> <meta content="utf-8" http-equiv="encoding"> - <meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1" + <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <meta name="keywords" content="Rust, Programming, Learning"> <meta name="description" content="Rust tutorial website based on tour_of_rust"> <meta name="theme-color" content="#ff6801"/> diff --git a/docs/21_ko.html b/docs/21_ko.html index 356a9b13604fd1577bbc131ad4629b34d9738cc2..b358728cf66fcb3313ab3fa0908ef277309bdfd2 100644 --- a/docs/21_ko.html +++ b/docs/21_ko.html @@ -6,7 +6,7 @@ <meta charset="UTF-8"> <meta content="text/html;charset=utf-8" http-equiv="Content-Type"> <meta content="utf-8" http-equiv="encoding"> - <meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1" + <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <meta name="keywords" content="Rust, Programming, Learning"> <meta name="description" content="Rust tutorial website based on tour_of_rust"> <meta name="theme-color" content="#ff6801"/> diff --git a/docs/22_ko.html b/docs/22_ko.html index e6a76b61a8d5a59748440fbb79d1305b3038c854..d32f8d12a0066c562af482355f84d94b723c825e 100644 --- a/docs/22_ko.html +++ b/docs/22_ko.html @@ -6,7 +6,7 @@ <meta charset="UTF-8"> <meta content="text/html;charset=utf-8" http-equiv="Content-Type"> <meta content="utf-8" http-equiv="encoding"> - <meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1" + <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <meta name="keywords" content="Rust, Programming, Learning"> <meta name="description" content="Rust tutorial website based on tour_of_rust"> <meta name="theme-color" content="#ff6801"/> diff --git a/docs/23_ko.html b/docs/23_ko.html index a873b440d43ad5ad11d62035602e269bb39713b1..ecfc1671f89d92954f2531205a49bc99a5cc2abb 100644 --- a/docs/23_ko.html +++ b/docs/23_ko.html @@ -6,7 +6,7 @@ <meta charset="UTF-8"> <meta content="text/html;charset=utf-8" http-equiv="Content-Type"> <meta content="utf-8" http-equiv="encoding"> - <meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1" + <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <meta name="keywords" content="Rust, Programming, Learning"> <meta name="description" content="Rust tutorial website based on tour_of_rust"> <meta name="theme-color" content="#ff6801"/> diff --git a/docs/24_ko.html b/docs/24_ko.html index d53a269644fd190c2c26f4ff3114d42be45361c6..0faada8ffb6da7500b8f5297a12b221c28360b1b 100644 --- a/docs/24_ko.html +++ b/docs/24_ko.html @@ -6,7 +6,7 @@ <meta charset="UTF-8"> <meta content="text/html;charset=utf-8" http-equiv="Content-Type"> <meta content="utf-8" http-equiv="encoding"> - <meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1" + <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <meta name="keywords" content="Rust, Programming, Learning"> <meta name="description" content="Rust tutorial website based on tour_of_rust"> <meta name="theme-color" content="#ff6801"/> diff --git a/docs/25_ko.html b/docs/25_ko.html index 0717b8e4d56b669d0545ccafabedc4bfdd828077..954421525208d78b238f72f86e457f8b9e7c8a8f 100644 --- a/docs/25_ko.html +++ b/docs/25_ko.html @@ -6,7 +6,7 @@ <meta charset="UTF-8"> <meta content="text/html;charset=utf-8" http-equiv="Content-Type"> <meta content="utf-8" http-equiv="encoding"> - <meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1" + <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <meta name="keywords" content="Rust, Programming, Learning"> <meta name="description" content="Rust tutorial website based on tour_of_rust"> <meta name="theme-color" content="#ff6801"/> diff --git a/docs/26_ko.html b/docs/26_ko.html index 7c6cbef0dc31fc1c1ac0a156dbcdb5cfadf88fda..4f4a453978549e859ef8e176972966dd1300da2d 100644 --- a/docs/26_ko.html +++ b/docs/26_ko.html @@ -6,7 +6,7 @@ <meta charset="UTF-8"> <meta content="text/html;charset=utf-8" http-equiv="Content-Type"> <meta content="utf-8" http-equiv="encoding"> - <meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1" + <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <meta name="keywords" content="Rust, Programming, Learning"> <meta name="description" content="Rust tutorial website based on tour_of_rust"> <meta name="theme-color" content="#ff6801"/> diff --git a/docs/28_ko.html b/docs/28_ko.html index 64a27c8e181ef5febac96062d3ed2fe7c2a14d0c..74a5a447668383df18f18922774b07d74adb9b2f 100644 --- a/docs/28_ko.html +++ b/docs/28_ko.html @@ -6,7 +6,7 @@ <meta charset="UTF-8"> <meta content="text/html;charset=utf-8" http-equiv="Content-Type"> <meta content="utf-8" http-equiv="encoding"> - <meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1" + <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <meta name="keywords" content="Rust, Programming, Learning"> <meta name="description" content="Rust tutorial website based on tour_of_rust"> <meta name="theme-color" content="#ff6801"/> diff --git a/docs/30_ko.html b/docs/30_ko.html index 0e875ce99c842bf1faf262a041acf35877a123c4..3f8dd1dbe9e7eeada552f50adfdefaacfb70fb48 100644 --- a/docs/30_ko.html +++ b/docs/30_ko.html @@ -6,7 +6,7 @@ <meta charset="UTF-8"> <meta content="text/html;charset=utf-8" http-equiv="Content-Type"> <meta content="utf-8" http-equiv="encoding"> - <meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1" + <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <meta name="keywords" content="Rust, Programming, Learning"> <meta name="description" content="Rust tutorial website based on tour_of_rust"> <meta name="theme-color" content="#ff6801"/> diff --git a/docs/32_ko.html b/docs/32_ko.html index 3dbc0b414a6cd7125a2036fe4ccc90d854517a88..11d060438b03c36bc85565de01d1619422760c6c 100644 --- a/docs/32_ko.html +++ b/docs/32_ko.html @@ -6,7 +6,7 @@ <meta charset="UTF-8"> <meta content="text/html;charset=utf-8" http-equiv="Content-Type"> <meta content="utf-8" http-equiv="encoding"> - <meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1" + <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <meta name="keywords" content="Rust, Programming, Learning"> <meta name="description" content="Rust tutorial website based on tour_of_rust"> <meta name="theme-color" content="#ff6801"/> diff --git a/docs/34_ko.html b/docs/34_ko.html index b3edb7e5e4e4743725253491900b0367ff63b2ee..b8294ad71fcaca5c946444b67d4e91369499912b 100644 --- a/docs/34_ko.html +++ b/docs/34_ko.html @@ -6,7 +6,7 @@ <meta charset="UTF-8"> <meta content="text/html;charset=utf-8" http-equiv="Content-Type"> <meta content="utf-8" http-equiv="encoding"> - <meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1" + <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <meta name="keywords" content="Rust, Programming, Learning"> <meta name="description" content="Rust tutorial website based on tour_of_rust"> <meta name="theme-color" content="#ff6801"/> diff --git a/docs/TOC_ko.html b/docs/TOC_ko.html index 5eaf3c1f6d8c726eb061d69e2da3a5cd127adc3e..989b2709903cc0dcc089b76e3ac9c413b2621139 100644 --- a/docs/TOC_ko.html +++ b/docs/TOC_ko.html @@ -6,7 +6,7 @@ <meta charset="UTF-8"> <meta content="text/html;charset=utf-8" http-equiv="Content-Type"> <meta content="utf-8" http-equiv="encoding"> - <meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1" + <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <meta name="keywords" content="Rust, Programming, Learning"> <meta name="description" content="Rust tutorial website based on tour_of_rust"> <meta name="theme-color" content="#ff6801"/> diff --git a/docs/chapter_1_ko.html b/docs/chapter_1_ko.html index dd002df6515ac242a52579b5d520642c3f9812d4..958ab60f4e49bb70346363f3a72ed0240ff90210 100644 --- a/docs/chapter_1_ko.html +++ b/docs/chapter_1_ko.html @@ -6,7 +6,7 @@ <meta charset="UTF-8"> <meta content="text/html;charset=utf-8" http-equiv="Content-Type"> <meta content="utf-8" http-equiv="encoding"> - <meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1" + <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <meta name="keywords" content="Rust, Programming, Learning"> <meta name="description" content="Rust tutorial website based on tour_of_rust"> <meta name="theme-color" content="#ff6801"/> diff --git a/docs/chapter_2_ko.html b/docs/chapter_2_ko.html index 7cdd23f8a00cd1fe838c8f9ae180e07540ed3df3..207ca9b95119a08895c70376bac8fc574bd8c555 100644 --- a/docs/chapter_2_ko.html +++ b/docs/chapter_2_ko.html @@ -6,7 +6,7 @@ <meta charset="UTF-8"> <meta content="text/html;charset=utf-8" http-equiv="Content-Type"> <meta content="utf-8" http-equiv="encoding"> - <meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1" + <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <meta name="keywords" content="Rust, Programming, Learning"> <meta name="description" content="Rust tutorial website based on tour_of_rust"> <meta name="theme-color" content="#ff6801"/> diff --git a/docs/chapter_3_ko.html b/docs/chapter_3_ko.html index a6a8444f7ea011f1164ec5d4651fe7de2f7b84bd..9276b4dd94bcdc7b2732adc2bafb174a12854c9c 100644 --- a/docs/chapter_3_ko.html +++ b/docs/chapter_3_ko.html @@ -6,7 +6,7 @@ <meta charset="UTF-8"> <meta content="text/html;charset=utf-8" http-equiv="Content-Type"> <meta content="utf-8" http-equiv="encoding"> - <meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1" + <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <meta name="keywords" content="Rust, Programming, Learning"> <meta name="description" content="Rust tutorial website based on tour_of_rust"> <meta name="theme-color" content="#ff6801"/> diff --git a/docs/chapter_4_ko.html b/docs/chapter_4_ko.html index 8cda647aee88e84a454c2d181af670633a74a3fd..1356b80b97feb9b5216bdf9ed99bee0831a639a0 100644 --- a/docs/chapter_4_ko.html +++ b/docs/chapter_4_ko.html @@ -6,7 +6,7 @@ <meta charset="UTF-8"> <meta content="text/html;charset=utf-8" http-equiv="Content-Type"> <meta content="utf-8" http-equiv="encoding"> - <meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1" + <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <meta name="keywords" content="Rust, Programming, Learning"> <meta name="description" content="Rust tutorial website based on tour_of_rust"> <meta name="theme-color" content="#ff6801"/> diff --git a/docs/chapter_5_ko.html b/docs/chapter_5_ko.html index d90356bfc0019bce3c31bec47bdb96873255db27..6a5ee51c6811a18efb9a4fb012b9cae715356a55 100644 --- a/docs/chapter_5_ko.html +++ b/docs/chapter_5_ko.html @@ -6,7 +6,7 @@ <meta charset="UTF-8"> <meta content="text/html;charset=utf-8" http-equiv="Content-Type"> <meta content="utf-8" http-equiv="encoding"> - <meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1" + <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <meta name="keywords" content="Rust, Programming, Learning"> <meta name="description" content="Rust tutorial website based on tour_of_rust"> <meta name="theme-color" content="#ff6801"/> diff --git a/docs/chapter_6_ko.html b/docs/chapter_6_ko.html index abf54ed77e8da0061bfdb07e6bda53494663ff75..d66dff04e8828d31d7d715a81079d36063d072e8 100644 --- a/docs/chapter_6_ko.html +++ b/docs/chapter_6_ko.html @@ -6,7 +6,7 @@ <meta charset="UTF-8"> <meta content="text/html;charset=utf-8" http-equiv="Content-Type"> <meta content="utf-8" http-equiv="encoding"> - <meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1" + <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <meta name="keywords" content="Rust, Programming, Learning"> <meta name="description" content="Rust tutorial website based on tour_of_rust"> <meta name="theme-color" content="#ff6801"/> diff --git a/docs/index.html b/docs/index.html index afc2baaf4475d8a4a70d13d5028808dd7db62dd9..11f34f61b55bf78c9bd9627502067212d43cc678 100644 --- a/docs/index.html +++ b/docs/index.html @@ -6,7 +6,7 @@ <meta charset="UTF-8"> <meta content="text/html;charset=utf-8" http-equiv="Content-Type"> <meta content="utf-8" http-equiv="encoding"> - <meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1" + <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <meta name="keywords" content="Rust, Programming, Learning"> <meta name="description" content="Rust tutorial website based on tour_of_rust"> <meta name="theme-color" content="#ff6801"/> diff --git a/docs/tour.css b/docs/tour.css index 07b322d3e707c415bd5ed44035f3c4cfc401f14d..764e165cfe714f34f1d024200501b1a343fafcd3 100644 --- a/docs/tour.css +++ b/docs/tour.css @@ -1,5 +1,4 @@ -@import url("https://fonts.googleapis.com/css?family=Noto+Sans+KR&display=swap"); -@import url("https://fonts.googleapis.com/css?family=Fira+Code&display=swap"); +@import url("https://fonts.googleapis.com/css?family=Noto+Sans+KR|Fira+Code&display=swap"); a { color: #1e90ff; diff --git a/docs/tour.js b/docs/tour.js index 8ac68098c300d7deeb996b6b17b1f5c016eaed7e..f1245ee4ec8a1a32c83f05f17c0488a2c7238b36 100644 --- a/docs/tour.js +++ b/docs/tour.js @@ -63,20 +63,22 @@ document.addEventListener("touchstart", handleTouchStart, false); document.addEventListener("touchmove", handleTouchMove, false); setupKeys(); -const iframeElement = document.querySelector("iframe"); -if (iframeElement) { - setupKeys(); - iframeElement.addEventListener("load", () => { - setTimeout(() => { - document.querySelector("a").focus(); - setupKeys(); - }, 100); - setTimeout(() => { - document.querySelector("a").focus(); +document.addEventListener("DOMContentLoaded", function () { + const iframeElement = document.querySelector("iframe"); + if (iframeElement) { + setupKeys(); + iframeElement.addEventListener("load", () => { + setTimeout(() => { + document.querySelector("a").focus(); + setupKeys(); + }, 100); + setTimeout(() => { + document.querySelector("a").focus(); + setupKeys(); + }, 1000); setupKeys(); - }, 1000); + }); + } else { setupKeys(); - }); -} else { - setupKeys(); -} + } +}); diff --git a/frontend/generate.js b/frontend/generate.js index 223fe4c21250f1b8375acb9e0bb0379ad1e56d63..ee0d417cb9371cd32bff8a5214a797d409ca2b7b 100644 --- a/frontend/generate.js +++ b/frontend/generate.js @@ -5,71 +5,33 @@ const yaml = require("js-yaml"); const lessonSource = process.argv[2]; const targetDir = process.argv[3]; -showdown.extension("rust", function () { - return [ - { - type: "lang", - regex: /%rust%([^]+?)%end%/gi, - replace: function (s, match) { - return '<pre><code class="rust">' + match.trim() + "</code></pre>"; - }, - }, - ]; -}); +const rustExtension = { + type: "lang", + regex: /%rust%([^]+?)%end%/gi, + replace: (s, match) => `<pre><code class="rust">${match.trim()}</code></pre>`, +}; -showdown.extension("centerImage", function () { - return [ - { - type: "lang", - regex: /%center\s*-\s*([^\s%]+)(?:\s*,\s*([^%\n]+))?\s*%/gi, - replace: function (s, src, subtitle) { - var html = - '<div align="center">' + - '<p><img src="' + - src + - '" alt="NO IMG" style="width: 20%; margin-bottom: 20px; border-radius: 10px;"></p>'; - if (subtitle) { - html += "<h3>" + subtitle.trim() + "</h3>"; - } - html += "</div>"; - return html; - }, - }, - ]; -}); +const centerImageExtension = { + type: "lang", + regex: /%center\s*-\s*([^\s%]+)(?:\s*,\s*([^%\n]+))?\s*%/gi, + replace: (s, src, subtitle) => { + const baseHtml = `<div align="center"><p><img src="${src}" alt="NO IMG" style="width: 20%; margin-bottom: 20px; border-radius: 10px;"></p>`; + return subtitle + ? baseHtml + `<h3>${subtitle.trim()}</h3></div>` + : baseHtml + "</div>"; + }, +}; -/** - * @param {number} num - * @returns {string} - */ -function pad(num) { - const s = `${num}`; - return s.padStart(2, "0"); -} +const pad = num => String(num).padStart(2, "0"); +const getWord = (words, lang, w) => words[lang][w] || words.ko[w]; -/** - * @param {string} lang - * @param {number} i - * @param {boolean} isBeta currently unused - * @param {string} chapter - * @returns {string} - */ -function getFileName(lang, i, isBeta, chapter) { - if (i === 0 && lang === "ko") { - return "index.html"; - } - // let fileName = `${pad(i)}_${lang}.html`; - let fileName = `${pad(i)}_${lang}.html`; - if (chapter !== undefined && chapter !== null) { - fileName = `chapter_${chapter}_${lang}.html`; - } - return fileName; -} +const getFileName = (lang, i, chapter) => + i === 0 && lang === "ko" + ? "index.html" + : chapter + ? `chapter_${chapter}_${lang}.html` + : `${pad(i)}_${lang}.html`; -/** - * @param {string} source - * @returns {string[]} - */ const getDirectories = source => fs .readdirSync(source, { withFileTypes: true }) @@ -87,35 +49,31 @@ const commonWords = {}; const chapters = []; languages.forEach(lang => { - // const lang = languages[x]; const langDir = `${lessonSource}/${lang}`; commonWords[lang] = getYaml(`${langDir}/common_words.yaml`); - const languageFiles = fs - .readdirSync(langDir, { withFileTypes: true }) - .filter(f => f.isFile() && f.name.indexOf("chapter_") === 0) - .map(f => f.name); - languageFiles.forEach(l => { - const chap = parseInt(l.substring(8, l.indexOf(".")), 10); - if (chapters[chap] === undefined) { - chapters[chap] = {}; - } - chapters[chap][lang] = getYaml(`${langDir}/${l}`); - }); + + fs.readdirSync(langDir, { withFileTypes: true }) + .filter(f => f.isFile() && f.name.startsWith("chapter_")) + .forEach(f => { + const chap = parseInt(f.name.substring(8, f.name.indexOf(".")), 10); + chapters[chap] = chapters[chap] || {}; + chapters[chap][lang] = getYaml(`${langDir}/${f.name}`); + }); }); const pages = []; chapters.forEach((c, x) => { - for (let i = 0; i < c.ko.length; i += 1) { + c.ko.forEach((_, i) => { const page = {}; if (i === 0 && x !== 0) { page.chapter = x; } - Object.keys(c).forEach(lang => { - page[lang] = c[lang][i]; + Object.entries(c).forEach(([lang, content]) => { + page[lang] = content[i]; }); pages.push(page); - } + }); }); const lessons = { @@ -132,25 +90,11 @@ const aBinder = [ ]; const converter = new showdown.Converter({ - extensions: [...aBinder, "rust", "centerImage"], + extensions: [...aBinder, rustExtension, centerImageExtension], }); - converter.setOption("parseImgDimensions", true); converter.setOption("simpleLineBreaks", true); -/** - * @param {string[]} words - * @param {string} lang - * @param {string} w - * @returns {string} - */ -function getWord(words, lang, w) { - if (words[lang][w]) { - return words[lang][w]; - } - return words.ko[w]; -} - /** * * @param {string[]} words @@ -165,7 +109,7 @@ const getHead = (words, lang) => `<!DOCTYPE html> <meta charset="UTF-8"> <meta content="text/html;charset=utf-8" http-equiv="Content-Type"> <meta content="utf-8" http-equiv="encoding"> - <meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1" + <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <meta name="keywords" content="Rust, Programming, Learning"> <meta name="description" content="Rust tutorial website based on tour_of_rust"> <meta name="theme-color" content="#ff6801"/> @@ -196,7 +140,6 @@ const getHead = (words, lang) => `<!DOCTYPE html> * @param {number} index * @param {boolean} isLast * @param {string[]} words - * @param {boolean} isBeta * @returns */ function template( @@ -208,8 +151,7 @@ function template( source, index, isLast, - words, - isBeta + words ) { return `${getHead(words, lang)} <body> @@ -218,7 +160,6 @@ function template( <span class="title"><a href="${getFileName( lang, 0, - isBeta, lessonsData[0]?.chapter )}">${getWord(words, lang, "tor")}</a></span> <span class="nav"> @@ -234,12 +175,9 @@ function template( <div class="bottomnav"> ${ index !== 0 - ? `<span class="back"><a href="${ - isBeta ? "beta_" : "" - }${getFileName( + ? `<span class="back"><a href="${getFileName( lang, index - 1, - isBeta, lessonsData[index - 1]?.chapter )}" rel="prev">❮ ${getWord( words, @@ -251,12 +189,9 @@ function template( ${ isLast ? "" - : `<span class="next"><a href="${ - isBeta ? "beta_" : "" - }${getFileName( + : `<span class="next"><a href="${getFileName( lang, index + 1, - isBeta, lessonsData[index + 1]?.chapter )}" rel="next">${getWord( words, @@ -314,7 +249,7 @@ languages.forEach(lang => { }); langLessons.forEach((lesson, i) => { - let fileName = getFileName(lang, i, false, lesson?.chapter); + let fileName = getFileName(lang, i, lesson?.chapter); if (i === 0 && lang === "ko") { fileName = "index.html"; } @@ -388,7 +323,7 @@ languages.forEach(lang => { if (x[lang] && x[lang].clone) { targetLang = x[lang].clone; } - let s = `<li><a href="${getFileName(lang, i, false, x.chapter)}">${ + let s = `<li><a href="${getFileName(lang, i, x.chapter)}">${ x[targetLang] ? x[targetLang].title : `[${getWord(words, targetLang, "untranslated")}] ${ @@ -396,12 +331,7 @@ languages.forEach(lang => { }` }</a></li>`; if (x.chapter !== undefined) { - s = `</ul><h3><a href="${getFileName( - lang, - i, - false, - x.chapter - )}">${ + s = `</ul><h3><a href="${getFileName(lang, i, x.chapter)}">${ x[targetLang] ? x[targetLang].title : `[${getWord(words, targetLang, "untranslated")}] ${