ariatemplates / usermanual

This repo holds the articles for ariatemplates.com/usermanual (text content only)
http://ariatemplates.com/usermanual/latest/
5 stars 18 forks source link

Table of contents generated from multiple sources #79

Open simonarbuckle opened 10 years ago

simonarbuckle commented 10 years ago

There is an inconsistency in the way the table of contents is generated, this means that a writer will update the main table of contents page but will sometimes forget to update the table of contents menu popup.

Table of contents page source: https://github.com/ariatemplates/usermanual/blob/master/src/next/index.md https://github.com/ariatemplates/usermanual/blob/master/src/latest/index.md

Table of contents menu popup source: https://github.com/ariatemplates/usermanual/blob/master/resources/articles/navigationbar/next.jade https://github.com/ariatemplates/usermanual/blob/master/resources/articles/navigationbar/latest.jade

It would be cleaner to use just one source for all table of contents.

jakub-g commented 10 years ago

Indeed, it seems we didn't update the latter for quite a while..

benouat commented 10 years ago

I think i remember that this was limited by Jade that does not support dynamic include. As it is also versionned, it should be handled as build time, and written in pure JavaScript string replacement.