From 635b8421a954c67f3fd9a9d79dfb513eaa2441f4 Mon Sep 17 00:00:00 2001 From: Tully Foote Date: Mon, 22 May 2023 19:52:27 -0700 Subject: [PATCH] Add titles to some pages (#257) --- _ruby_libs/pages.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/_ruby_libs/pages.rb b/_ruby_libs/pages.rb index 540b117..38f521c 100644 --- a/_ruby_libs/pages.rb +++ b/_ruby_libs/pages.rb @@ -34,6 +34,7 @@ def initialize(site, dep_name, dep_data, full_dep_data) self.data['dep_name'] = dep_name self.data['dep_data'] = dep_data + self.data['title'] = 'rosdep System Dependency: ' + dep_name self.data['dep_data_per_platform'] = full_dep_data['data_per_platform'] self.data['dependants_per_distro'] = full_dep_data['dependants_per_distro'] @@ -103,6 +104,7 @@ def initialize(site, sort_id, n_list_pages, page_index, list, default=false) self.data['n_list_pages'] = n_list_pages self.data['page_index'] = page_index self.data['list'] = list + self.data['title'] = 'ROS Packages' self.data['prev_page'] = [page_index - 1, 1].max self.data['next_page'] = [page_index + 1, n_list_pages].min @@ -163,6 +165,7 @@ def initialize(site, sort_id, n_list_pages, page_index, list, default=false) self.data['n_list_pages'] = n_list_pages self.data['page_index'] = page_index self.data['list'] = list + self.data['title'] = 'rosdep System Dependencies' self.data['prev_page'] = [page_index - 1, 1].max self.data['next_page'] = [page_index + 1, n_list_pages].min @@ -225,6 +228,7 @@ def initialize(site, package_instances) self.read_yaml(File.join(@base, '_layouts'),'package.html') self.data['package_instances'] = package_instances self.data['package_name'] = package_instances.name + self.data['title'] = 'ROS Package: ' + package_instances.name self.data['instances'] = package_instances.instances @@ -256,6 +260,7 @@ def initialize(site, package_instances, instance, package_name) self.data['instances'] = package_instances.instances self.data['instance'] = instance self.data['package_name'] = package_name + self.data['title'] = 'ROS Package: ' + package_name self.data['instance_index_url'] = ['packages',package_instances.name].join('/') self.data['instance_base_url'] = ['p',package_name].join('/')