Skip to content

Commit

Permalink
Improve HTML title
Browse files Browse the repository at this point in the history
  • Loading branch information
orzechow committed Nov 26, 2024
1 parent 33eceb0 commit 3e25743
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 1 deletion.
2 changes: 2 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions docs/Tutorial.md
Original file line number Diff line number Diff line change
@@ -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 🕹️
Expand Down
7 changes: 6 additions & 1 deletion docs/_layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@
<head>
<meta charset="UTF-8">

{% seo %}
{% capture htmltitle %}{{ page.title }} | {{ page.tagline | default: site.tagline | default: site.github.repository_name }}{% endcapture %}
<title>{{ htmltitle }}</title>
<meta property="og:title" content="{{ htmltitle }}">

{% seo title=false %}

<link rel="preconnect" href="https://fonts.gstatic.com">
<link rel="preload" href="https://fonts.googleapis.com/css?family=Open+Sans:400,700&display=swap" as="style" type="text/css" crossorigin>
<meta name="viewport" content="width=device-width, initial-scale=1">
Expand Down
1 change: 1 addition & 0 deletions docs/tasks/1_implement_behavior_component.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions docs/tasks/2_extend_arbitration_graph.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions docs/tasks/3_nested_arbitrators.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: "Arbitration Graphs Tutorial"
menu_title: "Nesting"
tagline: "Task 3: Nested arbitration graphs"
---

# Task 3: Nested arbitration graphs
Expand Down
1 change: 1 addition & 0 deletions docs/tasks/4_cost_arbitration.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions docs/tasks/5_verification.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 3e25743

Please sign in to comment.