Add -A option to pass values into HTML templates.

This commit is contained in:
Georg Brandl
2008-11-04 08:34:35 +01:00
parent e666b6d203
commit a6f09758e3
6 changed files with 31 additions and 2 deletions
+4
View File
@@ -0,0 +1,4 @@
{% extends "!layout.html" %}
{% block extrahead %}
<meta name="hc" content="{{ hckey }}" />
{% endblock %}
+2
View File
@@ -133,6 +133,8 @@ html_last_updated_fmt = '%b %d, %Y'
# If nonempty, this is the file name suffix for HTML files (e.g. ".xhtml").
#html_file_suffix = ''
html_context = {'hckey': 'hcval'}
# Output file base name for HTML help builder.
htmlhelp_basename = 'SphinxTestsdoc'
+1
View File
@@ -67,6 +67,7 @@ HTML_XPATH = {
".//a[@href='#mod.Cls']": '',
},
'contents.html': {
".//meta[@name='hc'][@content='hcval']": '',
".//td[@class='label']": '[Ref1]',
},
}