diff --git a/_config.yml b/_config.yml index f09ad726..95970070 100644 --- a/_config.yml +++ b/_config.yml @@ -76,6 +76,16 @@ defaults: sectionid: vandv seo: type: "WebPage" + +- scope: + path: _su2gui + type: su2gui + values: + layout: su2gui + sectionid: su2gui + seo: + type: "WebPage" + collections: docs: permalink: /:collection/:path/ @@ -89,6 +99,9 @@ collections: vandv: permalink: /:collection/:path/ output: true + su2gui: + permalink: /:collection/:path/ + output: true posts: permalink: /blog/:year/:month/:day/:title/ output: true diff --git a/_data/su2gui.yml b/_data/su2gui.yml new file mode 100644 index 00000000..c822b29e --- /dev/null +++ b/_data/su2gui.yml @@ -0,0 +1,19 @@ +- title: Introduction to SU2GUI + su2gui: + - Introduction + - Quick-Start + +- title: Installation + su2gui: + - Installation + +- title: User Guide + su2gui: + - Terminal-Initialization + - Manage-Cases + - Mesh-File + - configurations + - Initialization + - Logs-Errors + - Result-Analysis + - Supported-Functionalities \ No newline at end of file diff --git a/_includes/su2gui_nav.html b/_includes/su2gui_nav.html new file mode 100644 index 00000000..f2d70c56 --- /dev/null +++ b/_includes/su2gui_nav.html @@ -0,0 +1,22 @@ +
+{% for section in site.data.su2gui %} +
+ +
+
    + {% for item in section.su2gui %} + {% assign item_url = item | prepend:"/su2gui/" | append:"/" %} + {% assign p = site.su2gui | where:"url", item_url | first %} + {{ p.title }} + {% endfor %} +
+
+
+{% endfor %} +
diff --git a/_includes/su2gui_section_nav.html b/_includes/su2gui_section_nav.html new file mode 100644 index 00000000..a57f63f6 --- /dev/null +++ b/_includes/su2gui_section_nav.html @@ -0,0 +1,52 @@ +{% comment %} +Map grabs the doc sections, giving us an array of arrays. Join, flattens all +the items to a comma delimited string. Split turns it into an array again. +{% endcomment %} +{% assign su2gui = site.data.su2gui | map: 'su2gui' | join: ',' | split: ',' %} + +{% comment %} +Because this is built for every page, lets find where we are in the ordered +document list by comparing url strings. Then if there's something previous or +next, lets build a link to it. +{% endcomment %} + +{% for document in su2gui %} + {% assign document_url = document | prepend:"/su2gui/" | append:"/" %} + {% if document_url == page.url %} +