From 2c562d1e5b09d2f3f70df2acd21de0fde6647518 Mon Sep 17 00:00:00 2001 From: Philip Eriksson <12006381+phieri@users.noreply.github.com> Date: Tue, 7 Mar 2023 22:36:59 +0100 Subject: [PATCH] HTML changes to languages (#461) * Move language tag to root * Add language tag to changelog example --- source/ar/1.0.0/index.html.haml | 2 +- source/cs/1.0.0/index.html.haml | 2 +- source/da/1.1.0/index.html.haml | 2 +- source/de/1.0.0/index.html.haml | 2 +- source/en/1.0.0/index.html.haml | 2 +- source/en/1.1.0/index.html.haml | 2 +- source/es-ES/1.0.0/index.html.haml | 2 +- source/fa-IR/1.0.0/index.html.haml | 2 +- source/fr/1.0.0/index.html.haml | 2 +- source/fr/1.1.0/index.html.haml | 2 +- source/hr/1.0.0/index.html.haml | 2 +- source/id-ID/1.0.0/index.html.haml | 2 +- source/it-IT/1.0.0/index.html.haml | 2 +- source/ja/1.0.0/index.html.haml | 2 +- source/ja/1.1.0/index.html.haml | 2 +- source/ka/1.0.0/index.html.haml | 2 +- source/ko/1.0.0/index.html.haml | 2 +- source/layouts/layout.html.haml | 4 ++-- source/nb/1.1.0/index.html.haml | 2 +- source/nl/1.0.0/index.html.haml | 2 +- source/nl/1.1.0/index.html.haml | 2 +- source/pl/1.0.0/index.html.haml | 2 +- source/pt-BR/1.0.0/index.html.haml | 2 +- source/ru/1.0.0/index.html.haml | 2 +- source/ru/1.1.0/index.html.haml | 2 +- source/sk/1.0.0/index.html.haml | 2 +- source/sr/1.0.0/index.html.haml | 2 +- source/sv/1.0.0/index.html.haml | 2 +- source/tr-TR/1.0.0/index.html.haml | 2 +- source/tr-TR/1.1.0/index.html.haml | 2 +- source/uk/1.0.0/index.html.haml | 2 +- source/zh-CN/1.0.0/index.html.haml | 2 +- source/zh-TW/1.0.0/index.html.haml | 2 +- 33 files changed, 34 insertions(+), 34 deletions(-) diff --git a/source/ar/1.0.0/index.html.haml b/source/ar/1.0.0/index.html.haml index 5c2e9e1..cf6df48 100644 --- a/source/ar/1.0.0/index.html.haml +++ b/source/ar/1.0.0/index.html.haml @@ -24,7 +24,7 @@ p.yanked {direction:ltr;text-align:right} Version %strong= current_page.metadata[:page][:version] - %pre.changelog= File.read("CHANGELOG.md") + %pre.changelog{ lang: en }= File.read("CHANGELOG.md") .answers %h3#what diff --git a/source/cs/1.0.0/index.html.haml b/source/cs/1.0.0/index.html.haml index 02bdab9..513d23f 100644 --- a/source/cs/1.0.0/index.html.haml +++ b/source/cs/1.0.0/index.html.haml @@ -13,7 +13,7 @@ version: 1.0.0 Verze %strong= current_page.metadata[:page][:version] - %pre.changelog= File.read("CHANGELOG.md") + %pre.changelog{ lang: en }= File.read("CHANGELOG.md") .answers %h3#what diff --git a/source/da/1.1.0/index.html.haml b/source/da/1.1.0/index.html.haml index f9ec065..709978d 100644 --- a/source/da/1.1.0/index.html.haml +++ b/source/da/1.1.0/index.html.haml @@ -13,7 +13,7 @@ version: 1.1.0 Version %strong= current_page.metadata[:page][:version] - %pre.changelog= File.read("CHANGELOG.md") + %pre.changelog{ lang: en }= File.read("CHANGELOG.md") .answers %h3#what diff --git a/source/de/1.0.0/index.html.haml b/source/de/1.0.0/index.html.haml index a47be39..c9b8262 100644 --- a/source/de/1.0.0/index.html.haml +++ b/source/de/1.0.0/index.html.haml @@ -13,7 +13,7 @@ version: 1.0.0 Version %strong= current_page.metadata[:page][:version] - %pre.changelog= File.read("CHANGELOG.md") + %pre.changelog{ lang: en }= File.read("CHANGELOG.md") .answers %h3#what diff --git a/source/en/1.0.0/index.html.haml b/source/en/1.0.0/index.html.haml index 16c36ee..ce69750 100644 --- a/source/en/1.0.0/index.html.haml +++ b/source/en/1.0.0/index.html.haml @@ -13,7 +13,7 @@ version: 1.0.0 Version %strong= current_page.metadata[:page][:version] - %pre.changelog= File.read("CHANGELOG.md") + %pre.changelog{ lang: en }= File.read("CHANGELOG.md") .answers %h3#what diff --git a/source/en/1.1.0/index.html.haml b/source/en/1.1.0/index.html.haml index 792e738..209b38d 100644 --- a/source/en/1.1.0/index.html.haml +++ b/source/en/1.1.0/index.html.haml @@ -13,7 +13,7 @@ version: 1.1.0 Version %strong= current_page.metadata[:page][:version] - %pre.changelog= File.read("CHANGELOG.md") + %pre.changelog{ lang: en }= File.read("CHANGELOG.md") .answers %h3#what diff --git a/source/es-ES/1.0.0/index.html.haml b/source/es-ES/1.0.0/index.html.haml index a4ef4d8..ad855a1 100644 --- a/source/es-ES/1.0.0/index.html.haml +++ b/source/es-ES/1.0.0/index.html.haml @@ -14,7 +14,7 @@ version: 1.0.0 Versión %strong= current_page.metadata[:page][:version] - %pre.changelog= File.read("CHANGELOG.md") + %pre.changelog{ lang: en }= File.read("CHANGELOG.md") .answers %h3#what diff --git a/source/fa-IR/1.0.0/index.html.haml b/source/fa-IR/1.0.0/index.html.haml index 06fc295..c6049c3 100644 --- a/source/fa-IR/1.0.0/index.html.haml +++ b/source/fa-IR/1.0.0/index.html.haml @@ -21,7 +21,7 @@ pre {direction:ltr;text-align:left} Version %strong= current_page.metadata[:page][:version] - %pre.changelog= File.read("CHANGELOG.md") + %pre.changelog{ lang: en }= File.read("CHANGELOG.md") .answers %h3#what diff --git a/source/fr/1.0.0/index.html.haml b/source/fr/1.0.0/index.html.haml index 7b45de4..4c94d32 100644 --- a/source/fr/1.0.0/index.html.haml +++ b/source/fr/1.0.0/index.html.haml @@ -13,7 +13,7 @@ version: 1.0.0 Version %strong= current_page.metadata[:page][:version] - %pre.changelog= File.read("CHANGELOG.md") + %pre.changelog{ lang: en }= File.read("CHANGELOG.md") .answers %h3#what diff --git a/source/fr/1.1.0/index.html.haml b/source/fr/1.1.0/index.html.haml index 2884f96..2e0e1a7 100644 --- a/source/fr/1.1.0/index.html.haml +++ b/source/fr/1.1.0/index.html.haml @@ -13,7 +13,7 @@ version: 1.0.0 Version %strong= current_page.metadata[:page][:version] - %pre.changelog= File.read("CHANGELOG.md") + %pre.changelog{ lang: en }= File.read("CHANGELOG.md") .answers %h3#what diff --git a/source/hr/1.0.0/index.html.haml b/source/hr/1.0.0/index.html.haml index 74bdd66..df37645 100644 --- a/source/hr/1.0.0/index.html.haml +++ b/source/hr/1.0.0/index.html.haml @@ -13,7 +13,7 @@ version: 1.0.0 Verzija %strong= current_page.metadata[:page][:version] - %pre.changelog= File.read("CHANGELOG.md") + %pre.changelog{ lang: en }= File.read("CHANGELOG.md") .answers %h3#what diff --git a/source/id-ID/1.0.0/index.html.haml b/source/id-ID/1.0.0/index.html.haml index 6c8614d..16c4964 100644 --- a/source/id-ID/1.0.0/index.html.haml +++ b/source/id-ID/1.0.0/index.html.haml @@ -13,7 +13,7 @@ version: 1.0.0 Versi %strong= current_page.metadata[:page][:version] - %pre.changelog= File.read("CHANGELOG.md") + %pre.changelog{ lang: en }= File.read("CHANGELOG.md") .answers %h3#what diff --git a/source/it-IT/1.0.0/index.html.haml b/source/it-IT/1.0.0/index.html.haml index d0e261a..8cae800 100644 --- a/source/it-IT/1.0.0/index.html.haml +++ b/source/it-IT/1.0.0/index.html.haml @@ -13,7 +13,7 @@ version: 1.0.0 Versione %strong= current_page.metadata[:page][:version] - %pre.changelog= File.read("CHANGELOG.md") + %pre.changelog{ lang: en }= File.read("CHANGELOG.md") .answers %h3#what diff --git a/source/ja/1.0.0/index.html.haml b/source/ja/1.0.0/index.html.haml index 92341e7..7b0d657 100644 --- a/source/ja/1.0.0/index.html.haml +++ b/source/ja/1.0.0/index.html.haml @@ -13,7 +13,7 @@ version: 1.0.0 Version %strong= current_page.metadata[:page][:version] - %pre.changelog= File.read("CHANGELOG.md") + %pre.changelog{ lang: en }= File.read("CHANGELOG.md") .answers %h3#what diff --git a/source/ja/1.1.0/index.html.haml b/source/ja/1.1.0/index.html.haml index b778392..54ce1e4 100644 --- a/source/ja/1.1.0/index.html.haml +++ b/source/ja/1.1.0/index.html.haml @@ -13,7 +13,7 @@ version: 1.1.0 Version %strong= current_page.metadata[:page][:version] - %pre.changelog= File.read("CHANGELOG.md") + %pre.changelog{ lang: en }= File.read("CHANGELOG.md") .answers %h3#what diff --git a/source/ka/1.0.0/index.html.haml b/source/ka/1.0.0/index.html.haml index 36390ba..ea5b0f2 100644 --- a/source/ka/1.0.0/index.html.haml +++ b/source/ka/1.0.0/index.html.haml @@ -13,7 +13,7 @@ version: 1.0.0 Version %strong= current_page.metadata[:page][:version] - %pre.changelog= File.read("CHANGELOG.md") + %pre.changelog{ lang: en }= File.read("CHANGELOG.md") .answers %h3#what diff --git a/source/ko/1.0.0/index.html.haml b/source/ko/1.0.0/index.html.haml index e0a46f6..381a252 100644 --- a/source/ko/1.0.0/index.html.haml +++ b/source/ko/1.0.0/index.html.haml @@ -13,7 +13,7 @@ version: 1.0.0 Version %strong= current_page.metadata[:page][:version] - %pre.changelog= File.read("CHANGELOG.md") + %pre.changelog{ lang: en }= File.read("CHANGELOG.md") .answers %h3#what diff --git a/source/layouts/layout.html.haml b/source/layouts/layout.html.haml index d513654..4409d2d 100644 --- a/source/layouts/layout.html.haml +++ b/source/layouts/layout.html.haml @@ -7,8 +7,8 @@ - newer_version_available = File.exist?("source/#{language_code}/#{$last_version}") !!! 5 -%html - %head{ lang: current_page.data.language } +%html{ lang: current_page.data.language } + %head %meta{ charset: 'utf-8' } %meta{ content: 'IE=edge', 'http-equiv' => 'X-UA-Compatible' } %meta{ name: 'viewport', content: 'width=device-width, initial-scale=1.0' } diff --git a/source/nb/1.1.0/index.html.haml b/source/nb/1.1.0/index.html.haml index 8d39361..4843b86 100644 --- a/source/nb/1.1.0/index.html.haml +++ b/source/nb/1.1.0/index.html.haml @@ -13,7 +13,7 @@ version: 1.1.0 Versjon %strong= current_page.metadata[:page][:version] - %pre.changelog= File.read("CHANGELOG.md") + %pre.changelog{ lang: en }= File.read("CHANGELOG.md") .answers %h3#what diff --git a/source/nl/1.0.0/index.html.haml b/source/nl/1.0.0/index.html.haml index df24211..799320c 100644 --- a/source/nl/1.0.0/index.html.haml +++ b/source/nl/1.0.0/index.html.haml @@ -13,7 +13,7 @@ version: 1.0.0 Versie %strong= current_page.metadata[:page][:version] - %pre.changelog= File.read("CHANGELOG.md") + %pre.changelog{ lang: en }= File.read("CHANGELOG.md") .answers %h3#what diff --git a/source/nl/1.1.0/index.html.haml b/source/nl/1.1.0/index.html.haml index 8a83b30..cc77667 100644 --- a/source/nl/1.1.0/index.html.haml +++ b/source/nl/1.1.0/index.html.haml @@ -13,7 +13,7 @@ version: 1.1.0 Versie %strong= current_page.metadata[:page][:version] - %pre.changelog= File.read("CHANGELOG.md") + %pre.changelog{ lang: en }= File.read("CHANGELOG.md") .answers %h3#what diff --git a/source/pl/1.0.0/index.html.haml b/source/pl/1.0.0/index.html.haml index 352cf5e..7bf4a89 100644 --- a/source/pl/1.0.0/index.html.haml +++ b/source/pl/1.0.0/index.html.haml @@ -13,7 +13,7 @@ version: 1.0.0 Wersja %strong= current_page.metadata[:page][:version] - %pre.changelog= File.read("CHANGELOG.md") + %pre.changelog{ lang: en }= File.read("CHANGELOG.md") .answers %h3#what diff --git a/source/pt-BR/1.0.0/index.html.haml b/source/pt-BR/1.0.0/index.html.haml index f44764b..3e9412e 100644 --- a/source/pt-BR/1.0.0/index.html.haml +++ b/source/pt-BR/1.0.0/index.html.haml @@ -13,7 +13,7 @@ version: 1.0.0 Version %strong= current_page.metadata[:page][:version] - %pre.changelog= File.read("CHANGELOG.md") + %pre.changelog{ lang: en }= File.read("CHANGELOG.md") .answers %h3#what diff --git a/source/ru/1.0.0/index.html.haml b/source/ru/1.0.0/index.html.haml index d7a593e..ee6c479 100644 --- a/source/ru/1.0.0/index.html.haml +++ b/source/ru/1.0.0/index.html.haml @@ -13,7 +13,7 @@ version: 1.0.0 Version %strong= current_page.metadata[:page][:version] - %pre.changelog= File.read("CHANGELOG.md") + %pre.changelog{ lang: en }= File.read("CHANGELOG.md") .answers %h3#what diff --git a/source/ru/1.1.0/index.html.haml b/source/ru/1.1.0/index.html.haml index 8cf1b8c..e55ebff 100644 --- a/source/ru/1.1.0/index.html.haml +++ b/source/ru/1.1.0/index.html.haml @@ -13,7 +13,7 @@ version: 1.1.0 Version %strong= current_page.metadata[:page][:version] - %pre.changelog= File.read("CHANGELOG.md") + %pre.changelog{ lang: en }= File.read("CHANGELOG.md") .answers %h3#what diff --git a/source/sk/1.0.0/index.html.haml b/source/sk/1.0.0/index.html.haml index 80c2b38..ea7feb1 100644 --- a/source/sk/1.0.0/index.html.haml +++ b/source/sk/1.0.0/index.html.haml @@ -13,7 +13,7 @@ version: 1.0.0 Verzia %strong= current_page.metadata[:page][:version] - %pre.changelog= File.read("CHANGELOG.md") + %pre.changelog{ lang: en }= File.read("CHANGELOG.md") .answers %h3#what diff --git a/source/sr/1.0.0/index.html.haml b/source/sr/1.0.0/index.html.haml index 9c25209..460445d 100644 --- a/source/sr/1.0.0/index.html.haml +++ b/source/sr/1.0.0/index.html.haml @@ -13,7 +13,7 @@ version: 1.0.0 Verzija %strong= current_page.metadata[:page][:version] - %pre.changelog= File.read("CHANGELOG.md") + %pre.changelog{ lang: en }= File.read("CHANGELOG.md") .answers %h3#what diff --git a/source/sv/1.0.0/index.html.haml b/source/sv/1.0.0/index.html.haml index 7483f9e..64b02a8 100644 --- a/source/sv/1.0.0/index.html.haml +++ b/source/sv/1.0.0/index.html.haml @@ -13,7 +13,7 @@ version: 1.0.0 Version %strong= current_page.metadata[:page][:version] - %pre.changelog= File.read("CHANGELOG.md") + %pre.changelog{ lang: en }= File.read("CHANGELOG.md") .answers %h3#what diff --git a/source/tr-TR/1.0.0/index.html.haml b/source/tr-TR/1.0.0/index.html.haml index f94d6f7..9b583df 100644 --- a/source/tr-TR/1.0.0/index.html.haml +++ b/source/tr-TR/1.0.0/index.html.haml @@ -13,7 +13,7 @@ version: 1.0.0 Version %strong= current_page.metadata[:page][:version] - %pre.changelog= File.read("CHANGELOG.md") + %pre.changelog{ lang: en }= File.read("CHANGELOG.md") .answers %h3#what diff --git a/source/tr-TR/1.1.0/index.html.haml b/source/tr-TR/1.1.0/index.html.haml index f4fe517..43089ee 100644 --- a/source/tr-TR/1.1.0/index.html.haml +++ b/source/tr-TR/1.1.0/index.html.haml @@ -13,7 +13,7 @@ version: 1.1.0 Version %strong= current_page.metadata[:page][:version] - %pre.changelog= File.read("CHANGELOG.md") + %pre.changelog{ lang: en }= File.read("CHANGELOG.md") .answers %h3#what diff --git a/source/uk/1.0.0/index.html.haml b/source/uk/1.0.0/index.html.haml index 7041271..6733ceb 100644 --- a/source/uk/1.0.0/index.html.haml +++ b/source/uk/1.0.0/index.html.haml @@ -13,7 +13,7 @@ version: 1.0.0 Version %strong= current_page.metadata[:page][:version] - %pre.changelog= File.read("CHANGELOG.md") + %pre.changelog{ lang: en }= File.read("CHANGELOG.md") .answers %h3#what diff --git a/source/zh-CN/1.0.0/index.html.haml b/source/zh-CN/1.0.0/index.html.haml index c5e4cf4..cb9dfe4 100644 --- a/source/zh-CN/1.0.0/index.html.haml +++ b/source/zh-CN/1.0.0/index.html.haml @@ -13,7 +13,7 @@ version: 1.0.0 Version %strong= current_page.metadata[:page][:version] - %pre.changelog= File.read("CHANGELOG.md") + %pre.changelog{ lang: en }= File.read("CHANGELOG.md") .answers %h3#what diff --git a/source/zh-TW/1.0.0/index.html.haml b/source/zh-TW/1.0.0/index.html.haml index e06ff43..8ae991e 100644 --- a/source/zh-TW/1.0.0/index.html.haml +++ b/source/zh-TW/1.0.0/index.html.haml @@ -13,7 +13,7 @@ version: 1.0.0 Version %strong= current_page.metadata[:page][:version] - %pre.changelog= File.read("CHANGELOG.md") + %pre.changelog{ lang: en }= File.read("CHANGELOG.md") .answers %h3#what