New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Insiders 4.16+: macro 'render' takes not more than 1 argument(s) #3961
Comments
Thanks for reporting. I'm not able to reproduce this problem. Could you please provide a minium reproducible example? Try narrowing it down by removing configuration and pages. Please attach the example that reproduces the error as a zip file. Furthermore, please try removing your customizations. You have |
It built fine by removing the
|
Thanks for coming back. Please provide a minimal reproducible example or I'm not able to look into this. Yes, navigation tabs were slightly refactored to fix #3950 – possibly related. However, I need to know what configuration is triggering this problem. |
https://github.com/btbf/spojapanguild.git |
Perfect, thanks! I'm now able to reproduce the error. |
Fixed in |
Released as part of 8.2.16+insiders-4.16.2! |
Thank you for the fix! |
Contribution guidelines
I've found a bug and checked that ...
mkdocs
orreadthedocs
themescustom_dir
,extra_javascript
andextra_css
Description
Build errors on local server and GithubAction.
Expected behaviour
Build completes without error
Actual behaviour
btbf@db-snapshot:~/sjg/main$ mkdocs serve --dev-addr=0.0.0.0:8000
INFO - Building documentation...
WARNING - Config value: 'dev_addr'. Warning: The use of the IP address '0.0.0.0' suggests a production
environment or the use of a proxy to connect to the MkDocs server. However, the MkDocs' server is
intended for local development purposes only. Please use a third party production-ready server
instead.
INFO - Cleaning site directory
Traceback (most recent call last):
File "/home/btbf/.local/bin/mkdocs", line 8, in
sys.exit(cli())
File "/home/btbf/.local/lib/python3.8/site-packages/click/core.py", line 1128, in call
return self.main(*args, **kwargs)
File "/home/btbf/.local/lib/python3.8/site-packages/click/core.py", line 1053, in main
rv = self.invoke(ctx)
File "/home/btbf/.local/lib/python3.8/site-packages/click/core.py", line 1659, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/btbf/.local/lib/python3.8/site-packages/click/core.py", line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/btbf/.local/lib/python3.8/site-packages/click/core.py", line 754, in invoke
return __callback(*args, **kwargs)
File "/home/btbf/.local/lib/python3.8/site-packages/mkdocs/main.py", line 181, in serve_command
serve.serve(dev_addr=dev_addr, livereload=livereload, watch=watch, **kwargs)
File "/home/btbf/.local/lib/python3.8/site-packages/mkdocs/commands/serve.py", line 63, in serve
config = builder()
File "/home/btbf/.local/lib/python3.8/site-packages/mkdocs/commands/serve.py", line 58, in builder
build(config, live_server=live_server, dirty=dirty)
File "/home/btbf/.local/lib/python3.8/site-packages/mkdocs/commands/build.py", line 306, in build
_build_theme_template(template, env, files, config, nav)
File "/home/btbf/.local/lib/python3.8/site-packages/mkdocs/commands/build.py", line 111, in _build_theme_template
output = _build_template(template_name, template, files, config, nav)
File "/home/btbf/.local/lib/python3.8/site-packages/mkdocs/commands/build.py", line 90, in _build_template
output = template.render(context)
File "/home/btbf/.local/lib/python3.8/site-packages/jinja2/environment.py", line 1291, in render
self.environment.handle_exception()
File "/home/btbf/.local/lib/python3.8/site-packages/jinja2/environment.py", line 925, in handle_exception
raise rewrite_traceback_stack(source=source)
File "/home/btbf/.local/lib/python3.8/site-packages/material/404.html", line 4, in top-level template code
{% extends "main.html" %}
File "/home/btbf/sjg/main/docs/overrides/main.html", line 1, in top-level template code
{% extends "base.html" %}
File "/home/btbf/.local/lib/python3.8/site-packages/material/base.html", line 144, in top-level template code
{% block header %}
File "/home/btbf/.local/lib/python3.8/site-packages/material/base.html", line 145, in block 'header'
{% include "partials/header.html" %}
File "/home/btbf/.local/lib/python3.8/site-packages/material/partials/header.html", line 83, in top-level template code
{% include "partials/tabs.html" %}
File "/home/btbf/.local/lib/python3.8/site-packages/material/partials/tabs.html", line 8, in top-level template code
{% include "partials/tabs-item.html" %}
File "/home/btbf/.local/lib/python3.8/site-packages/material/partials/tabs-item.html", line 37, in top-level template code
{{ render(nav_item) }}
File "/home/btbf/.local/lib/python3.8/site-packages/jinja2/runtime.py", line 828, in _invoke
rv = self._func(*arguments)
File "/home/btbf/.local/lib/python3.8/site-packages/material/partials/tabs-item.html", line 21, in template
{{ render(first, title) }}
TypeError: macro 'render' takes not more than 1 argument(s)
Steps to reproduce
Package versions
python --version
3.8.10mkdocs --version
1.3.0pip show mkdocs-material | grep -E ^Version
8.2.16+insiders.4.16.1Configuration
System information
The text was updated successfully, but these errors were encountered: