diff --git a/docs/_includes/custom/shuffle_panel.html b/docs/_includes/custom/shuffle_panel.html index d3e59ec169..8e8512cb60 100644 --- a/docs/_includes/custom/shuffle_panel.html +++ b/docs/_includes/custom/shuffle_panel.html @@ -1,16 +1,15 @@ - + -{% capture titlemaker %} {{ include.titlemaker | or_else: "page.title" }} {% endcapture %} +{% capture titlemaker %} {{ include.titlemaker | default: "page.title" }} {% endcapture %} - -
+
@@ -31,11 +30,11 @@

    {% for page in site.pages %} - {% for tag in page.tags %} - {% if tag == include.tag %} -
  • {% eval titlemaker %}
  • - {% endif %} - {% endfor %} + {% capture alltags %}{{ page.tags | contains_all: include.tags }}{% endcapture %} + + {% if alltags contains "true" %} +
  • {% eval titlemaker %}
  • + {% endif %} {% endfor %}
diff --git a/docs/_includes/initialize_shuffle.html b/docs/_includes/initialize_shuffle.html index 9a0f048dd1..8f3368ed2c 100644 --- a/docs/_includes/initialize_shuffle.html +++ b/docs/_includes/initialize_shuffle.html @@ -98,9 +98,9 @@ $(document).ready(function() { - + - + +{% endunless %} +
+ + + + +
+
+ + {% include custom/shuffle_panel.html + tags="getting_started" + datagroups='["getting_started"]' + description="These pages summarize the gist of PMD usage to get you started quickly." + title="Getting started" %} + + + + {% include custom/shuffle_panel.html + tags="rule_references" + datagroups='["userdocs"]' + title="Rule references" + description="Pick your language to find out about the rule it supports." + image="fa-database" + titlemaker="page.language_name" %} + + {% include custom/shuffle_panel.html + tags="userdocs,extending" + datagroups='["userdocs", "extending"]' + title="Writing rules" + description="These pages document the process of writing and testing custom rules and metrics for PMD." + %} + + + + +
+ +{% unless site.output == "pdf" %} + +{% include initialize_shuffle.html %} + +{% endunless %} + + + {% include links.html %}