You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in the the docs - http://sphinx.pocoo.org/templating.html?highlight=html_context - it is implied that one can set a variable called html_context so as to provide context variables to your templates. However, AFAICT, one cannot. One may //only// provide template context through command line switches, since in cmdline.py, html_context is always set to be an empty dictionary and passed in as an override.
Is this an error in documentation, or in code? I can try to provide a patch for either when I have a moment spare. FWIW, I'd prefer to pass in options to the html_context in conf.py as well as as a command line switch, as storing command-line options in a Makefile instead of conf.py feels wrong.
It turns out the fix for this is almost trivial, and I needed it in a hurry, so I've created a patch which solves the issue for me. I don't expect this to be accepted - there are no tests nor is the documentation problem fixed. But if you get a chance to look in and let me know if I'm on the right track, that would be great.
in the the docs - http://sphinx.pocoo.org/templating.html?highlight=html_context - it is implied that one can set a variable called
html_context
so as to provide context variables to your templates. However, AFAICT, one cannot. One may //only// provide template context through command line switches, since in cmdline.py, html_context is always set to be an empty dictionary and passed in as an override.Is this an error in documentation, or in code? I can try to provide a patch for either when I have a moment spare. FWIW, I'd prefer to pass in options to the html_context in conf.py as well as as a command line switch, as storing command-line options in a Makefile instead of conf.py feels wrong.
The text was updated successfully, but these errors were encountered: