mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-09-03 20:52:55 -05:00
Add -A option to pass values into HTML templates.
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
{% extends "!layout.html" %}
|
||||
{% block extrahead %}
|
||||
<meta name="hc" content="{{ hckey }}" />
|
||||
{% endblock %}
|
||||
@@ -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'
|
||||
|
||||
|
||||
@@ -67,6 +67,7 @@ HTML_XPATH = {
|
||||
".//a[@href='#mod.Cls']": '',
|
||||
},
|
||||
'contents.html': {
|
||||
".//meta[@name='hc'][@content='hcval']": '',
|
||||
".//td[@class='label']": '[Ref1]',
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user