Adds side navigation to the documentation page. Extracts navigation to the variable array.