Modifica InContext por PageContext y PageOp
This commit is contained in:
parent
de0785c29f
commit
31daf11faa
30 changed files with 149 additions and 133 deletions
|
|
@ -59,32 +59,32 @@ async fn mdbook_page(request: app::HttpRequest) -> ResultPage<Markup, FatalError
|
|||
|
||||
Page::new()
|
||||
.with_title(title)
|
||||
.with_context(InContextOp::AddMetadata("theme-color", "#ffffff"))
|
||||
.with_context(InContextOp::AddStyleSheet(
|
||||
.with_context(PageOp::AddMetadata("theme-color", "#ffffff"))
|
||||
.with_context(PageOp::AddStyleSheet(
|
||||
StyleSheet::located("/doc/css/variables.css")
|
||||
))
|
||||
.with_context(InContextOp::AddStyleSheet(
|
||||
.with_context(PageOp::AddStyleSheet(
|
||||
StyleSheet::located("/doc/css/general.css")
|
||||
))
|
||||
.with_context(InContextOp::AddStyleSheet(
|
||||
.with_context(PageOp::AddStyleSheet(
|
||||
StyleSheet::located("/doc/css/chrome.css")
|
||||
))
|
||||
.with_context(InContextOp::AddStyleSheet(
|
||||
.with_context(PageOp::AddStyleSheet(
|
||||
StyleSheet::located("/doc/css/print.css").for_media(TargetMedia::Print)
|
||||
))
|
||||
.with_context(InContextOp::AddStyleSheet(
|
||||
.with_context(PageOp::AddStyleSheet(
|
||||
StyleSheet::located("/doc/FontAwesome/css/font-awesome.css")
|
||||
))
|
||||
.with_context(InContextOp::AddStyleSheet(
|
||||
.with_context(PageOp::AddStyleSheet(
|
||||
StyleSheet::located("/doc/fonts/fonts.css")
|
||||
))
|
||||
.with_context(InContextOp::AddStyleSheet(
|
||||
.with_context(PageOp::AddStyleSheet(
|
||||
StyleSheet::located("/doc/highlight.css")
|
||||
))
|
||||
.with_context(InContextOp::AddStyleSheet(
|
||||
.with_context(PageOp::AddStyleSheet(
|
||||
StyleSheet::located("/doc/tomorrow-night.css")
|
||||
))
|
||||
.with_context(InContextOp::AddStyleSheet(
|
||||
.with_context(PageOp::AddStyleSheet(
|
||||
StyleSheet::located("/doc/ayu-highlight.css")
|
||||
))
|
||||
.add_to(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue