Skip to content

Latest commit

 

History

History
87 lines (73 loc) · 2.44 KB

modules.md

File metadata and controls

87 lines (73 loc) · 2.44 KB
title category tags layout
SCIRun Module Documentation
info
module
<script type="text/javascript" async src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_CHTML"> </script> <script type="text/javascript"> </script> <style> div.hidden { display: none; } </style>

SCIRun Modules

{% comment %}from https://gist.github.com/pepelsbey/9334494{% endcomment %} {% capture tmp %} {% for page in site.pages %} {% if page.category == "moduledocs" %} {{ page.module.category }} {% endif %} {% endfor %} {% endcapture %}

{% assign categories = tmp | split: ' ' %} {% assign tmp = categories[0] %}

{% for cat in categories %} {% unless tmp contains cat %} {% capture tmp %}{{ tmp }} {{ cat }}{% endcapture %} {% endunless %} {% endfor %}

{% assign modulecategories = tmp | split: ' ' %}

{% capture modulepages %} {% for cat in modulecategories %} ?{{ cat }} {% for page in site.pages %} {% if page.module.category == cat %} ${{ page.title }}#{{ page.url }} {% endif %} {% endfor %} {% endfor %} {% endcapture %}

{% assign sortedpages = modulepages | strip | strip_newlines | split: '?' | sort %}

{% for pagestring in sortedpages %} {% assign pageitems = pagestring | split: '$' %} {% if pageitems[0] %}

{{ pageitems[0] }}

{% for item in pageitems %}
  {% comment %}skip category list item (index 0){% endcomment %}
  {% if forloop.first %} {% continue %} {% endif %}
  {% assign linkitem = item | split: '#' %}
  {% assign contentId = linkitem[0] | prepend: 'id_' %}

{{ linkitem[0] }}

{% capture mdpath %}modules/{{linkitem[0]}}.md{% endcapture %} {% capture my-include %}{% include {{mdpath}} %} {% endcapture %} {% assign importantPart1 = my-include | split: 'Summary' %} {% assign importantPart2 = importantPart1[1] %}
{{ importantPart2 }}
{% endfor %} {% endif %} {% endfor %}