diff --git a/second-edition/book.toml b/second-edition/book.toml index 9789a435c..a55720163 100644 --- a/second-edition/book.toml +++ b/second-edition/book.toml @@ -1,3 +1,6 @@ [book] title = "The Rust Programming Language" author = "Steve Klabnik and Carol Nichols, with Contributions from the Rust Community" + +[output.html] +additional-css = ["theme/notice.css"] diff --git a/second-edition/theme/header.hbs b/second-edition/theme/header.hbs new file mode 100644 index 000000000..1c65b8f86 --- /dev/null +++ b/second-edition/theme/header.hbs @@ -0,0 +1,5 @@ +
+

+ 注意: 最新版のドキュメントをご覧ください。この第2版ドキュメントは古くなっており、最新情報が反映されていません。リンク先のドキュメントが現在の Rust の最新のドキュメントです。 +

+
diff --git a/second-edition/theme/notice.css b/second-edition/theme/notice.css new file mode 100644 index 000000000..44d791128 --- /dev/null +++ b/second-edition/theme/notice.css @@ -0,0 +1,29 @@ +.ayu .header-notice { + border-top: 1px solid #492b2d; + border-bottom: 1px solid #492b2d; + background-color: #492b2d; +} + +.coal .header-notice { + border-top: 1px solid #552e28; + border-bottom: 1px solid #552e28; + background-color: #552e28; +} + +.light .header-notice { + border-top: 1px solid #f0e1e1; + border-bottom: 1px solid #f0e1e1; + background-color: #f0e1e1; +} + +.navy .header-notice { + border-top: 1px solid #492b2d; + border-bottom: 1px solid #492b2d; + background-color: #492b2d; +} + +.rust .header-notice { + border-top: 1px solid #b9897f; + border-bottom: 1px solid #b9897f; + background-color: #b9897f; +}