Use relative links for public urls

This commit is contained in:
Peter D. Barnes, Jr.
2012-08-13 10:23:14 -07:00
parent e4a26b3b70
commit 375eec059a
3 changed files with 16 additions and 11 deletions

View File

@@ -160,7 +160,10 @@ else
fi
if [ $PUBLIC -eq 1 ]; then
echo "var ns3_host = \"http://www.nsnam.org/\";" > $outf
echo "// ns3_version.js: automatically generated" > $outf
echo "// public urls" >> $outf
# Generate URL relative to server root
echo "var ns3_host = \"/\";" >> $outf
if [ $distance -eq 0 ]; then
echo "var ns3_version = \"Release $version\";" >> $outf
@@ -174,6 +177,8 @@ if [ $PUBLIC -eq 1 ]; then
else
repo=`basename $PWD`
echo "// ns3_version.js: automatically generated" > $outf
echo "// private urls" >> $outf
echo "var ns3_host = \"file://$PWD/\";" > $outf
echo "var ns3_version = \"$repo @ $version\";" >> $outf
echo "var ns3_release = \"doc/\";" >> $outf

View File

@@ -62,10 +62,10 @@
onmouseover="mcancelclosetime()"
onmouseout="mclosetime()">
<a id="ns3_tut"
href="http://www.nsnam.org/docs/tutorial/html/index.html"
href="/docs/tutorial/html/index.html"
>English</a><br/>
<a id="ns3_ptbr"
href="http://www.nsnam.org/docs/tutorial-pt-br/html/index.html"
href="/docs/tutorial-pt-br/html/index.html"
>Portuguese</a><br/>
</li>
<li><span
@@ -79,10 +79,10 @@
href="http://www.nsnam.org/wiki"
>Wiki</a><br/>
<a id="ns3_man"
href="http://www.nsnam.org/docs/manual/html/index.html"
href="/docs/manual/html/index.html"
>Manual</a><br/>
<a id="ns3_mod"
href="http://www.nsnam.org/docs/models/html/index.html"
href="/docs/models/html/index.html"
>Models</a><br/>
</li>
<li><span
@@ -93,7 +93,7 @@
onmouseover="mcancelclosetime()"
onmouseout="mclosetime()">
<a id="ns3_api"
href="http://www.nsnam.org/docs/doxygen/html/index.html"
href="/docs/doxygen/html/index.html"
>API</a><br/>
<a id="ns3_bugs"
href="http://www.nsnam.org/bugzilla/">Bugs</a>

View File

@@ -53,10 +53,10 @@ $mathjax
onmouseover="mcancelclosetime()"
onmouseout="mclosetime()">
<a id="ns3_tut"
href="http://www.nsnam.org/docs/tutorial/html/index.html"
href="/docs/tutorial/html/index.html"
>English</a><br/>
<a id="ns3_ptbr"
href="http://www.nsnam.org/docs/tutorial-pt-br/html/index.html"
href="/docs/tutorial-pt-br/html/index.html"
>Portuguese</a><br/>
</li>
<li><span
@@ -70,10 +70,10 @@ $mathjax
href="http://www.nsnam.org/wiki"
>Wiki</a><br/>
<a id="ns3_man"
href="http://www.nsnam.org/docs/manual/html/index.html"
href="/docs/manual/html/index.html"
>Manual</a><br/>
<a id="ns3_mod"
href="http://www.nsnam.org/docs/models/html/index.html"
href="/docs/models/html/index.html"
>Models</a><br/>
</li>
<li><span
@@ -84,7 +84,7 @@ $mathjax
onmouseover="mcancelclosetime()"
onmouseout="mclosetime()">
<a id="ns3_api"
href="http://www.nsnam.org/docs/doxygen/index.html"
href="/docs/doxygen/index.html"
>API</a><br/>
<a id="ns3_bugs"
href="http://www.nsnam.org/bugzilla/">Bugs</a>