// Author: DIME
// in ROOT use
// .x TestTHtml.C++
/* Begin_Html
class index
End_Html
*/
#include "THtml.h"
class MyClass {
public:
MyClass() {}
virtual ~MyClass();
void MyMethod() {}
Double_t fMyVariable;
ClassDef(MyClass,1);
};
ClassImp(MyClass)
//_______________________
MyClass::~MyClass() { }
//_________________________________________________________________
// This macro generates wrong URLs in the .html using ROOT 5.12/00a.
void TestTHtml() {
THtml html; // <-- URL of THtml IS WRONG,
// THtml points to
// file:///home/dime/20060817-TestTHtml/$Root.Html.Root/THtml.html
// but it should point to
// $Root.Html.Root/THtml.html
// in $ROOTSYS/etc/system.rootrc,
// I am using the default Root.Html.Root: http://root.cern.ch/root/html
html.SetOutputDir("./htmldoc");
html.Convert("TestTHtml.C","Title of the Page","./htmldoc");
html.MakeClass("MyClass"); // <-- URL TO MyClass IS WRONG,
// MyClass points to
// file:///home/dime/20060817-TestTHtml/MyClass.html
// but it should point to
// file:///home/dime/20060817-TestTHtml/htmldoc/MyClass.html
MyClass *bla = 0;
}