Skip to content

Commit

Permalink
major: nav changes
Browse files Browse the repository at this point in the history
  • Loading branch information
liquidg3 committed Apr 5, 2024
1 parent b045011 commit 94339f3
Show file tree
Hide file tree
Showing 4 changed files with 164 additions and 219 deletions.
176 changes: 91 additions & 85 deletions src/pages/_data/navigation/mainNav.json5
Original file line number Diff line number Diff line change
@@ -1,119 +1,125 @@
{
links: [
{ title: "Getting Started", url: "/getting-started/", children: [
{ title: "Start from Scratch", url: "/getting-started/from-scratch/" },
{ title: "IOS", url: "/getting-started/frameworks/ios/" },
{ title: "Ruby", url: "/getting-started/frameworks/ruby/" },
{ title: "Android", url: "/getting-started/frameworks/android/" },
{ title: "Python", url: "/getting-started/frameworks/python/" },
{ title: "Laravel", url: "/getting-started/frameworks/laravel/" },
{ title: "Django", url: "/getting-started/frameworks/django/" },
{ title: "Flask", url: "/getting-started/frameworks/flask/" },
{ title: "React", url: "/getting-started/frameworks/react/" },
{ title: "Spring", url: "/getting-started/frameworks/spring/" },
{ title: "Groovy", url: "/getting-started/frameworks/groovy/" },
]
},
{ title: "Development Theatre", url: "/getting-started/", children: [
{ title: "Test", url: "/getting-started/setting-up-dev-theatre/test/" },
]
},
{
"title": "Developer Onboarding",
"url": "/dev-onboarding/",
"children": [
{
"title": "Learn",
"url": "/dev-onboarding/learn/",
"children": [
{
"title": "Building a Root Skill View",
"url": "/dev-onboarding/learn/rootskillview/"
},
title: "Getting Started", url: "/getting-started/", children: [
{
"title": "Managing your Family Members",
"url": "/dev-onboarding/learn/members/"
title: "Where to start", children: [
{ title: "Start from Scratch", url: "/getting-started/from-scratch/" },
{ title: "IOS", url: "/getting-started/frameworks/ios/" },
{ title: "Ruby", url: "/getting-started/frameworks/ruby/" },
{ title: "Android", url: "/getting-started/frameworks/android/" },
{ title: "Python", url: "/getting-started/frameworks/python/" },
{ title: "Laravel", url: "/getting-started/frameworks/laravel/" },
{ title: "Django", url: "/getting-started/frameworks/django/" },
{ title: "Flask", url: "/getting-started/frameworks/flask/" },
{ title: "React", url: "/getting-started/frameworks/react/" },
{ title: "Spring", url: "/getting-started/frameworks/spring/" },
{ title: "Groovy", url: "/getting-started/frameworks/groovy/" },]
},
{
"title": "Managing your Metadata",
"url": "/dev-onboarding/learn/metadata/"
title: "Development Theatre", url: "/getting-started/development-theatre/", children: []
},
{
"title": "Creating Multi-card Forms",
"url": "/dev-onboarding/learn/multi-card-forms/"
},
{
"title": "Generating Personalized Stories",
"url": "/dev-onboarding/learn/personalized-stories/"
},
{
"title": "Long Running Operations",
"url": "/dev-onboarding/learn/long-running-operations/"
},
{
"title": "Sharing the Story",
"url": "/dev-onboarding/learn/share-story/"
}
]
},
{
"title": "Train",
"url": "/dev-onboarding/train/",
"title": "Developer Onboarding",
"url": "/dev-onboarding/",
"children": [
{
"title": "Errors",
"url": "/dev-onboarding/train/errors/"
"title": "Learn",
"url": "/dev-onboarding/learn/",
"children": [
{
"title": "Building a Root Skill View",
"url": "/dev-onboarding/learn/rootskillview/"
},
{
"title": "Managing your Family Members",
"url": "/dev-onboarding/learn/members/"
},
{
"title": "Managing your Metadata",
"url": "/dev-onboarding/learn/metadata/"
},
{
"title": "Creating Multi-card Forms",
"url": "/dev-onboarding/learn/multi-card-forms/"
},
{
"title": "Generating Personalized Stories",
"url": "/dev-onboarding/learn/personalized-stories/"
},
{
"title": "Long Running Operations",
"url": "/dev-onboarding/learn/long-running-operations/"
},
{
"title": "Sharing the Story",
"url": "/dev-onboarding/learn/share-story/"
}
]
},
{
"title": "Schemas",
"url": "/dev-onboarding/train/schemas/"
},
{
"title": "Stores",
"url": "/dev-onboarding/train/stores/"
},
{
"title": "Events",
"url": "/dev-onboarding/train/events/"
},
{
"title": "Tests",
"url": "/dev-onboarding/train/tests/"
},
{
"title": "Views",
"url": "/dev-onboarding/train/views/"
},
{
"title": "Listeners",
"url": "/dev-onboarding/train/listeners/"
},
{
"title": "Mercury",
"url": "/dev-onboarding/train/mercury/"
"title": "Train",
"url": "/dev-onboarding/train/",
"children": [
{
"title": "Errors",
"url": "/dev-onboarding/train/errors/"
},
{
"title": "Schemas",
"url": "/dev-onboarding/train/schemas/"
},
{
"title": "Stores",
"url": "/dev-onboarding/train/stores/"
},
{
"title": "Events",
"url": "/dev-onboarding/train/events/"
},
{
"title": "Tests",
"url": "/dev-onboarding/train/tests/"
},
{
"title": "Views",
"url": "/dev-onboarding/train/views/"
},
{
"title": "Listeners",
"url": "/dev-onboarding/train/listeners/"
},
{
"title": "Mercury",
"url": "/dev-onboarding/train/mercury/"
}
]
}
]
}
]
},
{ title: "Concepts", url: "/concepts/", children: [
{
title: "Concepts", url: "/concepts/", children: [
{ title: "Errors", url: "/concepts/mercury/" },
{ title: "Events", url: "/concepts/views/" },
{ title: "Listeners", url: "/concepts/tests/" },
{ title: "Schemas", url: "/concepts/events/" },
{ title: "Stores", url: "/concepts/stores/" },
{ title: "Tests", url: "/concepts/schemas/" },
{ title: "Tests", url: "/concepts/schemas/" },
{ title: "Views", url: "/concepts/listeners/" },
{ title: "Mercury", url: "/concepts/errors/" },
]
},
{ title: "Ideology", url: "/ideology/", children: [
{
title: "Ideology", url: "/ideology/", children: [
{ title: "Architecture", url: "/ideology/architecture/" },
{ title: "Test-Driven Development", url: "/ideology/tdd/" },
{ title: "Clean Code", url: "/ideology/clean-code/" },
]
},
{ title: "Glossary", url: "/glossary/", children: [
{
title: "Glossary", url: "/glossary/", children: [
]
},
]
Expand Down
134 changes: 67 additions & 67 deletions src/pages/_includes/widgets/navigation.njk
Original file line number Diff line number Diff line change
Expand Up @@ -5,54 +5,54 @@
<nav id="main-nav">
<ul class="nav-top-level">
<li id="mobile-search">
<a href="{{ '/search/' | url }}" title="Search the site">{{ mdiSearch() }}</a>
<a href="{{ '/getting-started/' | url }}" class="btn-text">Getting Started</a>
<a href="{{ '/ideology/' | url }}" class="btn-text">Ideology</a>
<a href="{{ '/concepts/' | url }}" class="btn-text">Concepts</a>
<a href="{{ '/dev-onboarding/' | url }}" class="btn-text">Developer Onboarding</a>
<a href="{{ '/glossary/' | url }}" class="btn-text">Glossary</a>
</li>
<a href="{{ '/search/' | url }}" title="Search the site">{{ mdiSearch() }}</a>
<a href="{{ '/getting-started/' | url }}" class="btn-text">Getting Started</a>
<a href="{{ '/ideology/' | url }}" class="btn-text">Ideology</a>
<a href="{{ '/concepts/' | url }}" class="btn-text">Concepts</a>
<a href="{{ '/dev-onboarding/' | url }}" class="btn-text">Developer Onboarding</a>
<a href="{{ '/glossary/' | url }}" class="btn-text">Glossary</a>
</li>
{% for topLink in mainNavData.links %}
{% set isCurrentParent = topLink.url == activeParent.url %}
{% if isCurrentParent %}
<li data-is-current-parent="true" aria-current="page">
<a href="{{ topLink.url | url }}" {{ 'target=_blank' if topLink.external }}>
<span>
{{ topLink.title }}
</span>
</a>
{% if topLink.hasChildren %}
<button class="clear-btn up-arrow" data-children-opener>
{{ downArrowHead() }}
</button>
<ul class="nav-child-level open">
{% for childLink in topLink.children %}
<li {% if childLink.url == page.url %} aria-current="page" {% endif %}>
<a href="{{ childLink.url | url }}" {{ 'target=_blank' if childLink.external }}>
<span>
{{ childLink.title }}
</span>
</a>
{% if childLink.hasChildren %}
<button class="clear-btn down-arrow" data-grandchildren-opener>
{{ downArrowHead() }}
</button>
<ul class="nav-grandchild-level open">
{% for grandchildLink in childLink.children %}
<li {% if grandchildLink.url == page.url %} aria-current="page" {% endif %}>
<a href="{{ grandchildLink.url | url }}" {{ 'target=_blank' if grandchildLink.external }}>
<span>{{ grandchildLink.title }}</span>
</a>
</li>
{% endfor %}
</ul>
{% endif %}
</li>
{% endfor %}
</ul>
{% endif %}
</li>
{% set isCurrentParent = topLink.url == activeParent.url %}
{% if isCurrentParent %}
<li data-is-current-parent="true" aria-current="page">
<a href="{{ topLink.url | url }}" {{ 'target=_blank' if topLink.external }}>
<span>
{{ topLink.title }}
</span>
</a>
{% if topLink.hasChildren %}
<!--<button class="clear-btn up-arrow" data-children-opener>
{{ downArrowHead() }}
</button>-->
<ul class="nav-child-level open">
{% for childLink in topLink.children %}
<li {% if childLink.url==page.url %} aria-current="page" {% endif %}>
<a href="{{ childLink.url | url }}" {{ 'target=_blank' if childLink.external }}>
<span>
{{ childLink.title }}
</span>
</a>
{% if childLink.hasChildren %}
<button class="clear-btn down-arrow" data-grandchildren-opener>
{{ downArrowHead() }}
</button>
<ul class="nav-grandchild-level open">
{% for grandchildLink in childLink.children %}
<li {% if grandchildLink.url==page.url %} aria-current="page" {% endif %}>
<a href="{{ grandchildLink.url | url }}" {{ 'target=_blank' if grandchildLink.external }}>
<span>{{ grandchildLink.title }}</span>
</a>
</li>
{% endfor %}
</ul>
{% endif %}
</li>
{% endfor %}
</ul>
{% endif %}
</li>
{% endif %}
{% endfor %}
</ul>
</nav>
Expand All @@ -63,34 +63,34 @@
<nav id="header-nav">
<ul>
{% for link in headerNavData.links %}
<li {% if link.url == activeParent.url %} data-is-current-parent="true" {% endif %} >
<a href="{{ link.url | url }}">{{ link.title }}</a>
</li>
<li {% if link.url==activeParent.url %} data-is-current-parent="true" {% endif %}>
<a href="{{ link.url | url }}">{{ link.title }}</a>
</li>
{% endfor %}
</ul>
</nav>
{% endmacro %}

{% macro tocBlock(tocData) %}
{% if tocData %}
<nav id="in-page-toc">
<h2>Table of Contents</h2>
<ul>
{% for item in tocData %}
<nav id="in-page-toc">
<h2>Table of Contents</h2>
<ul>
{% for item in tocData %}
<li>
<a href="#{{ item.href }}">{{ item.text }}</a>
{% if item.children %}
<ul>
{% for child in item.children %}
<li>
<a href="#{{ item.href }}">{{ item.text }}</a>
{% if item.children %}
<ul>
{% for child in item.children %}
<li>
<a href="#{{ child.href }}">{{ child.text }}</a>
</li>
{% endfor %}
</ul>
{% endif %}
<a href="#{{ child.href }}">{{ child.text }}</a>
</li>
{% endfor %}
</ul>
</nav>
{% endfor %}
</ul>
{% endif %}
</li>
{% endfor %}
</ul>
</nav>
{% endif %}
{% endmacro %}
{% endmacro %}
6 changes: 6 additions & 0 deletions src/pages/getting-started/development-theatre.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: Install Development Theatre
---
<pre>
<code class="language-bash" data-lang="bash">$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"</code>
</pre>
Loading

0 comments on commit 94339f3

Please sign in to comment.