So, I've built docs using MKDocs and $ mkdocs build. However, when I switch the category using the sidebar (readthedocs theme), instead of opening syntax.html the docs open the file's folder, like shown below:

It even happens when switching to the main category:
