Parametrize layout.html

Peter D. Barnes, Jr. 2012-06-20 09:55:01 -07:00
parent f7a0cad36f
commit 6e1c343e60
2 changed files with 18 additions and 10 deletions

View File

@ -13,8 +13,10 @@
{# set reldelim1 = ' @' #}
{%- block extrahead %}
{%- if theme_customstylesheet %}
<link rel="stylesheet" type="text/css"
href="_static/ns3_stylesheet.css"/>
href="{{ pathto('_static/'+theme_customstylesheet, 1) }}" />
{%- endif %}
{%- if theme_favicon %}
<link rel="icon" type="image/ico"
@ -28,16 +30,14 @@
<tbody>
<tr style="height: 56px;">
<td id="projectlogo">
{%- if theme_logo %}
{% set img = theme_logo %}
{%- endif %}
<a href="https://www.nsnam.org/">
<img alt="ns-3 Logo" src="{{ pathto('_static/%s' % img, 1)}}"/>
<a href="{{ theme_homepage }}">
<img alt="ns-3 Logo"
src="{{ pathto('_static/' + theme_logo, 1)}}"/>
</a>
</td>
<td id="projecttext">
<div id="projectbrief">A Discrete-Event Network Simulator</div>
<span id="projectnumber">ns-3-dev</span>
<div id="projectbrief">{{ theme_projectbrief }} </div>
<span id="projectnumber">{{ theme_projectnumber }}</span>
</td>
<td id="projectsection">
<span style="margin-right:10px">{{ docstitle }}</span>
@ -50,7 +50,7 @@
{% endblock %}
{% block rootrellink %}
<li class="navelem"><a href="http://www.nsnam.org/">ns-3</a><span class="navelem">&nbsp;</span></li>
<li class="navelem"><a href="{{ theme_homepage }}">{{ theme_projectname }}</a><span class="navelem">&nbsp;</span></li>
{{ super() }}
{% endblock %}

View File

@ -4,8 +4,16 @@ stylesheet = default.css
pygments_style = sphinx
[options]
favicon = favicon.ico
projectname = ns-3
homepage = http://www.nsnam.org/
customstylesheet = ns3_stylesheet.css
logo = ns-3-inverted-notext-small.png
logoalt = ns-3 Logo
projectbrief = A Discrete-Event Network Simulator
projectnumber = ns-3-dev
favicon = favicon.ico
docstitle = Documentation
rightsidebar = false