Menu

#4642 HTML documentation generated with wrong titles

obsolete: 8.6b1
closed-fixed
7
2010-06-13
2010-06-13
No

In cases where there are duplicated file names, e.g. TclLib/Object.htm and ITclLib/Object.htm, the wrong title tag gets generated for html page. For example,

Generate the documentation from source. Look at the <title> tag in the files html/TclLib/Object.htm and html/ItclLib/Object.htm. Notice that they are both identical -ie. in my case the TclLib/Object.htm file had the title for the Itcl Object man page.

This results in the wrong title being displayed when viewed in a browser. More irksome, generating a MS .CHM file results in the Table of Contents showing the wrong text.

Observed on Windows though it's probably platform-independent.

Discussion

  • Ashok P. Nadkarni

    One other thing, I've noticed this problem only recently. Perhaps some change was made in the generating script, or possibly the Itcl docs were only added recently to the build resulting in duplicate file names causing the script to become confused.

     
  • Donal K. Fellows

    I'm responsible for the code to generate HTML, so it is my job to fix. And the problem is that there are two Object.3 files; this causes the HTML scraper to get very confused. (They're not currently a problem in installation, as the itcl package that we've got now does not install its C API docs and the Tcl docs are disambiguated to their actual function names.)

     
  • Donal K. Fellows

    • priority: 5 --> 9
    • assigned_to: stwo --> dkf
     
  • Donal K. Fellows

    • priority: 9 --> 7
    • status: open --> open-later
     
  • Donal K. Fellows

    Fixed by preventing the generation of HTML for Itcl's C interface (OK, since the package doesn't install those docs at the moment anyway). Ought to work on fixing this *properly* anyway since the issue is bound to come up in the future, so keeping issue open.

     
  • Donal K. Fellows

    • status: open-later --> closed-fixed
     
  • Donal K. Fellows

    Properly fixed. Title handling was using too short a key for uniqueness to be guaranteed.

     
  • Donal K. Fellows

    Properly fixed. Title handling was using too short a key for uniqueness to be guaranteed.