about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-01-19 19:19:49 +0100
committerGitHub <noreply@github.com>2022-01-19 19:19:49 +0100
commit623791df240d99cfb60aae57bdd65f002a9324ad (patch)
treeb176f400811e65a34a73eda31e360811e796881f
parentbcb093efcda31874d73184a15fc04d427b844c50 (diff)
parent48f5dcad104dd4dd58b8852cb6147abb4179b3b1 (diff)
downloadrust-623791df240d99cfb60aae57bdd65f002a9324ad.tar.gz
rust-623791df240d99cfb60aae57bdd65f002a9324ad.zip
Rollup merge of #93005 - GuillaumeGomez:templates-in-html, r=notriddle
Move back templates into html folder

Follow-up of https://github.com/rust-lang/rust/pull/92526.

r? `@notriddle`
-rw-r--r--Cargo.lock2
-rw-r--r--src/librustdoc/Cargo.toml2
-rw-r--r--src/librustdoc/askama.toml2
-rw-r--r--src/librustdoc/html/templates/STYLE.md (renamed from src/librustdoc/templates/STYLE.md)0
-rw-r--r--src/librustdoc/html/templates/page.html (renamed from src/librustdoc/templates/page.html)0
-rw-r--r--src/librustdoc/html/templates/print_item.html (renamed from src/librustdoc/templates/print_item.html)0
6 files changed, 5 insertions, 1 deletions
diff --git a/Cargo.lock b/Cargo.lock
index 73ffd3e044e..a7496e61b8b 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -152,7 +152,9 @@ dependencies = [
  "nom",
  "proc-macro2",
  "quote",
+ "serde",
  "syn",
+ "toml",
 ]
 
 [[package]]
diff --git a/src/librustdoc/Cargo.toml b/src/librustdoc/Cargo.toml
index ccb844cd10b..67d167e86df 100644
--- a/src/librustdoc/Cargo.toml
+++ b/src/librustdoc/Cargo.toml
@@ -8,7 +8,7 @@ path = "lib.rs"
 
 [dependencies]
 arrayvec = { version = "0.7", default-features = false }
-askama = { version = "0.11", default-features = false }
+askama = { version = "0.11", default-features = false, features = ["config"] }
 atty = "0.2"
 pulldown-cmark = { version = "0.9", default-features = false }
 minifier = "0.0.41"
diff --git a/src/librustdoc/askama.toml b/src/librustdoc/askama.toml
new file mode 100644
index 00000000000..0c984f637ba
--- /dev/null
+++ b/src/librustdoc/askama.toml
@@ -0,0 +1,2 @@
+[general]
+dirs = ["html/templates"]
diff --git a/src/librustdoc/templates/STYLE.md b/src/librustdoc/html/templates/STYLE.md
index fff65e3b5ff..fff65e3b5ff 100644
--- a/src/librustdoc/templates/STYLE.md
+++ b/src/librustdoc/html/templates/STYLE.md
diff --git a/src/librustdoc/templates/page.html b/src/librustdoc/html/templates/page.html
index 1322b854b7f..1322b854b7f 100644
--- a/src/librustdoc/templates/page.html
+++ b/src/librustdoc/html/templates/page.html
diff --git a/src/librustdoc/templates/print_item.html b/src/librustdoc/html/templates/print_item.html
index 459b01a9960..459b01a9960 100644
--- a/src/librustdoc/templates/print_item.html
+++ b/src/librustdoc/html/templates/print_item.html