codeandmedia / zola_easydocs_theme

An easy way to create docs for your project
https://easydocs.codeandmedia.com
MIT License
41 stars 19 forks source link

Failed to render #3

Closed usuallymatt closed 2 years ago

usuallymatt commented 2 years ago

When trying the easydocs theme I get the following when running the zola start.bat

Error: Failed to render page 'C:/git\Help\help\content\recordview\datatab\index.md' Reason: Failed to render 'easydocs/templates/page.html' (error happened in a parent template) Reason: Variable page.toc not found in context while rendering 'easydocs/templates/page.html'

My current page.html file in the theme template: {% extends "index.html" %} {% block title %} {{ config.title }} | {{ page.title }} {% endblock title %} {% block content %} {{ page.content | safe }} {% endblock content %}

codeandmedia commented 2 years ago

I wrapped page navigation with If, should be ok now, try to pull new code from the repo. If you would have any issues -- do not hestitate to send me link to you repo

usuallymatt commented 2 years ago

Thanks. I was able to run the start.bat but then received a zola page saying I needed a section.html file. I've added the one I use for the book theme but Page with no sub pages don't display. Is there a section.html for easydocs?

codeandmedia commented 2 years ago

Easy docs have pretty flat arch. You could have only articles inside one folder. If you need sections -- take a look to docs as code theme