Peter D. Barnes, Jr. 2012-07-18 13:39:20 -07:00
parent 604a18e8d6
commit 41bd69cb84
8 changed files with 137 additions and 9 deletions

View File

@ -952,7 +952,10 @@ HTML_STYLESHEET = doc/ns3_html_theme/static/ns3_stylesheet.css
HTML_EXTRA_FILES = doc/ns3_html_theme/static/doxygen.css \
doc/ns3_html_theme/static/bar-top.png \
doc/ns3_html_theme/static/favicon.ico
doc/ns3_html_theme/static/favicon.ico \
doc/ns3_html_theme/static/drop-down-menu.js \
doc/ns3_html_theme/static/menu-bgr-400.png \
doc/ns3_html_theme/static/ver.png
# The HTML_COLORSTYLE_HUE tag controls the color of the HTML output.
# Doxygen will adjust the colors in the style sheet and background images

View File

@ -22,6 +22,9 @@
<link rel="icon" type="image/ico"
href="{{ pathto('_static/'+theme_favicon, 1) }}" />
{%- endif %}
<script type="text/javascript" src="_static/drop-down-menu.js"></script>
{% endblock %}
{% block header %}
@ -30,14 +33,44 @@
<tbody>
<tr style="height: 56px;">
<td id="projectlogo">
<a href="{{ theme_homepage }}">
<a href="{{theme_site + theme_homepage}}">
<img alt="ns-3 Logo"
src="{{ pathto('_static/' + theme_logo, 1)}}"/>
</a>
</td>
<td id="projecttext">
<div id="projectbrief">{{ theme_projectbrief }} </div>
<span id="projectnumber">{{ theme_projectnumber }}</span>
<span id="projectnumber"><script type="text/javascript">document.write(rev)</script></span>
</td>
<td id="ns3-menu">
<div class="menu">
<ul >
<li><a href="{{theme_site + theme_homepage}}">&nbsp;&nbsp;Home</a>
</li>
<li><a href="{{theme_site + theme_wiki}}">Wiki</a>
</li>
<li><span onmouseover="mopen('mDocs')"
onmouseout="mclosetime()">Docs &nbsp;&nbsp;&nbsp;&#x25BC;</span>
<div id="mDocs"
onmouseover="mcancelclosetime()"
onmouseout="mclosetime()">
<a href="{{theme_site + theme_release + theme_manual}}">Manual</a><br/>
<a href="{{theme_site + theme_release + theme_models}}">Models</a><br/>
<a href="{{theme_site + theme_release + theme_doxygen}}">API</a><br/>
</li>
<li><span onmouseover="mopen('mTuts')"
onmouseout="mclosetime()">Tutorials &nbsp;&#x25BC;</span>
<div id="mTuts"
onmouseover="mcancelclosetime()"
onmouseout="mclosetime()">
<a href="{{theme_site + theme_release + theme_tutorial}}">English</a><br/>
<a href="{{theme_site + theme_release + theme_tutport}}">Portuguese</a><br/>
</li>
<li><a href="{{theme_site + theme_bugzilla}}">Bugs</a>
</li>
</ul>
</div>
</td>
<td id="projectsection">
<span style="margin-right:10px">{{ docstitle }}</span>
@ -46,9 +79,8 @@
</tbody>
</table>
</div>
{% endblock %}
{% block rootrellink %}
<li class="navelem"><a href="{{ theme_homepage }}">{{ theme_projectname }}</a><span class="navelem">&nbsp;</span></li>
{{ super() }}

View File

