Skip to content

Commit

Permalink
refactor(website): 👽️ updated website for 0.3.0-beta.14
Browse files Browse the repository at this point in the history
Also temporarily disabled the size optimizations plugin until tinker-only plugins are fixed.
  • Loading branch information
arctic-hen7 committed Oct 30, 2021
1 parent 96bf216 commit 71b6f42
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions website/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ readme = "./README.md"

[dependencies]
# We use the current version of Perseus, not the local one
perseus = "0.3.0-beta.13"
perseus = { version = "0.3.0-beta.14", features = [ "translator-fluent" ] }
sycamore = "0.6"
sycamore-router = "0.6"
serde = "1"
Expand All @@ -24,4 +24,4 @@ pulldown-cmark = "0.8"
lazy_static = "1"
web-sys = { version = "0.3", features = [ "Event", "EventTarget" ] }
wasm-bindgen = "0.2"
perseus-size-opt = "0.1"
# perseus-size-opt = "0.1"
2 changes: 1 addition & 1 deletion website/src/components/features_list.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use perseus::link;
use perseus::template::RenderCtx;
use perseus::templates::RenderCtx;
use sycamore::context::use_context;
use sycamore::prelude::*;
use sycamore::template::Template as SycamoreTemplate;
Expand Down
8 changes: 4 additions & 4 deletions website/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ mod components;
mod error_pages;
mod templates;

use perseus::{define_app, plugins::Plugins};
use perseus_size_opt::{perseus_size_opt, SizeOpts};
use perseus::define_app;
// use perseus_size_opt::{perseus_size_opt, SizeOpts};

define_app! {
templates: [
Expand All @@ -15,6 +15,6 @@ define_app! {
locales: {
default: "en-US",
other: []
},
plugins: Plugins::new().plugin(perseus_size_opt(), SizeOpts::default())
}
// plugins: Plugins::new().plugin(perseus_size_opt(), SizeOpts::default())
}
2 changes: 1 addition & 1 deletion website/src/templates/docs/container.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ fn docs_version_switcher(props: DocsVersionSwitcherProps) -> SycamoreTemplate<G>

template! {
({
locale.set(use_context::<perseus::template::RenderCtx>().translator.get_locale());
locale.set(use_context::<perseus::templates::RenderCtx>().translator.get_locale());
SycamoreTemplate::empty()
})

Expand Down
2 changes: 1 addition & 1 deletion website/src/templates/docs/generation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use crate::templates::docs::get_file_at_version::get_file_at_version;
use crate::templates::docs::icons::{ERROR_ICON, WARNING_ICON};
use crate::templates::docs::template::DocsPageProps;
use lazy_static::lazy_static;
use perseus::{path_prefix::get_path_prefix_server, t, RenderFnResult, RenderFnResultWithCause};
use perseus::{internal::get_path_prefix_server, t, RenderFnResult, RenderFnResultWithCause};
use pulldown_cmark::{html, Options, Parser};
use serde::{Deserialize, Serialize};
use std::collections::HashMap;
Expand Down

0 comments on commit 71b6f42

Please sign in to comment.