Skip to content
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

automodsumm don't work with templates? #46

Open
fredrik-1 opened this issue Jul 9, 2018 · 0 comments · May be fixed by #47
Open

automodsumm don't work with templates? #46

fredrik-1 opened this issue Jul 9, 2018 · 0 comments · May be fixed by #47

Comments

@fredrik-1
Copy link

I get the following error when I try to useautomodsumm with a template when building matplotlib.
jinja2.exceptions.TemplateAssertionError: no filter named 'underline'. The error happen in the call

template = template_env.get_template(template_name)

on line 511.

I looked into the code and saw that the line

template_env.filters['underline'] = _underline

where in the sphinx generate_autosummary_docs function but not in the generate_automodsumm_docs function.

I added that line and the _underline function and I don't get the error anymore. The result is more as expected but sphinx doesn't render the last level of autosummary files (if that makes any sense, the links on my class pages don't work).

@fredrik-1 fredrik-1 linked a pull request Jul 9, 2018 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant