aboutsummaryrefslogtreecommitdiffstats
path: root/site/_layouts
diff options
context:
space:
mode:
authorStephane Desneux <stephane.desneux@iot.bzh>2016-11-11 19:04:14 +0100
committerStephane Desneux <stephane.desneux@iot.bzh>2016-11-11 19:04:14 +0100
commit217564d4ba9428ed47ff8af6ad119fa6fcda6920 (patch)
tree6c728d992140e6df5e5580f1ce4fa409fa22596f /site/_layouts
parent5848a1052714da051ff8361dd880004e8cdc75ce (diff)
webdocs: enhance support for UML and FLOW diagrams
Change-Id: Id346b30e8a1f8705d0f42f6d2e1254c0cf926221 Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
Diffstat (limited to 'site/_layouts')
-rw-r--r--site/_layouts/README12
-rw-r--r--site/_layouts/base.html2
-rw-r--r--site/_layouts/umlflowdoc.html18
-rw-r--r--site/_layouts/umlpost.html3
4 files changed, 13 insertions, 22 deletions
diff --git a/site/_layouts/README b/site/_layouts/README
new file mode 100644
index 0000000..08bcee8
--- /dev/null
+++ b/site/_layouts/README
@@ -0,0 +1,12 @@
+Layout hierarchy:
+-----------------
+
+base
+ |
+ `--> withindex --> <generated sections layouts>
+ |
+ `--> agl --> page
+ |
+ `--> contribute
+ |
+ `--> blog --> post --> umlpost
diff --git a/site/_layouts/base.html b/site/_layouts/base.html
index db0c8c7..1ccb6b5 100644
--- a/site/_layouts/base.html
+++ b/site/_layouts/base.html
@@ -11,7 +11,7 @@ analytics_id: {{ site.ganalytics }}
{% include algolia.html %}
{% for script in layout.scripts %}
- <script src="{{ site.baseurl }}/static/js/{{script}}"></script>
+ <script defer src="{{ site.baseurl }}/static/js/{{script}}"></script>
{% endfor %}
</body>
diff --git a/site/_layouts/umlflowdoc.html b/site/_layouts/umlflowdoc.html
deleted file mode 100644
index ba1c32e..0000000
--- a/site/_layouts/umlflowdoc.html
+++ /dev/null
@@ -1,18 +0,0 @@
----
-layout: base
-
-scripts:
- - lib/raphael-min.js
- - lib/underscore-min.js
- - lib/sequence-diagram-min.js
- - lib/flowchart-latest.js
- - process-uml.js
----
-
-<div class="techdoc">
- <img class="icone" src="{{site.assets.icone}}">
- <h1>{{ page.title }}</h1>
- <div class="technical-doc">
- {{ content }}
- </div>
-</div>
diff --git a/site/_layouts/umlpost.html b/site/_layouts/umlpost.html
index 9125136..dac8efe 100644
--- a/site/_layouts/umlpost.html
+++ b/site/_layouts/umlpost.html
@@ -77,6 +77,3 @@ scripts:
</div>
</div>
-{% for script in layout.scripts %}
- <script src="{{ site.baseurl }}/static/js/{{script}}"></script>
-{% endfor %}