Commit fec02485 authored by Guillaume Lazzara's avatar Guillaume Lazzara
Browse files

Use relative paths in documentation.

	* doc/Doxyfile.in,
	* doc/Makefile.am,
	* doc/header.html,
	* doc/mainpage.dox: Here.
parent 87a4a347
2013-04-12 Guillaume Lazzara <z@lrde.epita.fr>
Use relative paths in documentation.
* doc/Doxyfile.in,
* doc/Makefile.am,
* doc/header.html,
* doc/mainpage.dox: Here.
2013-04-10 Guillaume Lazzara <z@lrde.epita.fr>
* doc/Makefile.am: Fix permissions on documentation files.
......
......@@ -21,7 +21,7 @@
# Project related configuration options
#---------------------------------------------------------------------------
PROJECT_NAME = "Olena"
PROJECT_NUMBER = "@PACKAGE_VERSION@"
PROJECT_NUMBER = "User documentation @PACKAGE_VERSION@"
PROJECT_BRIEF = "An Image Processing Platform"
PROJECT_LOGO = @top_srcdir@/doc/images/logo.jpg
OUTPUT_DIRECTORY = @builddir@/user-refman.tmp
......@@ -320,8 +320,8 @@ SKIP_FUNCTION_MACROS = YES
#---------------------------------------------------------------------------
# Configuration::additions related to external references
#---------------------------------------------------------------------------
TAGFILES = @builddir@/../scribo/doc/scribo.tag=../../scribo/doc/user-refman/html \
@builddir@/../milena/doc/milena.tag=../../milena/doc/user-refman/html
TAGFILES = @builddir@/../scribo/doc/scribo.tag=../../../scribo/doc/user-refman/html \
@builddir@/../milena/doc/milena.tag=../../../milena/doc/user-refman/html
GENERATE_TAGFILE =
ALLEXTERNALS = NO
EXTERNAL_GROUPS = YES
......
......@@ -121,7 +121,7 @@ $(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\@,$(abs_top_srcdir)/,g" \
sed -i -e "s,\@relcommondocpath\@,../../,g" \
-e "s,\@userrefman\@,$(USER_REFMAN),g" \
`find $(USER_REFMAN).tmp/html -name '*.html'`
## FIXME: Moving directories between file systems is not portable.
......@@ -212,9 +212,9 @@ install-data-local:
cp -r $(srcdir)/$(USER_REFMAN)/html $(DESTDIR)$(htmldir)/$(USER_REFMAN)
# Fix documentation paths
chmod -R u+w $(DESTDIR)$(htmldir)/$(USER_REFMAN)
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" \
sed -i -e "s,../../../milena/doc/$(USER_REFMAN)/html,../milena/$(USER_REFMAN),g" \
-e "s,../../../scribo/doc/$(USER_REFMAN)/html,../scribo/$(USER_REFMAN),g" \
-e "s,../../$(USER_REFMAN)/html,../$(USER_REFMAN),g" \
`find $(DESTDIR)$(htmldir)/$(USER_REFMAN) -name '*.html'`
## Try GNU chmod's X mode before resorting to something slower but
## more standard.
......@@ -227,3 +227,10 @@ uninstall-local:
# reference manual.
chmod -R 700 $(DESTDIR)$(htmldir)/$(USER_REFMAN)
rm -rf $(DESTDIR)$(htmldir)/$(USER_REFMAN)
doc-teamcity:
sed -i -e "s,../../../../milena/doc/$(USER_REFMAN)/html,../milena.doc/,g" \
-e "s,../../../../scribo/doc/$(USER_REFMAN)/html,../scribo.doc/,g" \
-e "s,../../../../doc/$(USER_REFMAN)/html,../olena.doc/,g" \
`find $(USER_REFMAN).tmp/html -name '*.html'`
......@@ -25,7 +25,7 @@ $extrastylesheet
<tbody>
<tr style="height: 56px;">
<!--BEGIN PROJECT_LOGO-->
<td id="projectlogo"><a href="@relcommondocpath@doc/@userrefman@/html/index.html"><img alt="Logo" src="$relpath$$projectlogo"/></a></td>
<td id="projectlogo"><a href="$relpath$@relcommondocpath@@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="@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 <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