From 951b0288aa65c589909bfc7dd94024c6ad1382ae Mon Sep 17 00:00:00 2001 From: Mike Rogers Date: Sat, 6 Mar 2021 17:35:49 +0000 Subject: [PATCH] Adding viewport to views --- lib/rdoc/generator/template/merge/index.rhtml | 2 +- lib/rdoc/generator/template/rails/class.rhtml | 1 + lib/rdoc/generator/template/rails/file.rhtml | 1 + lib/rdoc/generator/template/rails/index.rhtml | 1 + lib/rdoc/generator/template/rails/search_index.rhtml | 1 + lib/rdoc/generator/template/sdoc/class.rhtml | 1 + lib/rdoc/generator/template/sdoc/file.rhtml | 1 + lib/rdoc/generator/template/sdoc/index.rhtml | 1 + lib/rdoc/generator/template/sdoc/resources/panel/index.html | 1 + lib/rdoc/generator/template/sdoc/search_index.rhtml | 1 + 10 files changed, 10 insertions(+), 1 deletion(-) diff --git a/lib/rdoc/generator/template/merge/index.rhtml b/lib/rdoc/generator/template/merge/index.rhtml index 8def9aca..d4eeaa4b 100644 --- a/lib/rdoc/generator/template/merge/index.rhtml +++ b/lib/rdoc/generator/template/merge/index.rhtml @@ -2,8 +2,8 @@ - <%= @title %> + diff --git a/lib/rdoc/generator/template/rails/class.rhtml b/lib/rdoc/generator/template/rails/class.rhtml index 0e1a50cb..80f62135 100644 --- a/lib/rdoc/generator/template/rails/class.rhtml +++ b/lib/rdoc/generator/template/rails/class.rhtml @@ -3,6 +3,7 @@ <%= h klass.full_name %> + <%= include_template '_head.rhtml', {:rel_prefix => rel_prefix, :tree_keys => klass.full_name.split('::') } %> diff --git a/lib/rdoc/generator/template/rails/file.rhtml b/lib/rdoc/generator/template/rails/file.rhtml index fd37956a..04431f90 100644 --- a/lib/rdoc/generator/template/rails/file.rhtml +++ b/lib/rdoc/generator/template/rails/file.rhtml @@ -3,6 +3,7 @@ <%= h file.name %> + <%= include_template '_head.rhtml', {:rel_prefix => rel_prefix, :tree_keys => [] } %> diff --git a/lib/rdoc/generator/template/rails/index.rhtml b/lib/rdoc/generator/template/rails/index.rhtml index bf7d58a8..a3b386e8 100644 --- a/lib/rdoc/generator/template/rails/index.rhtml +++ b/lib/rdoc/generator/template/rails/index.rhtml @@ -3,6 +3,7 @@ <%= @options.title %> + <%= include_template '_head.rhtml', {:rel_prefix => rel_prefix, tree_keys: []} %> diff --git a/lib/rdoc/generator/template/rails/search_index.rhtml b/lib/rdoc/generator/template/rails/search_index.rhtml index 7ec9a131..5918a1f0 100644 --- a/lib/rdoc/generator/template/rails/search_index.rhtml +++ b/lib/rdoc/generator/template/rails/search_index.rhtml @@ -2,6 +2,7 @@ File Index + <% @files.each do |file| %> diff --git a/lib/rdoc/generator/template/sdoc/class.rhtml b/lib/rdoc/generator/template/sdoc/class.rhtml index b6aa5172..f55c64c8 100644 --- a/lib/rdoc/generator/template/sdoc/class.rhtml +++ b/lib/rdoc/generator/template/sdoc/class.rhtml @@ -3,6 +3,7 @@ <%= h klass.full_name %> + <%= include_template '_head.rhtml', {:rel_prefix => rel_prefix} %> diff --git a/lib/rdoc/generator/template/sdoc/file.rhtml b/lib/rdoc/generator/template/sdoc/file.rhtml index e9d5ef0d..f2be01fd 100644 --- a/lib/rdoc/generator/template/sdoc/file.rhtml +++ b/lib/rdoc/generator/template/sdoc/file.rhtml @@ -3,6 +3,7 @@ <%= h file.name %> + <%= include_template '_head.rhtml', {:rel_prefix => rel_prefix} %> diff --git a/lib/rdoc/generator/template/sdoc/index.rhtml b/lib/rdoc/generator/template/sdoc/index.rhtml index 8800a46a..889f1a5d 100644 --- a/lib/rdoc/generator/template/sdoc/index.rhtml +++ b/lib/rdoc/generator/template/sdoc/index.rhtml @@ -3,6 +3,7 @@ <%= @options.title %> + diff --git a/lib/rdoc/generator/template/sdoc/resources/panel/index.html b/lib/rdoc/generator/template/sdoc/resources/panel/index.html index b853e2c8..a5698dcd 100644 --- a/lib/rdoc/generator/template/sdoc/resources/panel/index.html +++ b/lib/rdoc/generator/template/sdoc/resources/panel/index.html @@ -2,6 +2,7 @@ Search Index + diff --git a/lib/rdoc/generator/template/sdoc/search_index.rhtml b/lib/rdoc/generator/template/sdoc/search_index.rhtml index 7ec9a131..5918a1f0 100644 --- a/lib/rdoc/generator/template/sdoc/search_index.rhtml +++ b/lib/rdoc/generator/template/sdoc/search_index.rhtml @@ -2,6 +2,7 @@ File Index + <% @files.each do |file| %>