diff --git a/config/mkdocs-common.yml b/config/mkdocs-common.yml index 0251964e65..d5a5f5a5c7 100644 --- a/config/mkdocs-common.yml +++ b/config/mkdocs-common.yml @@ -38,6 +38,10 @@ extra: link: /en/ lang: en icon: https://raw.githubusercontent.com/twitter/twemoji/master/assets/svg/1f1fa-1f1f8.svg + - name: Chinese Traditional + link: /zh-tw/ + lang: en + icon: https://raw.githubusercontent.com/twitter/twemoji/master/assets/svg/1f1f9-1f1fc.svg - name: Español link: /es/ lang: es diff --git a/config/mkdocs.zh-tw.yml b/config/mkdocs.zh-tw.yml new file mode 100644 index 0000000000..c61292a4aa --- /dev/null +++ b/config/mkdocs.zh-tw.yml @@ -0,0 +1,162 @@ +# Copyright (c) 2022-2023 Jonah Aragon + +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to +# deal in the Software without restriction, including without limitation the +# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +# sell copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: + +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. + +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +# IN THE SOFTWARE. + +INHERIT: mkdocs.common.yml +docs_dir: '../docs' +site_url: "https://www.privacyguides.org/en/" +site_dir: '../site/zh-tw' + +site_name: Privacy Guides +site_description: | + Privacy Guides 是您重要的網路隱私與安全資源。 +copyright: | + Privacy Guides 是一個非營利、社會導向的網站,旨在提供有關資訊以確保您的資料安全和隱私。
+ 我們不會通過推薦某些產品來賺錢,我們也不會使用推廣回贈鏈接。 + © 2019 - 2023 Privacy Guides 和貢獻者。 + + 根據CC BY-ND 4.0授權的內容。 CC BY-ND 4.0. +edit_uri: edit/main/i18n/zh-tw/ + +extra: + generator: false + analytics: + provider: plausible + property: privacyguides.org + feedback: + title: "這個頁面對您有幫助嗎?" + ratings: + - icon: material/robot-happy-outline + name: "此頁有幫助" + data: Helpful + note: "感謝反饋!" + - icon: material/robot-confused + name: "此頁面可以改善" + data: Needs Improvement + note: "感謝你的意見!通過在的論壇上開啟討論來協助我們改善此頁面。" + +theme: + language: en + # ENGLISH ONLY: this logo needs to be set separately because the relative path is different + logo: ../theme/assets/brand/SVG/Logo/privacy-guides-logo-notext-colorbg.svg + font: + text: Public Sans + code: DM Mono + palette: + - media: "(prefers-color-scheme)" + scheme: default + accent: deep purple + toggle: + icon: material/brightness-auto + name: "切換至深色模式" + - media: "(prefers-color-scheme: dark)" + scheme: slate + accent: amber + toggle: + icon: material/brightness-2 + name: "切換至淺色模式" + - media: "(prefers-color-scheme: light)" + scheme: default + accent: deep purple + toggle: + icon: material/brightness-5 + name: "切換到系統主題" + +markdown_extensions: + pymdownx.snippets: + auto_append: + - includes/abbreviations.en.txt + +nav: + - 首頁: 'index.md' + - 知識庫: + - 'basics/why-privacy-matters.md' + - 'basics/threat-modeling.md' + - 'basics/common-threats.md' + - 'basics/common-misconceptions.md' + - 'basics/account-creation.md' + - 'basics/account-deletion.md' + - 技術精華: + - 'basics/passwords-overview.md' + - 'basics/multi-factor-authentication.md' + - 'basics/email-security.md' + - 'basics/vpn-overview.md' + - 進階主題: + - 'advanced/dns-overview.md' + - 'advanced/tor-overview.md' + - 'advanced/payments.md' + - 'advanced/communication-network-types.md' + - 作業系統: + - 'os/android-overview.md' + - 'os/linux-overview.md' + - 'os/qubes-overview.md' + - kb-archive.md + - 推薦: + - 'tools.md' + - 網際網路瀏覽: + - 'tor.md' + - 'desktop-browsers.md' + - 'mobile-browsers.md' + - 提供者: + - 'cloud.md' + - 'dns.md' + - 'email.md' + - 'financial-services.md' + - 'search-engines.md' + - 'vpn.md' + - 軟體: + - 'calendar.md' + - 'cryptocurrency.md' + - 'data-redaction.md' + - 'email-clients.md' + - 'encryption.md' + - 'file-sharing.md' + - 'frontends.md' + - 'multi-factor-authentication.md' + - 'news-aggregators.md' + - 'notebooks.md' + - 'passwords.md' + - 'productivity.md' + - 'real-time-communication.md' + - 'video-streaming.md' + - 作業系統: + - 'android.md' + - 'desktop.md' + - 'router.md' + - 關於: + - 'about/index.md' + - 'about/criteria.md' + - 'about/statistics.md' + - 'about/notices.md' + - 'about/privacy-policy.md' + - 社群: + - 'about/donate.md' + - 線上服務: 'about/services.md' + - 行為守則: 'CODE_OF_CONDUCT.md' + - 'about/privacytools.md' + - 貢獻: + - 寫作指南: + - 'meta/writing-style.md' + - 'meta/brand.md' + - 技術指導: + - 'meta/uploading-images.md' + - 'meta/git-recommendations.md' + - 變更記錄: 'https://github.com/privacyguides/privacyguides.org/releases' + - 論壇: 'https://discuss.privacyguides.net/' + - 部落格: 'https://blog.privacyguides.org/' diff --git a/netlify.toml b/netlify.toml index 05eb156d8f..fe4f63c551 100644 --- a/netlify.toml +++ b/netlify.toml @@ -73,6 +73,11 @@ to = "/i18n/404.nl.html" status = 404 +[[redirects]] + from = "/zh-tw/*" + to = "/zh-tw/404/index.html" + status = 404 + [[redirects]] from = "/*" to = "/i18n/404.en.html" diff --git a/static/_redirects b/static/_redirects index f605e6e4ac..f7f4eda9d3 100644 --- a/static/_redirects +++ b/static/_redirects @@ -18,13 +18,14 @@ # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS # IN THE SOFTWARE. -/ /en/ 302 Language=en -/ /es/ 302 Language=es -/ /fr/ 302 Language=fr -/ /he/ 302 Language=he -/ /it/ 302 Language=it -/ /nl/ 302 Language=nl -/ /en/ 302 +/ /en/ 302 Language=en +/ /es/ 302 Language=es +/ /fr/ 302 Language=fr +/ /he/ 302 Language=he +/ /it/ 302 Language=it +/ /nl/ 302 Language=nl +/ /zh-tw/ 302 Language=zh-tw +/ /en/ 302 /.well-known/matrix/* https://matrix.privacyguides.org/.well-known/matrix/:splat 200 /.well-known/* /well-known/:splat 200