Is there a description of how to effectively use templates in Sphinx
for a custom front page?
I'm setting one up. So far I've added this to conf.py:
html_additional_pages = {
'index': 'frontpage.html',
}
And I've created templates/frontpage.html with the following:
{% extends "defindex.html" %}
{% block tables %}
<h1>Welcome</h1>
<p>
Blah blah blah. <a href="file_that_sphinx_made.html">Project
doc</a>. etc etc </p>
{% endblock %}
And it works. The top-level file index.html gets created from the
frontpage.html content; e.g. with the link into the standard
documentation that sphinx made.
But, how do effectively generate the custom HTML that goes on this
page? In particular, how to take advantage of the templates and
styles that Sphinx/Jinja are providing and that I see used in the HTML
source for the Sphinx and Python front pages? Can I do it with other
templates? Do I have to write HTML by hand?
Thanks,
-Hugh
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sphinx-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sphinx-dev?hl=en
-~----------~----~----~----~------~----~------~--~---