mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Add -A option to pass values into HTML templates.
This commit is contained in:
4
tests/root/_templates/layout.html
Normal file
4
tests/root/_templates/layout.html
Normal file
@@ -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'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user