Commit 4a0ee16f authored by Guillaume Lazzara's avatar Guillaume Lazzara
Browse files

Fix path to other documentations.

	* doc/Makefile.am,
	* doc/header.html,
	* doc/mainpage.dox: Here.
parent a1c740d0
2013-04-10 Guillaume Lazzara <z@lrde.epita.fr>
Fix path to other documentations.
* doc/Makefile.am,
* doc/header.html,
* doc/mainpage.dox: Here.
2013-03-28 Guillaume Lazzara <z@lrde.epita.fr>
* doc/Makefile.am: Add a missing dependency.
......
......@@ -121,7 +121,9 @@ $(srcdir)/user-refman.stamp: $(srcdir)/$(DOXYFILE).in $(REFMAN_deps)
$(DOXYGEN) $(DOXYFILE_USER)
rm -rf $(srcdir)/$(USER_REFMAN)
## Fix path to the main page of the documentation.
sed -i -e "s,\@relcommondocpath\@,,g" $(USER_REFMAN).tmp/html/index.html
sed -i -e "s,\@relcommondocpath\@,$(abs_top_srcdir)/,g" \
-e "s,\@userrefman\@,$(USER_REFMAN),g" \
`find $(USER_REFMAN).tmp/html -name '*.html'`
## FIXME: Moving directories between file systems is not portable.
mv $(USER_REFMAN).tmp $(srcdir)/$(USER_REFMAN)
@mv -f $@.tmp $@
......@@ -208,6 +210,11 @@ install-data-local:
#
# rm -rf $(DESTDIR)$(htmldir)/$(USER_REFMAN)
cp -r $(srcdir)/$(USER_REFMAN)/html $(DESTDIR)$(htmldir)/$(USER_REFMAN)
# Fix documentation paths
sed -i -e "s,$(abs_top_srcdir)/milena/doc,../milena,g" \
-e "s,$(abs_top_srcdir)/scribo/doc,../scribo,g" \
-e "s,$(abs_top_srcdir)/doc/$(USER_REFMAN)/html,$(DESTDIR)$(htmldir)/$(USER_REFMAN),g" \
`find $(DESTDIR)$(htmldir)/$(USER_REFMAN) -name '*.html'`
## Try GNU chmod's X mode before resorting to something slower but
## more standard.
chmod -R a+rX $(DESTDIR)$(htmldir) || \
......
......@@ -25,7 +25,7 @@ $extrastylesheet
<tbody>
<tr style="height: 56px;">
<!--BEGIN PROJECT_LOGO-->
<td id="projectlogo"><a href="@relcommondocpath@$relpath$index.html"><img alt="Logo" src="$relpath$$projectlogo"/></a></td>
<td id="projectlogo"><a href="@relcommondocpath@doc/@userrefman@/html/index.html"><img alt="Logo" src="$relpath$$projectlogo"/></a></td>
<!--END PROJECT_LOGO-->
<!--BEGIN PROJECT_NAME-->
<td style="padding-left: 0.5em;">
......
......@@ -19,8 +19,8 @@
</td>
<td>
\li \ref moduleslist
\li <a class="el" href="../../milena/user-refman/html/index.html">Milena</a>
\li <a class="el" href="../../scribo/user-refman/html/index.html">Scribo</a>
\li <a class="el" href="@relcommondocpath@milena/doc/user-refman/html/index.html">Milena</a>
\li <a class="el" href="@relcommondocpath@scribo/doc/user-refman/html/index.html">Scribo</a>
\li Swilena
</td>
<td>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment