"RecursionError: maximum recursion depth exceeded" when extending header #7267
-
|
Hi, When I try to do: I get the error: |
Beta Was this translation helpful? Give feedback.
Answered by
kamilkrzyskow
Jun 14, 2024
Replies: 1 comment 3 replies
-
|
Hello @mateus2k2, Also please use the search feature before starting new discussions, duplicate of: |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Oh, then perhaps this isn't a duplicate, sorry.
You can only override blocks in
main.html. If you're overriding partials, you can't extendbase.htmlormain.html.It is executed from top to bottom
main.html->base.html->partials/*.htmlit can't go back up.This is the allowed structure in
header.html:with comments: https://github.com/squidfunk/mkdocs-material/blob/master/src/templates/partials/header.html
minified: https://github.com/squidfunk/mkdocs-material/blob/master/material/templates/partials/header.html
If you want to override the announcement block then do it in main.html