Skip to content

Commit

Permalink
WIP Add menu to tutorial pages
Browse files Browse the repository at this point in the history
  • Loading branch information
orzechow committed Nov 15, 2024
1 parent 2a30ce8 commit 5ae765b
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/_layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,20 @@ <h2 class="project-tagline">{{ page.description | default: site.description | de

<div id="page-container">
<main id="content" class="main-content" role="main">
{% assign urlfolders = page.url | split: '/' %}
{% if urlfolders[1] == "docs" %}
<ul id="menu" class="pages-nav">
<li><a href="/docs/Tutorial.html"></a></li>
{% for page in site.pages %}
{% assign urlfolders = page.url | split: '/' %}
{% if urlfolders[1] == 'docs' and urlfolders[2] == 'tasks' %}
<li><a href="{{ page.url }}">{{ page.menu_title }}</a></li>
{% endif %}
{% endfor %}
</ul>
<hr>
{% endif %}

{{ content }}

<footer class="site-footer">
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,5 +1,6 @@
---
title: "Arbitration Graphs Tutorial"
menu_title: "First Behavior"
---

# 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,5 +1,6 @@
---
title: "Arbitration Graphs Tutorial"
menu_title: "Extending the Graph"
---

# Task 2: Extend the Arbitration Graph
Expand Down
1 change: 1 addition & 0 deletions docs/tasks/3_add_more_behaviors.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: "Arbitration Graphs Tutorial"
menu_title: "More Behaviors"
---

# Task 3: Even more behavior components
Expand Down
1 change: 1 addition & 0 deletions docs/tasks/4_nested_arbitrators.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: "Arbitration Graphs Tutorial"
menu_title: "Nesting"
---

# Task 4: Nested arbitration graphs
Expand Down
1 change: 1 addition & 0 deletions docs/tasks/5_cost_arbitration.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: "Arbitration Graphs Tutorial"
menu_title: "Cost Arbitrator"
---

# Task 5: Arbitrate based on predicted utility
Expand Down
1 change: 1 addition & 0 deletions docs/tasks/6_verification.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: "Arbitration Graphs Tutorial"
menu_title: "Verification and Fallbacks"
---

# Task 6: Better safe than sorry
Expand Down

0 comments on commit 5ae765b

Please sign in to comment.