wunsh / elixir-docs-ru

Translation of official Elixir documentation into Russian
https://wunsh.ru/docs
36 stars 3 forks source link

Added table of contents on index page #26

Closed eugeneyak closed 6 years ago

jarosluv commented 6 years ago

Thanks for PR. But before we can merge it, we need to think about two points:

  1. Can we auto-generate table of contents in Jekyll theme?
  2. How we can refine table of contents layout? May be add it in modal window and open it with toggle button in bottom navigation panel?
eugeneyak commented 6 years ago

The table of contents can be done automatically by Jekyll, but the question is the correctness of the links and the order of the chapters:

{% for p in site.pages %}
* [{{ p.title }}](/docs{{ p.url }})
{% endfor %}