about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume.gomez@huawei.com>2022-01-17 17:36:39 +0100
committerGuillaume Gomez <guillaume.gomez@huawei.com>2022-01-19 11:13:24 +0100
commit48f5dcad104dd4dd58b8852cb6147abb4179b3b1 (patch)
tree13d833f05f17c364e58b7753fe70da3b74d5f1a0
parent2f004d2d401682e553af3984ebd9a3976885e752 (diff)
downloadrust-48f5dcad104dd4dd58b8852cb6147abb4179b3b1.tar.gz
rust-48f5dcad104dd4dd58b8852cb6147abb4179b3b1.zip
Move back templates into html folder
-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