@ -14,6 +14,7 @@ $mathjax
<link href="$relpath$doxygen.css" rel="stylesheet" type="text/css"/>
<link href="$relpath$ns3_stylesheet.css" rel="stylesheet" type="text/css" />
<link href="$relpath$favicon.ico" rel="shortcut icon" type="image/ico" />
<script type="text/javascript" src="$relpath$drop-down-menu.js"></script>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
@ -44,14 +45,45 @@ $mathjax
</td>
<!--END PROJECT_BRIEF-->
<!--END !PROJECT_NAME-->
<td id="ns3-menu">
<div class="menu">
<ul >
<li><a href="http://www.nsnam.org/">&nbsp;&nbsp;Home</a>
</li>
<li><a href="http://www.nsnam.org/developers/tools/wiki/">Wiki</a>
</li>
<li><span onmouseover="mopen('mDocs')"
onmouseout="mclosetime()">Docs &nbsp;&nbsp;&nbsp;&#x25BC;</span>
<div id="mDocs"
onmouseover="mcancelclosetime()"
onmouseout="mclosetime()">
<a href="http://www.nsnam.org/docs/release/3.14/manual/html/index.html">Manual</a><br/>
<a href="http://www.nsnam.org/docs/release/3.14/models/html/index.html">Models</a><br/>
<a href="http://www.nsnam.org/docs/release/3.14/theme_doxygen">API</a><br/>
</li>
<li><span onmouseover="mopen('mTuts')"
onmouseout="mclosetime()">Tutorials &nbsp;&#x25BC;</span>
<div id="mTuts"
onmouseover="mcancelclosetime()"
onmouseout="mclosetime()">
<a href="http://www.nsnam.org/docs/release/3.14/tutorial/html/index.html">English</a><br/>
<a href="http://www.nsnam.org/docs/release/3.14/tutorial-pt-br/html/index.html">Portuguese</a><br/>
</li>
<li><a href="http://www.nsnam.org/developers/tools/bugzilla/">Bugs</a>
</li>
</ul>
</div>
</td>
<td id="projectsection">
<span style="margin-right:10px">API</span>
</td>
<!--BEGIN DISABLE_INDEX-->
<!--BEGIN SEARCHENGINE-->
<td>$searchbox</td>
<!--END SEARCHENGINE-->
<!--END DISABLE_INDEX-->
<td id="projectsection">
<span style="margin-right:10px">API Documentation</span>
</td>
</tr>
</tbody>
</table>

View File

@ -0,0 +1,45 @@
// Copyright 2006-2007 javascript-array.com
// http://javascript-array.com/scripts/simple_drop_down_menu/
var timeout = 250;
var closetimer = 0;
var ddmenuitem = 0;
// open hidden layer
function mopen(id)
{
// cancel close timer
mcancelclosetime();
// close old layer
if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';
// get new layer and show it
ddmenuitem = document.getElementById(id);
ddmenuitem.style.visibility = 'visible';
}
// close showed layer
function mclose()
{
if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';
}
// go close timer
function mclosetime()
{
closetimer = window.setTimeout(mclose, timeout);
}
// cancel close timer
function mcancelclosetime()
{
if(closetimer)
{
window.clearTimeout(closetimer);
closetimer = null;
}
}
// close layer when click-out
document.onclick = mclose;

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 938 B

View File

@ -5,7 +5,21 @@ pygments_style = sphinx
[options]
projectname = ns-3
homepage = http://www.nsnam.org/
site = http://www.nsnam.org/
homepage =
wiki = developers/tools/wiki/
bugzilla = developers/tools/bugzilla/
# prefix for the following pages
release = docs/release/3.14/
doxygen = doxygen/index.html
manual = manual/html/index.html
models = models/html/index.html
tutorial = tutorial/html/index.html
tutport = tutorial-pt-br/html/index.html
customstylesheet = ns3_stylesheet.css
logo = ns-3-inverted-notext-small.png
logoalt = ns-3 Logo

View File

@ -1097,6 +1097,8 @@ class Ns3SphinxContext(Context.Context):
cmd = 'sphinx'
def sphinx_build(self, path):
print
print "[waf] Building sphinx docs for " + path
if subprocess.Popen(["make", "-k", "html"], cwd=path).wait() :
raise SystemExit(1)