From d339e4dd58bcb9bb4168ecbf14e4c8007606ab4d Mon Sep 17 00:00:00 2001 From: Jonathan Hefner Date: Mon, 11 Sep 2023 16:58:07 -0500 Subject: [PATCH] Add description meta tag for prose files This adds a `` tag for the main page and for other prose files such as README files. The tags are generated in the same way as for code files. --- lib/rdoc/generator/template/rails/_head.rhtml | 3 +++ lib/rdoc/generator/template/rails/class.rhtml | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/rdoc/generator/template/rails/_head.rhtml b/lib/rdoc/generator/template/rails/_head.rhtml index d2b637bb..5be0661a 100644 --- a/lib/rdoc/generator/template/rails/_head.rhtml +++ b/lib/rdoc/generator/template/rails/_head.rhtml @@ -18,3 +18,6 @@ <% end %> +<% if description = page_description(context.description) %> + +<% end %> diff --git a/lib/rdoc/generator/template/rails/class.rhtml b/lib/rdoc/generator/template/rails/class.rhtml index cb998f29..8f630ba1 100644 --- a/lib/rdoc/generator/template/rails/class.rhtml +++ b/lib/rdoc/generator/template/rails/class.rhtml @@ -7,9 +7,6 @@ <%= include_template '_head.rhtml', {:context => klass, :tree_keys => klass.full_name.split('::') } %> - <% if description = page_description(klass.description) %> - - <% end %>