Commit 1d8ef88caa13d37150c009d8171a85b5db81c817

sammy 2008-05-23T00:16:18

* Work around a Doxygen bug that creates fake latex references whenever we use "FTGL" in section names, and fails to remove the "%" in HTML pages whenever we use "%FTGL". Fixing HTML pages is easier.

diff --git a/docs/Makefile.am b/docs/Makefile.am
index 0ce59d4..8fec306 100644
--- a/docs/Makefile.am
+++ b/docs/Makefile.am
@@ -28,6 +28,7 @@ endif
 html/doxygen.css: stamp-doxygen
 stamp-doxygen: doxygen.cfg stamp-eps
 	$(DOXYGEN) $^
+	sed -i 's/%FTGL/FTGL/' html/*html
 	touch $@
 
 latex/ftgl.pdf: stamp-latex
diff --git a/docs/faq.dox b/docs/faq.dox
index f61975f..4d9fed7 100644
--- a/docs/faq.dox
+++ b/docs/faq.dox
@@ -2,7 +2,7 @@
 
  \section faq FAQ
 
- \subsection faq1 When I try to compile FTGL it complains about a missing file from the include: #include <ft2build.h>
+ \subsection faq1 When I try to compile %FTGL it complains about a missing file from the include: #include <ft2build.h>
 
  %FTGL relies on FreeType 2 for opening and decoding font files. This include
  is the main include for FreeType. You will need to download Freetype 2 and
diff --git a/docs/ftgl.dox b/docs/ftgl.dox
index 33a012f..e940b10 100644
--- a/docs/ftgl.dox
+++ b/docs/ftgl.dox
@@ -1,4 +1,4 @@
-/** \mainpage FTGL User Guide
+/** \mainpage %FTGL User Guide
 
  \image html logo.png
  \image latex logo.png "" width=0.3\textwidth
diff --git a/docs/projects_using_ftgl.txt b/docs/projects_using_ftgl.txt
index 0c78959..a187558 100644
--- a/docs/projects_using_ftgl.txt
+++ b/docs/projects_using_ftgl.txt
@@ -1,11 +1,11 @@
-/** \page ftgl-projects Projects using FTGL
+/** \page ftgl-projects Projects using %FTGL
 
 To add your project to this list, please contact one of the %FTGL
 developers at http://sf.net/projects/ftgl
 
 Projects are listed in alphabetical order.
 
-\section current Projects currently using FTGL
+\section current Projects currently using %FTGL
 
 \subsection blender Blender
 
@@ -26,7 +26,7 @@ Projects are listed in alphabetical order.
   Duel (http://www.personal.rdg.ac.uk/~sir03me/play/code.html) is a small
   overhead perspective spaceship game.
 
-\subsection ftglsharp FTGL#
+\subsection ftglsharp %FTGL#
 
   %FTGL# (http://www.paskaluk.com/projects.php) is a collection of .NET
   bindings for %FTGL.
@@ -61,7 +61,7 @@ Projects are listed in alphabetical order.
   which uses OpenGL for hardware acceleration. It is compatible with
   Milkdrop presets.
 
-\subsection ruby-ftgl Ruby FTGL
+\subsection ruby-ftgl Ruby %FTGL
 
   Ruby %FTGL# (http://rubyforge.org/projects/ruby-ftgl/) is a collection
   of Ruby bindings for %FTGL.
@@ -80,7 +80,7 @@ Projects are listed in alphabetical order.
   programs, Tcl, Python and Java scripts that do 3D visualization.
 
 
-\section old Projects that used to use FTGL
+\section old Projects that used to use %FTGL
 
 \subsection gnubg GNU Backgammon
 
diff --git a/docs/tutorial.dox b/docs/tutorial.dox
index bf7151d..6ce2547 100644
--- a/docs/tutorial.dox
+++ b/docs/tutorial.dox
@@ -1,6 +1,6 @@
-/** \page ftgl-tutorial FTGL tutorial
+/** \page ftgl-tutorial %FTGL tutorial
 
- \section starting Starting to use FTGL
+ \section starting Starting to use %FTGL
 
  Only one header is required to use %FTGL: