diff --git a/docs/_docs/development/cell-node-lifecycle.md b/docs/_docs/development/cell-node-lifecycle.md deleted file mode 100644 index 9ae549f91..000000000 --- a/docs/_docs/development/cell-node-lifecycle.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: Cell node lifecycle -layout: docs -permalink: /development/cell-node-lifecycle.html ---- - -

👷👷‍♀️Under construction…

\ No newline at end of file diff --git a/docs/_docs/development/collection-animations.md b/docs/_docs/development/collection-animations.md deleted file mode 100644 index e97a4d540..000000000 --- a/docs/_docs/development/collection-animations.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: Collection animations -layout: docs -permalink: /development/collection-animations.html ---- - -

👷👷‍♀️Under construction…

\ No newline at end of file diff --git a/docs/_docs/development/collection-asynchronous-updates.md b/docs/_docs/development/collection-asynchronous-updates.md index 95ad51857..0a44c5635 100644 --- a/docs/_docs/development/collection-asynchronous-updates.md +++ b/docs/_docs/development/collection-asynchronous-updates.md @@ -2,6 +2,7 @@ title: Collections and asynchronous updates layout: docs permalink: /development/collection-asynchronous-updates.html +prevPage: layout-specs.html --- # At a glance diff --git a/docs/_docs/development/how-to-debug.md b/docs/_docs/development/how-to-debug.md index 919d34b1e..8098cd4a8 100644 --- a/docs/_docs/development/how-to-debug.md +++ b/docs/_docs/development/how-to-debug.md @@ -2,6 +2,8 @@ title: How to debug issues in Texture layout: docs permalink: /development/how-to-debug.html +prevPage: how-to-develop.html +nextPage: threading.html --- # Debug diff --git a/docs/_docs/development/structure.md b/docs/_docs/development/structure.md deleted file mode 100644 index ec05b3f04..000000000 --- a/docs/_docs/development/structure.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: Structure -layout: docs -permalink: /development/structure.html ---- - -

👷👷‍♀️Under construction…

\ No newline at end of file diff --git a/docs/_docs/development/threading.md b/docs/_docs/development/threading.md index 9157d2582..fad2e994c 100644 --- a/docs/_docs/development/threading.md +++ b/docs/_docs/development/threading.md @@ -2,12 +2,10 @@ title: Threading layout: docs permalink: /development/threading.html -prevPage: how-to-develop.html +prevPage: how-to-debug.html nextPage: node-lifecycle.html --- -# Threading - ## At a glance The Texture philosophy is about efficient utilization of resources in order to provide a high frame rate user experience. In other words, an almost scientific approach to distributing work amongst threads keeps the Default Run Loop lean to allow user input events and to consume work scheduled on the main dispatch queue. diff --git a/docs/_layouts/docs.html b/docs/_layouts/docs.html index 42e7a8d4f..c2eb17fef 100755 --- a/docs/_layouts/docs.html +++ b/docs/_layouts/docs.html @@ -13,7 +13,7 @@

- {{ page.title }} + {{ page.title }}

{{ page.description }}

@@ -23,12 +23,34 @@

- {% if page.prevPage %} - ← Prev - {% endif %} - {% if page.nextPage %} - Next → - {% endif %} + {% if page.prevPage %} + {% comment %} + If prevPage already contains the dir, either /docs/ or /development/, don't append to it. + Otherwise, it's a relative path so append the dir according to the page's permalink. + {% endcomment %} + + {% if page.prevPage contains '/docs/' or page.prevPage contains '/development/' %} + ← Prev + {% elsif page.permalink contains '/docs/' %} + ← Prev + {% else %} + ← Prev + {% endif %} + {% endif %} + + {% if page.nextPage %} + {% comment %} + Same deal for nextPage. + {% endcomment %} + + {% if page.nextPage contains '/docs/' or page.nextPage contains '/development/' %} + Next → + {% elsif page.permalink contains '/docs/' %} + Next → + {% else %} + Next → + {% endif %} + {% endif %}