Skip to content

Commit 89329d4

Browse files
committed
Remove Pontoon
1 parent 43cafbc commit 89329d4

File tree

3 files changed

+1
-8
lines changed

3 files changed

+1
-8
lines changed

src/main.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ mod render;
1919
mod rust_version;
2020
mod teams;
2121

22-
static PONTOON_ENABLED: bool = false;
23-
2422
const ZULIP_DOMAIN: &str = "https://rust-lang.zulipchat.com";
2523

2624
static LAYOUT: &str = "components/layout";

src/render.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use crate::fs::{copy_dir_all, ensure_directory};
33
use crate::i18n::{EXPLICIT_LOCALE_INFO, LocaleInfo, SUPPORTED_LOCALES};
44
use crate::rust_version::RustVersion;
55
use crate::teams::{PageData, RustTeams};
6-
use crate::{BaseUrl, ENGLISH, LAYOUT, PONTOON_ENABLED};
6+
use crate::{BaseUrl, ENGLISH, LAYOUT};
77
use anyhow::Context;
88
use handlebars::Handlebars;
99
use handlebars_fluent::{Loader, SimpleLoader};
@@ -22,7 +22,6 @@ pub struct TemplateCtx<'a, T: Serialize> {
2222
data: &'a T,
2323
lang: String,
2424
baseurl: String,
25-
pontoon_enabled: bool,
2625
assets: &'a AssetFiles,
2726
locales: &'static [LocaleInfo],
2827
is_translation: bool,
@@ -99,7 +98,6 @@ impl<'a> RenderCtx<'a> {
9998
baseurl: self.base_url.resolve(lang),
10099
is_translation: lang != ENGLISH,
101100
lang: lang.to_string(),
102-
pontoon_enabled: PONTOON_ENABLED,
103101
assets: &self.assets,
104102
locales: EXPLICIT_LOCALE_INFO,
105103
},

templates/components/layout.html.hbs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,6 @@
6363
{{~> page}}
6464
</main>
6565
{{> components/footer}}
66-
{{#if pontoon_enabled}}
67-
<script src="https://pontoon.rust-lang.org/pontoon.js"></script>
68-
{{/if}}
6966
<script src="{{baseurl}}/static/scripts/languages.js"></script>
7067
</body>
7168
</html>

0 commit comments

Comments
 (0)