--- layout: base docs_tab: true analytics_id: {{site.ganalytics}} scripts: - lib/raphael-min.js - lib/underscore-min.js - lib/sequence-diagram-min.js - lib/flowchart-latest.js - process-uml.js --- {% comment %} set some constants {% endcomment %} {% assign ALL_PAGES = site.data.all-pages %} {% assign DOCSDIR = site.docsurl %} {% assign TOCSDIR = site.data.tocs %} {% assign TOCFILE = TOCSDIR[page.tocdir][page.tocfile] %} {% capture VERSION_ROOT %}{{DOCSDIR}}/{{ page.language }}/{{ page.version }}/{{page.tocdir}}/{% endcapture %} {% capture VERSION_URL %}{{DOCSDIR}}/{{ page.language }}/{{ page.version }}/{% endcapture %} {% capture LANGUAGE_ROOT %}{{DOCSDIR}}/{{ page.language }}/{% endcapture %} {% assign MY_ENTRY = page.url | replace: VERSION_ROOT,"" %} {% assign my_entry_parts = MY_ENTRY | split: "/" %} {% include header.html version=page.version language=page.language %}
{% comment %} Get URL for this page in the latest version {% endcomment %} {% capture latest_root %}/docs/{{ page.language }}/latest/{% endcapture %} {% assign latest_url = page.url | replace:VERSION_ROOT,latest_root %} {% comment %} If this page doesn't exist, just use root {% endcomment %} {% unless ALL_PAGES contains latest_url %} {% assign latest_url = latest_root %} {% endunless %}
{{ content }}
{% include footer_docs.html %}