Tags:
create new tag
, view all tags

DoxygenPluginDev Discussion: Page for developer collaboration, enhancement requests, patches and improved versions on DoxygenPlugin contributed by the TWikiCommunity.
• Please let us know what you think of this extension.
• For support, check the existing questions, or ask a new support question in the Support web!
• Please report bugs below

Feedback on DoxygenPlugin

-- WillNorris - 02 Aug 2003

This looks useful, but I can't help thinking that maybe extending the InterwikiPlugin to accept shortcut definitions similar to Konqueror might actually be a slightly more general way to do this. Just a thought.

-- MichaelSparks - 09 Aug 2003

added .zip to CVS

-- WillNorris - 27 Jun 2005

The URL of the doxygen doc for nebula project moved.

This seems the new URL for URL_BASE_NEB, I think : http://nebuladevice.cubik.org/documentation/nebula2/

-- OlivierBerger - 03 Oct 2007

I think the following patch may be of interest in the case the docs are not available on the same filesystem of the web server which is running twiki.

--- DoxygenPlugin.pm.orig   2007-10-03 14:42:36.000000000 +0200
+++ DoxygenPlugin.pm   2007-10-03 14:41:23.000000000 +0200
@@ -95,6 +95,7 @@
 
     # allow a trailing slash so that the location is a valid url in the plugin's settings (sometimes you have to include the trailing / on url's)
     ( $doxygen_docs_base = &TWiki::Func::getPreferencesValue( uc "DOXYGENPLUGIN_DOCS_BASE_$thisProject" ) . '/' ) =~ s|//$|/|;
+    $doxygen_docs_base =~ s|^/$||;
     ( $doxygen_url_base = &TWiki::Func::getPreferencesValue( uc "DOXYGENPLUGIN_URL_BASE_$thisProject" ) . '/' ) =~ s|//$|/|;
 
 
@@ -103,10 +104,16 @@
     # check if we have a file instead of a class
     if ($name =~ /.+html?$/ ) {
         $text .= qq{<a href="${doxygen_url_base}$name">$alt</a>};
-    } elsif ( -f "$doxygen_docs_base/class$classname.html" ) {
-        $text .= qq{<a href="${doxygen_url_base}class$classname.html">$alt </a>};
     } else {
-        $text .= qq{<a href="${doxygen_url_base}class$classname.html">$alt [bad link?]</a>};
+   if ( $doxygen_docs_base ) {
+       if ( -f "$doxygen_docs_base/class$classname.html" ) {
+      $text .= qq{<a href="${doxygen_url_base}class$classname.html">$alt </a>};
+       } else {
+      $text .= qq{<a href="${doxygen_url_base}class$classname.html">$alt [bad link?]</a>};
+       }
+   } else {
+       $text .= qq{<a href="${doxygen_url_base}class$classname.html">$alt</a>};
+   }
     }
 
     return $text;

It won't display [bad likn?] in case there's no definition of DOCS_BASE and only URL_BASE.

-- OlivierBerger - 03 Oct 2007

 
Topic revision: r6 - 03 Oct 2007 - 12:50:48 - OlivierBerger
 
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback