Ticket #1564 (new defect)

Opened 6 years ago

Last modified 1 year ago

Links on doxygen Main Page resulted in call of trac search

Reported by: anonymous Assigned to: cboos
Priority: normal Component: DoxygenPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.12

Description

Problem was, that if I clicked for example 'Classes' Link, the plugin searched for a file /path/to/doxygen/classes.html instead of /path/to/doxygen/html/classes.html. The result was that it didn't find the page and rerouted to the search.

I had to apply the following patch (for the 0.10 version).

Note: I did NOT test what happens if the 'html_output' option is not set in 'trac.ini'.

--- doxygentrac.py.orig 2007-05-23 09:42:35.750206000 +0200
+++ doxygentrac.py  2007-05-23 09:43:07.942571000 +0200
@@ -263,7 +263,7 @@
                                                    self.html_output,
                                                    file or self.index])
             else:
-                doc = ''
+                doc = self.html_output

         def lookup(file, category='undefined'):
             """Build (full path, relative link) and check if path exists."""

Attachments

Change History

06/07/07 14:15:21 changed by Matthijs Kooijman <m.kooijman@student.utwente.nl>

I've been experiencing the same problem and can confirm that the proposed fix works for me as well.

06/30/07 00:12:17 changed by Blackhex

  • owner changed from Blackhex to cboos.

(follow-ups: ↓ 8 ↓ 10 ) 09/21/07 21:25:25 changed by john.femiani@asu.edu

Same problem.

I dont know python, so just used

[doxygen]
path = \path\to\doxygen\output\html
html_output = ./

in trac.ini

Any chance of resolving this issue and committing the changes you folks have made?

09/21/07 22:05:53 changed by Blackhex

  • status changed from new to assigned.
  • owner changed from cboos to Blackhex.

OK, I'll test patch tomorrow and if it will be working I'll commit it...

09/23/07 01:34:36 changed by Blackhex

  • status changed from assigned to closed.
  • resolution set to fixed.

Done with r2651.

02/14/08 11:46:06 changed by gerard.breiner@ias.u-psud.fr

  • status changed from closed to reopened.
  • resolution deleted.

Hello,

I've got the version tracdoxygen 0.10 with the hack r2651 but I have a similar problem with my links.

My links seems to be correct (ie "path/doxygen/html/index.html when I focus the link "Main Page") but when I click on this link I get a search page for "index.html".

My context doxygen in trac.ini is

[doxygen] path = /home/trac/nulltimate/doxygen index = index.html wiki_index = DoxyGen? default_documentation = doxygen #html_output = html ext = 'py'

Would you have an idea please ?

Thanks in advance

Gerard

02/15/08 14:56:37 changed by Blackhex

  • owner changed from Blackhex to cboos.
  • status changed from reopened to new.

Cboos should be more competent to answer now...

(in reply to: ↑ 3 ) 12/04/09 05:52:13 changed by lucasrangit

Replying to john.femiani@asu.edu:

Same problem. I dont know python, so just used

[doxygen]
path = \path\to\doxygen\output\html
html_output = ./

in trac.ini Any chance of resolving this issue and committing the changes you folks have made?

That fixed it for me as well. Using TracDoxygen?-0.11.0.2 and the following trac.ini configuration I get similar behavior until I use the configuration described by John.

[doxygen]
path = /var/local/doxygen
html_output = html
default_documentation = project

12/04/09 05:52:52 changed by lucasrangit

And I'm using Trac 0.11.1

(in reply to: ↑ 3 ) 04/16/12 08:55:12 changed by anonymous

  • release changed from 0.10 to 0.12.

Replying to john.femiani@asu.edu:

Same problem. I dont know python, so just used {{{ [doxygen] path = \path\to\doxygen\output\html html_output = ./ }}} in trac.ini Any chance of resolving this issue and committing the changes you folks have made?

Thanks man! The search feature was not working for me. Basically, I was not able to access any of the files inside folders. This fixed it as well. Thanks a ton!


Add/Change #1564 (Links on doxygen Main Page resulted in call of trac search)




Change Properties
Action