From c0e0e482cea54e37c7fead268c23c9a2ef30d8a5 Mon Sep 17 00:00:00 2001 From: "v.pavkin" Date: Thu, 4 Feb 2016 09:51:22 +0300 Subject: [PATCH 1/5] Show useful links section with updated styles --- docs/src/site/_layouts/default.html | 2 +- docs/src/site/css/custom.css | 20 +++++++++++++++----- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/docs/src/site/_layouts/default.html b/docs/src/site/_layouts/default.html index d7b5608f8a..02597699f9 100644 --- a/docs/src/site/_layouts/default.html +++ b/docs/src/site/_layouts/default.html @@ -63,7 +63,7 @@

Cats

{% if (page.section == 'data') or (page.section == 'typeclasses') and ((page.source != null) or (page.scaladoc != null))%}
-
useful links
+
Useful links:
- {% if (page.section == 'data') or (page.section == 'typeclasses') and ((page.source != null) or (page.scaladoc != null))%} -
+ + {% if (page.section == 'data') or (page.section == 'typeclasses') %} + {% assign linksSection = true %} + {% endif %} + {% if (page.source != null) or (page.scaladoc != null) %} + {% assign linksContent = true %} + {% endif %} + {% if linksSection and linksContent %} +
Useful links:
    {% if (page.source != null) and (page.source contains 'https:') %} diff --git a/docs/src/site/datatypes.html b/docs/src/site/datatypes.md similarity index 58% rename from docs/src/site/datatypes.html rename to docs/src/site/datatypes.md index 150c627bf4..52f80c2783 100644 --- a/docs/src/site/datatypes.html +++ b/docs/src/site/datatypes.md @@ -3,13 +3,10 @@ title: "Data Types" section: "data" --- +# Data Types -

    Data Types

    - -
      {% for x in site.tut %} {% if x.section == 'data' %} -
    • {{ x.title }}
    • +- [{{x.title}}]({{site.baseurl}}{{x.url}}) {% endif %} {% endfor %} -
    \ No newline at end of file