From cbaf5aae5136700066fee97a81325442d5d89fdf Mon Sep 17 00:00:00 2001 From: Piotr Spieker Date: Tue, 26 Nov 2024 20:27:45 +0100 Subject: [PATCH] Improve HTML title --- _config.yml | 2 ++ docs/Tutorial.md | 4 ++++ docs/_layouts/default.html | 7 ++++++- docs/tasks/1_implement_behavior_component.md | 1 + docs/tasks/2_extend_arbitration_graph.md | 1 + docs/tasks/3_nested_arbitrators.md | 1 + docs/tasks/4_cost_arbitration.md | 1 + docs/tasks/5_verification.md | 1 + 8 files changed, 17 insertions(+), 1 deletion(-) diff --git a/_config.yml b/_config.yml index 100338af..b881b7a5 100644 --- a/_config.yml +++ b/_config.yml @@ -17,6 +17,8 @@ layouts_dir: docs/_layouts sass: sass_dir: docs/assets/_sass +# This will be used as default HTML (sub)title +tagline: decision-making for robotics # Support collapsible details/summary sections markdown: CommonMarkGhPages diff --git a/docs/Tutorial.md b/docs/Tutorial.md index e3a83098..31f93278 100644 --- a/docs/Tutorial.md +++ b/docs/Tutorial.md @@ -1,3 +1,7 @@ +--- +tagline: "decision-making for Pac-Man" +--- + # Arbitration Graphs Tutorial Let's write an agent for the famous Pac-Man game using Arbitration Graphs 🕹️ diff --git a/docs/_layouts/default.html b/docs/_layouts/default.html index e52daeb1..6704facb 100644 --- a/docs/_layouts/default.html +++ b/docs/_layouts/default.html @@ -3,7 +3,12 @@ -{% seo %} + {% capture htmltitle %}{{ page.title }} | {{ page.tagline | default: site.tagline | default: site.github.repository_name }}{% endcapture %} + {{ htmltitle }} + + + {% seo title=false %} + diff --git a/docs/tasks/1_implement_behavior_component.md b/docs/tasks/1_implement_behavior_component.md index ba9ec7f3..0341802a 100644 --- a/docs/tasks/1_implement_behavior_component.md +++ b/docs/tasks/1_implement_behavior_component.md @@ -1,6 +1,7 @@ --- title: "Arbitration Graphs Tutorial" menu_title: "First Behavior" +tagline: "Task 1: Implement a Behavior Component" --- # Task 1: Implement a Behavior Component diff --git a/docs/tasks/2_extend_arbitration_graph.md b/docs/tasks/2_extend_arbitration_graph.md index 45c21206..83d0ac63 100644 --- a/docs/tasks/2_extend_arbitration_graph.md +++ b/docs/tasks/2_extend_arbitration_graph.md @@ -1,6 +1,7 @@ --- title: "Arbitration Graphs Tutorial" menu_title: "Extending the Graph" +tagline: "Task 2: Extend the Arbitration Graph" --- # Task 2: Extend the Arbitration Graph diff --git a/docs/tasks/3_nested_arbitrators.md b/docs/tasks/3_nested_arbitrators.md index 1a5cc783..48b92d28 100644 --- a/docs/tasks/3_nested_arbitrators.md +++ b/docs/tasks/3_nested_arbitrators.md @@ -1,6 +1,7 @@ --- title: "Arbitration Graphs Tutorial" menu_title: "Nesting" +tagline: "Task 3: Nested arbitration graphs" --- # Task 3: Nested arbitration graphs diff --git a/docs/tasks/4_cost_arbitration.md b/docs/tasks/4_cost_arbitration.md index 82745150..b49113cc 100644 --- a/docs/tasks/4_cost_arbitration.md +++ b/docs/tasks/4_cost_arbitration.md @@ -1,6 +1,7 @@ --- title: "Arbitration Graphs Tutorial" menu_title: "Cost Arbitrator" +tagline: "Task 4: Arbitrate based on predicted utility" --- # Task 4: Arbitrate based on predicted utility diff --git a/docs/tasks/5_verification.md b/docs/tasks/5_verification.md index f24a8348..b540069c 100644 --- a/docs/tasks/5_verification.md +++ b/docs/tasks/5_verification.md @@ -1,6 +1,7 @@ --- title: "Arbitration Graphs Tutorial" menu_title: "Verification and Fallbacks" +tagline: "Task 5: Better safe than sorry" --- # Task 5: Better safe than sorry