Skip to content

Latest commit

 

History

History
112 lines (94 loc) · 3.06 KB

File metadata and controls

112 lines (94 loc) · 3.06 KB
title category tags layout
SCIRun Module Documentation
info
module
modules_toc
<script async src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_CHTML"> </script> <script> function toggle_visibility(id) { var e = document.getElementsByName(id)[0]; if(e.style.display == 'block') e.style.display = 'none'; else e.style.display = 'block'; } window.onload = function() { if(window.location.href.indexOf("#") > -1) { toggle_visibility("id_" + window.location.hash.substring(1))[0]; } } </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 %}