I'm trying to write a module for sphinx to render some text correctly. It's
a bit of a wild project I'm working on, but....
I have this in my module.py file.
def ngx_modify(app, pagename, templatename, context, doctree):
context['page'] = 'PAGE'
def setup(app):
app.connect('html-page-context', ngx_modify)
The context variable is immutable, so I can't make changes to it the way I
put in there. I need to alter the rendered page before it finally makes it
to the output. How can I do this?
--
You received this message because you are subscribed to the Google Groups
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/groups/opt_out.